Computer Science MCQs · Jquery What does the toggleClass() function do in jQuery? A Adds a class if the element does not have it, removes it if it does Correct answer B Adds a class without removing existing classes C Toggles between two classes D Removes a class MCQSEXAM Show answer Read explanation
Computer Science MCQs · Jquery Which jQuery method is used to append content to the end of selected elements? A append() Correct answer B attach() C addToEnd() D insert() MCQSEXAM Show answer Read explanation
Computer Science MCQs · Jquery What is the purpose of the attr() function in jQuery? A Adds a class to an element B Gets the value of an attribute for the first element Correct answer C Sets the HTML content of an element D Animates the CSS properties of an element MCQSEXAM Show answer Read explanation
Computer Science MCQs · Jquery Which jQuery method is used to hide selected elements? A hide() Correct answer B visible(false) C invisible() D toggleVisibility(false) MCQSEXAM Show answer Read explanation
Computer Science MCQs · Jquery What does the fadeIn() function do in jQuery? A Hides an element B Slides up an element C Changes the opacity of an element to make it visible Correct answer D Animates an element to move left MCQSEXAM Show answer Read explanation
Computer Science MCQs · Jquery Which function is used to prevent the default action of an event in jQuery? A preventDefault() Correct answer B stopPropagation() C haltEvent() D cancelEvent() MCQSEXAM Show answer Read explanation
Computer Science MCQs · Jquery How can you include jQuery in an HTML document? A <script src="jquery.js"></script> Correct answer B <link rel="stylesheet" href="jquery.css"> C <div class="jquery"></div> D <meta name="jquery" content="1.0"> MCQSEXAM Show answer Read explanation
Computer Science MCQs · Jquery What does AJAX stand for in the context of jQuery? A Asynchronous JavaScript and XML Correct answer B Advanced JavaScript and XHTML C Automated JavaScript and XML D Asynchronous JavaScript and XHTML MCQSEXAM Show answer Read explanation
Computer Science MCQs · Jquery Which symbol is used as a shortcut for jQuery? A ! B # C $ Correct answer D @ MCQSEXAM Show answer Read explanation
Computer Science MCQs · Jquery What is jQuery? A A programming language B A JavaScript library Correct answer C An operating system D A database management system MCQSEXAM Show answer Read explanation
Computer Science MCQs · Javascript Which function is used to schedule the execution of a function after a specified delay in JavaScript? A setTimeout() Correct answer B setInterval() C setDelay() D delayFunction() MCQSEXAM Show answer Read explanation
Computer Science MCQs · Javascript What is the purpose of the "localStorage" object in JavaScript? A Storing session data on the server B Storing data that persists across browser sessions Correct answer C Managing local databases D Fetching remote data MCQSEXAM Show answer Read explanation
Computer Science MCQs · Javascript Which loop is used for iterating over the properties of an object in JavaScript? A for loop B while loop C do-while loop D for...in loop Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · Javascript What is the purpose of the "JSON.parse()" method in JavaScript? A Parsing XML documents B Parsing JSON strings into JavaScript objects Correct answer C Creating JSON strings from JavaScript objects D Concatenating strings MCQSEXAM Show answer Read explanation
Computer Science MCQs · Javascript How can you comment a single line of code in JavaScript? A <!-- This is a comment --> B // This is a comment Correct answer C /* This is a comment */ D ** This is a comment ** MCQSEXAM Show answer Read explanation
Computer Science MCQs · Javascript What is the purpose of the "querySelector()" method in JavaScript? A Selecting the first HTML element that matches a CSS selector Correct answer B Modifying the CSS styles of all elements on a page C Creating new HTML elements D Accessing the entire HTML document MCQSEXAM Show answer Read explanation
Computer Science MCQs · Javascript Which event is triggered when a user clicks on an HTML element? A onmouseover B onkeydown C onclick Correct answer D onsubmit MCQSEXAM Show answer Read explanation
Computer Science MCQs · Javascript What is the purpose of the "document.getElementById()" function in JavaScript? A Accessing a specific HTML element by its ID Correct answer B Creating a new HTML element C Modifying the entire HTML document D Deleting HTML elements MCQSEXAM Show answer Read explanation
Computer Science MCQs · Javascript Which keyword is used to declare variables in JavaScript? A var B let C const D all of the above Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · Javascript What does JavaScript primarily enable within web browsers? A Database management B Styling web pages C Adding interactivity and dynamic content Correct answer D Server-side processing MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL What is the benefit of using views in MySQL? A Improve query performance by pre-calculated data. B Simplify complex queries for users. C Increase data security by restricting access. D All of the above. Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL What is the function of the PRIMARY KEY constraint in a MySQL table? A Uniquely identify each row in the table. Correct answer B Define the order in which data is displayed. C Ensure data integrity by referencing another table. D Limit the number of rows in the table. MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL How can you protect your MySQL database from unauthorized access? A Use strong passwords for all users. B Grant permissions to users based on their needs. C Keep your MySQL software up to date. D All of the above. Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL What does the GROUP BY clause do in a MySQL query? A Combine data from multiple tables. B Sort the results of a query based on a specific column. C Group rows together based on a shared value. Correct answer D Filter data based on a condition. MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL What is the difference between DELETE and TRUNCATE in MySQL? A DELETE is faster, while TRUNCATE is more secure. B DELETE allows you to specify conditions, while TRUNCATE deletes all rows. Correct answer C DELETE can be rolled back, while TRUNCATE cannot. D There is no difference between these commands. MCQSEXAM Show answer Read explanation