Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

6351.

अगर हम coding करते है तो उस code को decode कोन करता है?

Answer» Web browser
6352.

Plz kindly tell me the syllabus of computer applications according to class 10 CBSE board.

Answer»
6353.

How to insert subject and subject teachers names in HTML coding

Answer»
6354.

How to insert a image in a web page

Answer» Let’s pretend we have an image of a dog on our computer saved as “funny-dog.jpg” and we want to insert it into a webpage; this is the code we would use:\t1<img\xa0src="funny-dog.jpg">\tLet’s analyze this code. First,\xa0\xa0is the code for creating an image element. Next, the letters “src” are used as an attribute\xa0and stand for “source”. Basically, we need to provide the web browser with a\xa0value\xa0to the source of the image. Naturally, the\xa0value\xa0for the source\xa0attribute\xa0is “funny-dog.jpg”. This example assumes your image file is located in the same directory as your HTML file. If, for example, you had your image file inside a folder named “images” your code would look like this:\t1<img\xa0src="images/funny-dog.jpg">\tSelf Closing ElementsAs you can see, in both code examples so far there has\xa0not\xa0been an ending\xa0\xa0tag, because the image code is a “self closing” element. This is because unlike a paragraph, we won’t have a plethora of content inside our element, but rather a single image. In fact, HTML5 does not require us to ever “close” our elements, but for organizational reasons I recommend including traditional closing tags for most elements.There is one additional bit of code we must add before we are finished. We must assign an “alt” attribute and value to our image. The “alt” attribute stands for “alternative” and is used to provide a text-based alternative for viewers incase the image will not load, or if they are visually impaired. Here is what our code will look like:\t1<img\xa0src="funny-dog.jpg"\xa0alt="A funny dog sitting on the grass.">\t
6355.

Ch2 internet protocol

Answer» The Internet Protocol (IP) is a protocol, or set of rules, for routing and addressing packets of data so that they can travel across networks and arrive at the correct destination. Data traversing the Internet is divided into smaller pieces, called packets. IP information is attached to each packet, and this information helps routers to send packets to the right place. Every device or domain that connects to the Internet is assigned an IP address, and as packets are directed to the IP address attached to them, data arrives where it is needed.
6356.

Ch2

Answer» Below you will get a link to download the official books and Notes from CBSE for Class 10 IT CODE 402 2021. These notes and books provided below are official and the link is also official. You can download it with a single click this will surely help you in the preparation of your examination.\xa0Employability Skills Class 10 Book PDF by CBSE ( Download Now )\xa0Employability Skills Class 10 Notes PDF by CBSE ( Download Now )\xa0IT Code 402 Class 10 Book PDF 2020-21 By CBSE\xa0(Download Now)
6357.

What data types are supported by input mask?

Answer» An input mask is a string of characters that indicates the format of valid input values. You can use input masks in table fields, query fields, and controls on forms and reports. The input mask is stored as an object property.\xa0You use an input mask when it’s important that the format of the input values is consistent. For example, you might use an input mask with a field that stores phone numbers so that Access requires ten digits of input. If someone enters a phone number without the area code, Access won’t write the data until the area code data is added.
6358.

Solve sample paper of IT

Answer» It is there in cbse site there are two sections One is Sample paper and another is marking scheme and answers Click on second one. It will be downloaded.......I have it but I don\'t know how to send it in this message box..So please go to the web method?????????
6359.

Which book we have to buy for computer

Answer»
6360.

html webpages with source code for project on any topic

Answer»
6361.

Name some properties of images/drawing objests

Answer» Digital image is represented in the imaging and computer system by numbers in the form of binary digits, called bits. Here we see the general structure of a digital image. First, it is divided into a matrix of pixels. Then, each pixel is represented a series of bits.A Drawing object describes visible content, such as a shape, bitmap, video, or a line of text. Different types of drawings describe different types of content. The following is a list of the different types of drawing objects. GeometryDrawing – Draws a shape
6362.

Sir l need full chapters detail note

Answer» Which subjects you need
6363.

What for is Malto function used?

Answer» The mailto function has two types such as internal linking and external linking.t should write an HTML code to show the use of mailto function and imagine that it specify with image purpose.It is suitable for operating with computer and not be displayed suppose to link a section of HTML 1 to HTML 2.
The mailto function has two types such as internal linking and external linking.It should write an HTML code to show the use of mailto function and imagine that it specify with image purpose.It is suitable for operating with computer and not be displayed suppose to link a section of HTML 1 to HTML 2.
6364.

How have you learnt about Artificial intelligence

Answer» Artificial Intelligence (AI) is being widely recognised to be the power that will fuel the future global digital economy. AI in the past few years has gained geo-strategic importance and a large number of countries are striving hard to stay ahead with their policy initiatives to get their country ready. India’s own AI strategy identifies AI as a n opportunity and solution provider for inclusive economic growth and social development. The report also identifies the importance of skills-based education (as opposed to knowledge intensive education), and the value of project related work in order to “effectively harness the potential of AI in a sustainable manner” to make India’s next generation ‘AI ready
6365.

To display an & on the web page what is used in the source of html code?

Answer»
6366.

How many chapter in this book information technology class 10 reduce syllabus 2021

Answer» Give me a name all chptare
Thanks
12
6367.

Write the tags to define the following:a) A text boxb) A check box

Answer» (i) \xa0(iii) \xa0
6368.

Write different values which can be given with type attribute of tag?

Answer»
6369.

What is significance of http

Answer» http stands for hypertext transfer protocol at is helpful in data transmission through worldwide web but it does in an unsecure protocol.
Hyper text transfer protocol http is helpful in data communication for the www
Ok this your answer
The Hypertext Transfer Protocol (HTTP\xa0) is an application protocol for distributed, collaborative, hypermedia information systems.\xa0HTTP\xa0is the foundation of data communication for the World Wide Web.
6370.

How to make computer project file about html

Answer» So You want to make a project file on HTMLDo one thing make atleast 5 web pages on different topics and get a printout of them and also get printout of all those codings that you did for making web pages and arranged all them accordingly in a file.That\'s all
6371.

What shortcut will add a slide after the active slide in the file

Answer» Ctrl+N
6372.

How to VPN work.

Answer» A VPN works by routing your device\'s internet connection through your chosen VPN\'s private server rather than your internet service provider (ISP) so that when your data is transmitted to the internet, it comes from the VPN rather than your computer.
6373.

What is a feature of spreadsheets

Answer» Modern spreadsheet software can have multiple interacting sheets and can display data either as text and numerals or in graphical form.
6374.

Feature of spreai

Answer»
6375.

Which protocol is used by e commerce websites for accepting online payments

Answer» SSL
6376.

how to die download sample paper of computer with solution

Answer» From cbse website....!!
6377.

Computer practical

Answer»
6378.

What is cybet ethics?

Answer» Cyber Ethics is the conduct of acceptance usage of online resources and internet services by a user. It is also called Internet ethics. It generally deals with what is right and wrong while using online resources
6379.

What do you mean by bullet and numbering

Answer» Bullet means the different types of symbols like ●, ○,■ whereas numbering means in serial like 1,2,3 In html bulleted list is unordered list whereas numbered list is ordered list
6380.

Who governs the internet?

Answer» The internet is not governed by one person or a particular organization.There is no governing body of the internet.
6381.

Name the following with respect to html

Answer»
6382.

What is web sites ?

Answer» A website is a collection of multiple webpages which are linked together to each other on the internet and they share a common interface and a design . For Example - cbseacademic.in , ncert.inc.in etc
A web sites is a collection of many related web pages started in web server.
6383.

What is plagiarism ?

Answer» Plagiarism is the unauthorised use of the language and thought of another author and the representation of these as ones original work.
6384.

Explain what is session licensed

Answer» google
6385.

i want to know the solution of the syllabus

Answer» What ????
6386.

Please send PDF of report file of computer code 165

Answer»
6387.

Seven Wonder HTML coding

Answer» Mere pass computer ki book nahin hai
Seven wonders HTML coding
6388.

Write the html code to set your school logo as the background of your page .

Answer»
6389.

Differents between ordered list and unordered list?

Answer» Order list is a list in which data is arranged in a sequential form while unordered list is a list in which data is not arranged in a sequential form.
Yes
6390.

Solution for sample paper

Answer»
6391.

digital Property include

Answer» Might be computing hardwares
??
6392.

How can be use the built in templets in ms word

Answer» \tClick the File tab to go to Backstage view.\tSelect New. The New Document pane appears.\tClick Sample templates\xa0to choose a\xa0built-in template, or select an Office.com\xa0template\xa0category to download a\xa0template. The New Document pane.\tSelect the desired\xa0template, then click Create.
6393.

Which book of computers will be available this time 2020-2021

Answer» Click to learn class 10 (optima)
6394.

Create the following web page and write the HTML code for it: E- shopping

Answer»
6395.

What is self plagiarism ?

Answer» Self-plagiarism means reusing work that you have already submitted for a class.
6396.

What is the difference between repeat and repeat until blocks?

Answer» The repeat until block is a loop, just like the forever block. Each time through the loop, the program checks the Boolean block. If the block is false, the program repeats the blocks inside the loop. If the block is true, the program skips the blocks inside the loop and moves on to the next statement in the program.
6397.

Code for paragraph colour and size

Answer» .......................... <TITLE ></HEAD><BODY >.......................... </BODY></HTML><br> </td> </tr> </tfoot> <tfoot class="bg-gray-100 dark:bg-gray-900 mcq_show_btn hidden"> <tr> <td colspan="2" class="p-2"> <button class="show_individual px-2 py-1 text-sm border border-violet-500 rounded text-violet-600 hover:bg-violet-100"> Show Answer </button> </td> </tr> </tfoot> </table> <div class="bg-[#eafeea] px-3 pb-1 rounded-b-lg flex justify-end items-center gap-3 text-slate-600 ans_footer dark:bg-gray-900"> <a class="dark:text-gray-300" href="https://interviewsolution.com/discussion/code-for-paragraph-colour-and-size-4019443" target="_blank"> <span>Discussion</span> </a> </div> </div> <div class="relative my-4 border border-gray-400 rounded-lg dark:border-none mcq_item"> <table class="w-full mcq_table"> <thead class="py-2 bg-gray-100 border-b border-gray-300 dark:bg-gray-900 dark:border-gray-700 font-semibold"> <tr> <td class="rounded-tl-lg w-[36px] pl-3 pt-2.5 align-top dark:text-gray-200"> 6398. </td> <td class="py-2 rounded-tr-lg"> <h2 class="text-lg dark:text-gray-300"> Prepare a paper presentation on sustainable development integration with green economy </h2> </td> </tr> </thead> <tbody class="border-b border-gray-300 bg-gray-50 dark:bg-gray-900 dark:border-gray-700"> <tr class="dark:text-gray-300"> <!-- <td class="py-2"></td> --> </tr> </tbody> <tfoot class="bg-[#eafeea] dark:bg-gray-900 mcq_answer"> <tr> <td colspan="2" class="pt-2 pl-3 dark:text-gray-200"> Answer» </td> </tr> </tfoot> <tfoot class="bg-gray-100 dark:bg-gray-900 mcq_show_btn hidden"> <tr> <td colspan="2" class="p-2"> <button class="show_individual px-2 py-1 text-sm border border-violet-500 rounded text-violet-600 hover:bg-violet-100"> Show Answer </button> </td> </tr> </tfoot> </table> <div class="bg-[#eafeea] px-3 pb-1 rounded-b-lg flex justify-end items-center gap-3 text-slate-600 ans_footer dark:bg-gray-900"> <a class="dark:text-gray-300" href="https://interviewsolution.com/discussion/prepare-a-paper-presentation-on-sustainable-develo-4019442" target="_blank"> <span>Discussion</span> </a> </div> </div> <div class="relative my-4 border border-gray-400 rounded-lg dark:border-none mcq_item"> <table class="w-full mcq_table"> <thead class="py-2 bg-gray-100 border-b border-gray-300 dark:bg-gray-900 dark:border-gray-700 font-semibold"> <tr> <td class="rounded-tl-lg w-[36px] pl-3 pt-2.5 align-top dark:text-gray-200"> 6399. </td> <td class="py-2 rounded-tr-lg"> <h2 class="text-lg dark:text-gray-300"> What is heading in html </h2> </td> </tr> </thead> <tbody class="border-b border-gray-300 bg-gray-50 dark:bg-gray-900 dark:border-gray-700"> <tr class="dark:text-gray-300"> <!-- <td class="py-2">Heading is the size of text Or any thing you write thing on your htmlCode<br>HTML\xa0defines six levels of\xa0headings. A\xa0heading\xa0element implies all the font changes, paragraph breaks before and after, and any white space necessary to render the\xa0heading. The\xa0heading\xa0elements are H1, H2, H3, H4, H5, and H6 with H1 being the highest (or most important) level and H6 the least.</td> --> </tr> </tbody> <tfoot class="bg-[#eafeea] dark:bg-gray-900 mcq_answer"> <tr> <td colspan="2" class="pt-2 pl-3 dark:text-gray-200"> Answer» Heading is the size of text Or any thing you write thing on your htmlCode<br>HTML\xa0defines six levels of\xa0headings. A\xa0heading\xa0element implies all the font changes, paragraph breaks before and after, and any white space necessary to render the\xa0heading. The\xa0heading\xa0elements are H1, H2, H3, H4, H5, and H6 with H1 being the highest (or most important) level and H6 the least. </td> </tr> </tfoot> <tfoot class="bg-gray-100 dark:bg-gray-900 mcq_show_btn hidden"> <tr> <td colspan="2" class="p-2"> <button class="show_individual px-2 py-1 text-sm border border-violet-500 rounded text-violet-600 hover:bg-violet-100"> Show Answer </button> </td> </tr> </tfoot> </table> <div class="bg-[#eafeea] px-3 pb-1 rounded-b-lg flex justify-end items-center gap-3 text-slate-600 ans_footer dark:bg-gray-900"> <a class="dark:text-gray-300" href="https://interviewsolution.com/discussion/what-is-heading-in-html-4019441" target="_blank"> <span>Discussion</span> </a> </div> </div> <div class="relative my-4 border border-gray-400 rounded-lg dark:border-none mcq_item"> <table class="w-full mcq_table"> <thead class="py-2 bg-gray-100 border-b border-gray-300 dark:bg-gray-900 dark:border-gray-700 font-semibold"> <tr> <td class="rounded-tl-lg w-[36px] pl-3 pt-2.5 align-top dark:text-gray-200"> 6400. </td> <td class="py-2 rounded-tr-lg"> <h2 class="text-lg dark:text-gray-300"> Write the steps to enable accessibility options </h2> </td> </tr> </thead> <tbody class="border-b border-gray-300 bg-gray-50 dark:bg-gray-900 dark:border-gray-700"> <tr class="dark:text-gray-300"> <!-- <td class="py-2">Open Ease of Access Center by pressing the Windows + U keys. Under Explore all settings, click the Use the computer without a display link. Under Hear text read aloud, select the check box next to Turn on Narrator, and then click Apply.</td> --> </tr> </tbody> <tfoot class="bg-[#eafeea] dark:bg-gray-900 mcq_answer"> <tr> <td colspan="2" class="pt-2 pl-3 dark:text-gray-200"> Answer» Open Ease of Access Center by pressing the Windows + U keys. Under Explore all settings, click the Use the computer without a display link. Under Hear text read aloud, select the check box next to Turn on Narrator, and then click Apply. </td> </tr> </tfoot> <tfoot class="bg-gray-100 dark:bg-gray-900 mcq_show_btn hidden"> <tr> <td colspan="2" class="p-2"> <button class="show_individual px-2 py-1 text-sm border border-violet-500 rounded text-violet-600 hover:bg-violet-100"> Show Answer </button> </td> </tr> </tfoot> </table> <div class="bg-[#eafeea] px-3 pb-1 rounded-b-lg flex justify-end items-center gap-3 text-slate-600 ans_footer dark:bg-gray-900"> <a class="dark:text-gray-300" href="https://interviewsolution.com/discussion/write-the-steps-to-enable-accessibility-options-4019440" target="_blank"> <span>Discussion</span> </a> </div> </div> <div id="mcq-pagination" class="flex md:flex-row-reverse md:justify-start flex-wrap gap-5 justify-end items-center my-6"> <nav class="relative z-0 inline-flex flex-wrap -space-x-px rounded-md shadow-md"> <a href="https://interviewsolution.com/topic/computer-applications-in-class-10-84843?page=127" class="relative inline-flex items-center rounded-l-md p-2 text-gray-600 hover:bg-gray-200">‹</a> <a href="https://interviewsolution.com/topic/computer-applications-in-class-10-84843?page=1" class="px-4 py-2 text-gray-500 hover:bg-gray-200">1</a> <span class="px-2">…</span> <a href="https://interviewsolution.com/topic/computer-applications-in-class-10-84843?page=126" class="relative inline-flex items-center px-4 py-2 text-gray-500 hover:bg-gray-200"> 126 </a> <a href="https://interviewsolution.com/topic/computer-applications-in-class-10-84843?page=127" class="relative inline-flex items-center px-4 py-2 text-gray-500 hover:bg-gray-200"> 127 </a> <span class="relative inline-flex items-center border border-primary-300 px-4 py-2 text-gray-700 font-bold"> 128 </span> <a href="https://interviewsolution.com/topic/computer-applications-in-class-10-84843?page=129" class="relative inline-flex items-center px-4 py-2 text-gray-500 hover:bg-gray-200"> 129 </a> <a href="https://interviewsolution.com/topic/computer-applications-in-class-10-84843?page=130" class="relative inline-flex items-center px-4 py-2 text-gray-500 hover:bg-gray-200"> 130 </a> <span class="px-2">…</span> <a href="https://interviewsolution.com/topic/computer-applications-in-class-10-84843?page=132" class="px-4 py-2 text-gray-500 hover:bg-gray-200">132</a> <a href="https://interviewsolution.com/topic/computer-applications-in-class-10-84843?page=129" class="relative inline-flex items-center rounded-r-md p-2 text-gray-600 hover:bg-gray-200">›</a> </nav> </div> </div> </main> <aside class="py-4 md:w-1/3 lg:w-1/4"> <div class="relative p-2 mb-12 text-lg border border-gray-200 rounded-lg dark:bg-gray-900 dark:border-none"> <div class="flex items-center gap-2 px-2 mb-2 -ml-2 text-xl font-semibold border-l-4 rounded-sm dark:text-gray-100 border-primary-600"> <span>Related Topics</span> </div> <div class="flex flex-col gap-2 px-2"> </div> </div> <div class="relative p-2 mb-12 text-lg border border-gray-200 rounded-lg dark:bg-gray-900 dark:border-none"> <div class="flex items-center gap-2 px-2 mb-2 -ml-2 text-xl font-semibold border-l-4 rounded-sm dark:text-gray-100 border-primary-600"> <span>Related Subject</span> </div> <div class="flex flex-col gap-2 px-2"> <a href="https://interviewsolution.com/subject/current-affairs-37" class="text-gray-600 dark:text-gray-300 "> Current Affairs </a> <hr class="dark:border-gray-600/50"> <a href="https://interviewsolution.com/subject/general-knowledge-38" class="text-gray-600 dark:text-gray-300 "> General Knowledge </a> <hr class="dark:border-gray-600/50"> <a href="https://interviewsolution.com/subject/chemical-engineering-46" class="text-gray-600 dark:text-gray-300 "> Chemical Engineering </a> <hr class="dark:border-gray-600/50"> <a href="https://interviewsolution.com/subject/upsee-52" class="text-gray-600 dark:text-gray-300 "> UPSEE </a> <hr class="dark:border-gray-600/50"> <a href="https://interviewsolution.com/subject/bsnl-117" class="text-gray-600 dark:text-gray-300 "> BSNL </a> </div> </div> <fieldset class=" text-lg border-2 border-gray-300 rounded-lg p-2 mb-4 dark:border-gray-600" id="recent_visits_container"> <legend class="px-2 text-xl font-semibold dark:text-gray-300"> Recent Visits </legend> <div class="flex flex-col gap-2 px-2 text-md font-serif" id="links_container"> <a href="https://interviewsolution.com/subject/bsnl-117" class="text-gray-600 dark:text-gray-300 "> </a> <hr class="dark:border-gray-600/50"> </div> </fieldset> </aside> </div> <footer class="px-3 border-t-2 lg:px-9 bg-gray-50 dark:bg-black dark:text-gray-300 dark:border-gray-700"> <div class="flex flex-col-reverse items-md-center items-center justify-between gap-2 py-5 text-sm lg:flex-row"> <p> © Copyright 2025 <a href="https://interviewsolution.com">InterviewSolution</a>. All rights reserved. </p> <ul class="flex items-md-center items-center gap-2 mb-4 text-sm sm:flex-row md:mb-0"> <li class="md:border-r-2 dark:border-gray-700 md:pr-2"> <a href="https://interviewsolution.com/terms-condition"> Terms & Conditions </a> </li> <li class="md:border-r-2 dark:border-gray-700 md:pr-2"> <a href="https://interviewsolution.com/privacy-policy"> Privacy Policy </a> </li> <li class="md:border-r-2 dark:border-gray-700 md:pr-2"> <a href="https://interviewsolution.com/disclaimer"> Disclaimer </a> </li> <li class="dark:border-gray-700 md:pr-2"> <a href="https://interviewsolution.com/contact-us"> Contact Us </a> </li> </ul> </div> </footer> <div class="js-cookie-consent cookie-consent" role="dialog" aria-live="polite" style="position:fixed;left:0;right:0;bottom:0;z-index:99999;font-family:inherit;"> <style> /* Scope to this bar only */ .cookie-consent-bar { background: linear-gradient(90deg, #e11d48 0%, #a21caf 50%, #4338ca 100%); box-shadow: 0 -6px 24px rgba(0, 0, 0, .20); color: #fff; } .cookie-consent-wrap { max-width: 1200px; margin: 0 auto; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; } .cookie-consent__message { margin: 0; font-size: 14px; line-height: 1.55; color: #fff !important; } .cookie-consent__message a { color: #fff !important; text-decoration: underline; text-underline-offset: 2px; } .cookie-actions { display: flex; gap: 8px; align-items: center; } .cookie-btn { font-size: 14px; line-height: 1; padding: 9px 12px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; background: transparent; color: #fff; } .cookie-btn.reject { border-color: rgba(255, 255, 255, 0.75); } .cookie-btn.reject:hover { background: rgba(255, 255, 255, 0.10); border-color: #fff; } .cookie-btn.accept { background: #fff; color: #111; border-color: #fff; } .cookie-btn.accept:hover { background: #f5f5f5; } </style> <div class="cookie-consent-bar"> <div class="cookie-consent-wrap"> <p class="cookie-consent__message"> Your experience on this site will be improved by allowing cookies. Read <a href="https://interviewsolution.com/cookie-policy"><strong>Cookie Policy</strong></a> </p> <div class="cookie-actions"> <button type="button" class="cookie-btn reject js-cookie-consent-reject"> Reject </button> <button type="button" class="cookie-btn accept js-cookie-consent-agree"> Allow cookies </button> </div> </div> </div> </div> <script> window.laravelCookieConsent = (function () { const COOKIE_NAME = 'laravel_cookie_consent'; const COOKIE_DOMAIN = 'interviewsolution.com'; const LIFETIME_DAYS = 7300; function setCookie(name, value, expirationInDays) { const date = new Date(); date.setTime(date.getTime() + (expirationInDays * 24 * 60 * 60 * 1000)); let cookie = name + '=' + value + ';expires=' + date.toUTCString() + ';domain=' + COOKIE_DOMAIN + ';path=/'; cookie += ';samesite=lax'; document.cookie = cookie; } function cookiePresent(name) { return document.cookie.split('; ').some(c => c.startsWith(name + '=')); } function hideCookieDialog() { const dialogs = document.getElementsByClassName('js-cookie-consent'); for (let i = 0; i < dialogs.length; ++i) dialogs[i].style.display = 'none'; } function consentAccept() { setCookie(COOKIE_NAME, 1, LIFETIME_DAYS); hideCookieDialog(); } function consentReject() { setCookie(COOKIE_NAME, 0, LIFETIME_DAYS); hideCookieDialog(); } if (cookiePresent(COOKIE_NAME)) hideCookieDialog(); const acceptBtns = document.getElementsByClassName('js-cookie-consent-agree'); for (let i = 0; i < acceptBtns.length; ++i) acceptBtns[i].addEventListener('click', consentAccept); const rejectBtns = document.getElementsByClassName('js-cookie-consent-reject'); for (let i = 0; i < rejectBtns.length; ++i) rejectBtns[i].addEventListener('click', consentReject); return { consentAccept, consentReject, hideCookieDialog }; })(); </script> <script type="module"> import { initializeApp } from "https://www.gstatic.com/firebasejs/12.4.0/firebase-app.js"; import { getMessaging, getToken, onMessage } from "https://www.gstatic.com/firebasejs/12.4.0/firebase-messaging.js"; window.addEventListener('DOMContentLoaded', () => { const firebaseConfig = { apiKey: "AIzaSyDkRIhegH1Y-OyLVtqrz5vXJjV2nbiojGs", authDomain: "traffixsites.firebaseapp.com", projectId: "traffixsites", storageBucket: "traffixsites.appspot.com", // FIXED messagingSenderId: "1067502552533", appId: "1:1067502552533:web:119a8527f34859b0b8a95c", measurementId: "G-5BQT528Q60" }; const VAPID_PUBLIC_KEY = "BBeFJo-Mt91zjKiOA4lkEJTuT8ldIyEbeVoEdSzbMEdg7wuup_4s8jSyu-r3BfjV1tt8FoMic84GT0ptvWNCLWE"; const app = initializeApp(firebaseConfig); const messaging = getMessaging(app); async function requestAndRegister() { try { // Must be from a user gesture; this opens the native prompt (chip/modal by browser). const perm = await Notification.requestPermission(); if (perm !== 'granted') return; // Register SW and wait until active (Edge race fix) await navigator.serviceWorker.register('/firebase-messaging-sw.js', { scope: '/' }); const swReg = await navigator.serviceWorker.ready; const token = await getToken(messaging, { vapidKey: VAPID_PUBLIC_KEY, serviceWorkerRegistration: swReg }); if (token) { await fetch('/api/push/save-token', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]')?.content ?? '' }, body: JSON.stringify({ token, origin: location.origin, referrer: document.referrer || '' }) }); } } catch (e) { console.error('Push enable failed:', e); } } // “Feels automatic”: fire on first interaction (no banner) const firstInteraction = async (e) => { if (e.type === 'scroll' && Math.abs(window.scrollY || document.documentElement.scrollTop) < 2) return; detach(); if (Notification.permission === 'default') await requestAndRegister(); }; const events = ['click', 'pointerdown', 'keydown', 'touchstart', 'wheel', 'scroll']; const detach = () => events.forEach(ev => window.removeEventListener(ev, firstInteraction, { capture: true })); events.forEach(ev => window.addEventListener(ev, firstInteraction, { capture: true, passive: true })); // Optional: expose a manual trigger if you have a custom button elsewhere window.enablePush = requestAndRegister; onMessage(messaging, (payload) => console.log('Foreground message:', payload)); }); </script> <link rel="modulepreload" href="https://interviewsolution.com/assets/build/assets/app-BO9Klyof.js" /> <script type="module" src="https://interviewsolution.com/assets/build/assets/app-BO9Klyof.js" data-navigate-track="reload"></script> <script src="https://cdn.jsdelivr.net/npm/particles.js@2.0.0/particles.min.js"></script> <script src="https://interviewsolution.com/assets/build/assets/script.js"></script> <script> particlesJS.load('particles-js', "https://interviewsolution.com/assets/build/assets/particlesjs-config.json", function() { console.log('callback - particles.js config loaded'); }); </script> <script> document.addEventListener("DOMContentLoaded", function() { let visits = JSON.parse(localStorage.getItem("recent_visits")) || []; // get current page details let currentUrl = window.location.href; let currentTitle = document.title; // or set manually if you prefer // check if already exists (avoid duplicates) visits = visits.filter(item => item.url !== currentUrl); // add to beginning visits.unshift({ url: currentUrl, title: currentTitle }); // keep only 10 latest if (visits.length > 10) { visits = visits.slice(0, 10); } // save back localStorage.setItem("recent_visits", JSON.stringify(visits)); // render renderVisits(); function renderVisits() { let container = document.getElementById("links_container"); container.innerHTML = ""; if (visits.length === 0) { container.innerHTML = `<p class="text-gray-500 dark:text-gray-400">No recent visits</p>`; return; } visits.forEach((item, index) => { let a = document.createElement("a"); a.href = item.url; a.textContent = item.title; a.className = "text-gray-600 dark:text-gray-300 hover:underline"; container.appendChild(a); // Add <hr> only if it's NOT the last item if (index < visits.length - 1) { let hr = document.createElement("hr"); hr.className = "dark:border-gray-600/50"; container.appendChild(hr); } }); } }); </script> <!-- jQuery 3.7.1 (latest stable) --> <script> document.addEventListener("DOMContentLoaded", function () { const toggleBtn = document.getElementById("toggle_answers"); const mcqItems = document.querySelectorAll(".mcq_item"); toggleBtn.addEventListener("click", function () { const isHidden = this.getAttribute("data-is_hidden") === "yes"; mcqItems.forEach(item => { const answer = item.querySelector(".mcq_answer"); const showBtn = item.querySelector(".mcq_show_btn"); if (!isHidden) { // hide all answer.classList.add("hidden"); showBtn.classList.remove("hidden"); } else { // show all answer.classList.remove("hidden"); showBtn.classList.add("hidden"); } }); this.innerText = isHidden ? "Hide answers" : "Show answers"; this.setAttribute("data-is_hidden", isHidden ? "no" : "yes"); }); // individual show document.querySelectorAll(".show_individual").forEach(btn => { btn.addEventListener("click", function () { const parent = this.closest(".mcq_item"); parent.querySelector(".mcq_answer").classList.remove("hidden"); parent.querySelector(".mcq_show_btn").classList.add("hidden"); }); }); }); </script> <script> document.addEventListener('click', function(e) { const link = e.target.closest('#mcq-pagination a'); if (link) { e.preventDefault(); let url = link.getAttribute('href'); if (!url) return; fetch(url, { headers: { "X-Requested-With": "XMLHttpRequest" } }) .then(res => res.text()) .then(html => { document.querySelector('#mcq-container').innerHTML = html; }) .catch(err => console.error(err)); } }); </script> </body> </html>