Fast review mode: answers are shown by default so you can skim quickly. Hide them if you want to self-test.
… pre>"},{"id":1083665,"question":"Head tag is used for?","answer":"All of these"},{"id":1083666,"question":"Which of the following are the background properties in CSS? i) background-color ii) background-image iii) background-repeat iv) background-position v) background ","answer":"All of these"},{"id":1083667,"question":"The different ways to associate styles with a HTML document are ……………","answer":"All of these"},{"id":1083668,"question":"The ..................... specifies whether a border should be solid, dashed line, dotted line, double line, groove etc.","answer":"border-style"},{"id":1083669,"question":"Which of the following are the advantages of CSS?","answer":"All of these"},{"id":1083670,"question":"A CSS style rule is made up of three parts which are …… i) Selector ii) Property iii) Value iv) Attribute","answer":"i, ii and iii only"},{"id":1083671,"question":"Which is not the selector type of CSS?","answer":"Universal selector"},{"id":1083672,"question":"CSS comments are inserted inside …………………","answer":" /*..................*/"},{"id":1083673,"question":"...................... is used to import an external style sheet ","answer":" #import"},{"id":1083674,"question":"The ___________ property specifies the stack order of an element ","answer":" z-index"},{"id":1083675,"question":"To specify table border in CSS, ____________ property is used","answer":"border"},{"id":1083676,"question":"______________ property specifies an image to use as the background of an element","answer":" background-image"},{"id":1083677,"question":"Which HTML attribute is used to define inline styles?","answer":"style "},{"id":1083678,"question":"The tag goes inside","answer":"head section"},{"id":1083679,"question":"When does JavaScript code appear inline within an HTML file?","answer":"Between the “script” tag"},{"id":1083680,"question":"Which is the root element in a HTML document?","answer":"HTML"},{"id":1083681,"question":"What is the default value of the type attribute in javascript?","answer":"text/css"},{"id":1083682,"question":"What are the objects in Java Script?","answer":"All of these"},{"id":1083683,"question":"JavaScript Code can be called by using","answer":"Function"},{"id":1083684,"question":"A hexadecimal literal begins with","answer":"Both b and c"},{"id":1083685,"question":"The escape sequence ‘\\f’ stands for","answer":"Form feed"},{"id":1083686,"question":"The snippet that has to be used to check if “a” is not equal to “null” is","answer":"if(a!==null)"},{"id":1083687,"question":"Among the following, which one is a ternary operator?","answer":"?:"},{"id":1083688,"question":"A function definition expression can be called","answer":"Function literal"},{"id":1083689,"question":"JavaScript is a _______________ language","answer":"Object-Based"},{"id":1083690,"question":"A conditional expression is also called a","answer":"Immediate if"},{"id":1083691,"question":"The “var” and “function” are","answer":"Declaration statements"},{"id":1083692,"question":"The method or operator used to identify the array is","answer":"typeof"},{"id":1083693,"question":"What will happen if reverse() and join() methods are used simultaneously ?","answer":"Reverses and stores in the same array"},{"id":1083694,"question":"The pop() method of the array does which of the following task ?","answer":"decrements the total length by 1"},{"id":1083695,"question":"The ‘$’ present in the RegExp object is called a","answer":"metacharacter"},{"id":1083696,"question":"The regular expression to match any one character not between the brackets is","answer":"[^...]"},{"id":1083697,"question":"The type that specifies what kind of event occured is","answer":"event type"},{"id":1083698,"question":"Which is the object on which the event occured or with which the event is associated?","answer":"event target"},{"id":1083699,"question":"In general, event handler is nothing but","answer":"function"},{"id":1083700,"question":"When will the browser invoke the handler?","answer":"Specified event occurs"},{"id":1083701,"question":"Which are the events that have default actions that can be canceled by event handlers?","answer":"Submit and reset events"},{"id":1083702,"question":"The events that represents occurrences related to the browser window are","answer":"Window"},{"id":1083703,"question":"Which event is fired when a document and all of its external resources are fully loaded and displayed to the user?","answer":"Load"},{"id":1083704,"question":"Which is the opposite to the load event in JavaScript?","answer":"unload"},{"id":1083705,"question":"When are the mouse events generated?","answer":"Both"},{"id":1083706,"question":"When is the mouseover event fired?","answer":"When mouse is moved over a new element"},{"id":1083707,"question":"The focus and blur events are also part of","answer":"Window events"},{"id":1083708,"question":"Which syntax is used to describe elements in CSS?","answer":"Selectors"},{"id":1083709,"question":"The C in CSS stands for","answer":"Cascading"},{"id":1083710,"question":"When are the keyboard events fired?","answer":"When user manually calls the button"},{"id":1083711,"question":"What PHP stands for?","answer":"Hypertext Preprocessor"},{"id":1083712,"question":"Which of the following tags is not a valid way to begin and end a PHP code block?","answer":" php ?>"},{"id":1083713,"question":"Variables always start with a ........ in PHP","answer":"Dollar-sign"},{"id":1083714,"question":"What function computes the difference of arrays?","answer":"array_diff"},{"id":1083715,"question":"What functions count elements in an array?","answer":"Count "},{"id":1083716,"question":"There are three different kind of arrays:","answer":"Numeric array, Associative array, Multidimensional array"},{"id":1083717,"question":"Which array function checks if the specified key exists in the array","answer":"array_key_exists()"},{"id":1083718,"question":"Which of the following DBMSs do not have a native PHP extension?","answer":"None of these"},{"id":1083719,"question":"In PHP in order to access MySQL database you will use:","answer":"mysql_connect() function"},{"id":1083720,"question":"PHP files have a default file extension of..","answer":".php"},{"id":1083721,"question":"Which of the following is/are a PHP code editor? i) Notepadii) Notepad++iii) Adobe Dreamweaveriv) PDT","answer":"Only iii)"},{"id":1083722,"question":"Which version of PHP introduced Try/catch Exception?","answer":"PHP 5"},{"id":1083723,"question":"We can use ___ to comment a single line? i) /?ii) //iii) #iv) /* */","answer":"ii), iii) and iv)"},{"id":1083724,"question":"Which of the below statements is equivalent to $add += $add ?","answer":"$add = $add +$add"},{"id":1083725,"question":"What will be the output of the following PHP code? ","answer":"1"},{"id":1083726,"question":"Which of the below symbols is a newline character?","answer":"\\n"},{"id":1083727,"question":"Which of the conditional statements is/are supported by PHP? i) if statements ii) if-else statements iii) if-elseif statements iv) switch statements","answer":"All of these"},{"id":1083728,"question":"Which of the looping statements is/are supported by PHP? i) for loop ii) while loop iii) do-while loop iv) foreach loop","answer":"All of these"},{"id":1083729,"question":"If $a = 12 what will be returned when ($a == 12)? 5: 1 is executed?","answer":"5"},{"id":1083730,"question":"Who is the father of PHP?","answer":"Rasmus Lerdorf"},{"id":1083731,"question":"What will be the output of the following php code? \"","answer":"3"},{"id":1083732,"question":"Which of following variables can be assigned a value to it? i) $3helloii) $_helloiii) $thisiv) $This","answer":"ii) and iv)"},{"id":1083733,"question":"What will be the output of the following PHP code? \"","answer":"clueget"},{"id":1083734,"question":"TCP/IP model does not have ______ layer but OSI model have this layer.","answer":"none"},{"id":1083735,"question":"Dynamic web page","answer":"generates on demand by a program or a request from browser"},{"id":1083736,"question":"Consider the following statements var text = "testing: 1, 2, 3"; // Sample text var pattern = /\\\\d+/g In order to check if the pattern matches with the string “text”, the statement is\\r\\n","answer":"pattern.test(text)"}]; let qno = 1; // 1-based index for display const total = CARDS.length || 1; const countSpan = document.getElementById('count'); const totalSpan = document.getElementById('total'); const quesDiv = document.getElementById('ques'); const ansDiv = document.getElementById('ans'); const statusSpan = document.getElementById('status'); const toggleAnsBtn = document.getElementById('toggleAns'); totalSpan.textContent = String(total); let autoTimer = null; const AUTO_MS = AUTOPLAY ? AUTO_DELAY : 12000; function setStatus(t){ statusSpan.textContent = t; } let studioTimer = null; function runStudioAuto(){ if (!IS_STUDIO || !AUTOPLAY) return; clearTimeout(studioTimer); studioTimer = setTimeout(() => { if (!ansDiv.classList.contains('show')) { toggleAnswer(); runStudioAuto(); } else if (qno < total) { nextQuestion(); runStudioAuto(); } }, AUTO_DELAY); } function disableBtns(){ document.getElementById("firstques").disabled = (qno <= 1); document.getElementById("prevques").disabled = (qno <= 1); document.getElementById("nextques").disabled = (qno >= total); document.getElementById("lastques").disabled = (qno >= total); } function cleanHtml(html){ if (!html) return ""; // If there is a trailing ", strip it. // Example: "Label { img.src = img.src; }); countSpan.textContent = String(qno); disableBtns(); setStatus("Ready"); // Update reminder checkbox for this card const cb = document.getElementById('addtoremind'); const cv = document.getElementById('check-validator'); if (cb && card.id) { cb.value = String(card.id); cb.checked = false; if (cv) cv.textContent = ""; } } if (IS_STUDIO && AUTOPLAY) { runStudioAuto(); } function nextQuestion(){ if (qno >= total) return; qno++; renderCard(); } function prevQuestion(){ if (qno <= 1) return; qno--; renderCard(); } function firstQuestion(){ if (qno === 1) return; qno = 1; renderCard(); } function lastQuestion(){ if (qno === total) return; qno = total; renderCard(); } function toggleAnswer(){ if (!ansDiv) return; if (ansDiv.classList.contains('show')) { ansDiv.classList.remove('show'); toggleAnsBtn.textContent = "Show answer"; } else { ansDiv.classList.add('show'); toggleAnsBtn.textContent = "Hide answer"; } } function toggleAuto(){ const btn = document.getElementById("toggleAuto"); if (autoTimer) { clearInterval(autoTimer); autoTimer = null; btn.textContent = "Auto: Off"; setStatus("Auto paused"); return; } autoTimer = setInterval(() => { if (qno >= total) { clearInterval(autoTimer); autoTimer = null; btn.textContent = "Auto: Off"; setStatus("Reached last card"); return; } nextQuestion(); }, AUTO_MS); btn.textContent = "Auto: On"; setStatus("Auto running"); } document.addEventListener('keydown', (e) => { if (e.key === 'ArrowLeft') { e.preventDefault(); prevQuestion(); return; } if (e.key === ' ') { e.preventDefault(); toggleAnswer(); return; } if (e.key === 'Enter' || e.key === 'ArrowRight') { e.preventDefault(); if (!ansDiv.classList.contains('show')) { toggleAnswer(); } else { nextQuestion(); } return; } }); if (IS_STUDIO) { document.addEventListener('keydown', (e) => { if (e.code === 'KeyF') { e.preventDefault(); const root = document.querySelector('.panel') || document.documentElement; if (!document.fullscreenElement) root.requestFullscreen?.(); else document.exitFullscreen?.(); } }); } disableBtns(); renderCard(); // initial sync if (IS_STUDIO && AUTOPLAY) { runStudioAuto(); } function addToReminder(val){ const cb = document.getElementById('addtoremind'); const isChecked = cb && cb.checked; const target = document.getElementById("check-validator"); if (target) target.innerHTML = ""; const u = "https://www.fatskills.com/remindthis.php?checked=" + (isChecked ? "true" : "false") + "&qid=" + encodeURIComponent(val); fetch(u, { credentials: "include" }) .then(r => r.text()) .then(t => { if (target) target.innerHTML = t; }) .catch(() => { if (target) target.textContent = ""; }); } window.addToReminder = addToReminder; window.toggleAnswer = toggleAnswer; window.toggleAuto = toggleAuto; window.nextQuestion = nextQuestion; window.prevQuestion = prevQuestion; window.firstQuestion = firstQuestion; window.lastQuestion = lastQuestion; Welcome to Fatskills Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges. Create a free account Sign in 900+ exams • Millions of questions • No spam
Label
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.