JS Week 10 Past Paper PDF
Document Details
Uploaded by BetterThanExpectedLearning9144
Yeungjin University
Tags
Summary
This document appears to be a past paper for a JavaScript course covering jQuery and DOM manipulation. It contains multiple-choice questions and potentially some code examples to test knowledge on this topic.
Full Transcript
JAVASCRIPT WEEK 10 1. What is a JS Library that simplifies JS Programming and makes it easy to learn? a. HTML DOM Manipulation b. HTML Event Methods c. JQuery \# d. CSS Manipulation 2. Which of the following statements is untrue about jQuery? a. It takes a lot of common tasks that...
JAVASCRIPT WEEK 10 1. What is a JS Library that simplifies JS Programming and makes it easy to learn? a. HTML DOM Manipulation b. HTML Event Methods c. JQuery \# d. CSS Manipulation 2. Which of the following statements is untrue about jQuery? a. It takes a lot of common tasks that require many lines of JS code to accomplish and wraps them into methods that you can call with a single line of code. b. It simplifies a lot of complicated things from JS, like AJAX calls and DOM manipulation. c. The purpose of jQuery is to make it much easier to use JS on your website. d. jQuery is a lightweight, "write more, do less", JS library. \# 3. jQuery library contains HTML/DOM manipulation, CSS manipulation, HTML event methods, Effects & animations, AJAX and utilities. What are they? a. jQuery Concepts b. jQuery features \# c. jQuery methods d. jQuery codes 4. Some of the companies like Google, Microsoft, IBM and Netflix uses jQuery. What might be the possible reason why they support jQuery? a. There are no other JS Library b. Because of jQuery's affiliation with JS c. jQuery is probably the most popular and most extendable \# d. jQuery is cost- efficient 5. All but one of the statements is false about the advantages of jQuery. Which statement is that? a. Simple implementation of interactive processing with short and concise code. b. Easy and convenient implementation of animation effects through various plug-ins. c. HTML document object model (DOM) easy implementation of event handling and simple application of CSS styles. d. Support by most browsers, excluding older versions of web browsers. \# 6. Which of the following syntax is JS code? a. document.getElementById("p1").innerHTML="JavaScript"; \# b. \$("\#p1").html("JQuery"); c. \\ d. \Click me away!\ 7. Which of the following is jQuery code? a\. document.getElementById("p1").innerHTML="JavaScript"; b\. \$("\#p1").html("JQuery"); \# c\. \\ d\. \Click me away!\ 8. What are the two types or versions of jQuery? a. Development version and Production version \# b. Manipulation version and Production version c. Development version and Implementation version d. Manipulation version and Implementation version 9. Which of the following is the correct file type of uncompressed file of jQuery? a. Jquery.min.js b. Jquery.min c. Jquery.js \# d. Jquerymin.js 10. Which of the following is the correct file type of compressed file of jQuery? a. Jquerymin.js \# b. Jquery.min c. Jquery.js d. Jquerymin.js 11. What version of jQuery is an uncompressed file that is useful when developing jQuery? a. Development Version \# b. Manipulation Version c. Production version d. Implementation version 12. What version of jQuery is a compressed file which is not suitable for self-development purposes because the file size is small and loading speed is fast? a. Development Version b. Manipulation Version c. Production Version \# d. Implementation Version 13. If you don't want to download and host jQuery yourself, you can include it from a CDN. Loading using CDN has the advantage of faster content transmission time. What CDN stands for? a. Content Data Nesting b. Compressed Data Nesting c. Content Delivery Network \# d. Compressed Delivery Network 14. The jQuery syntax is tailor- made for selecting HTML elements and performing some action on the element(s). What is the basic syntax of jQuery? a. \$(selector).action() \# b. \$(action).selector() c. \$selector().action() d. \$action().selector() 15. Which of the following is not part of the description of a syntax of jQuery? a. A jQuery action() to be performed on the element(s) b. A (selector) to "query (or find)" HTML elements c. A \$ sign to define/access jQuery d. A (parenthesis) to group element(s) \# 16. Which of the following reasons is false why all jQuery methods are inside a document ready event? a. Actions might fail if methods are run before the document is fully loaded like trying to hide an element that is not created yet or trying to get the size of an image not loaded yet. b. This is to prevent any jQuery from running after the document is finished loading (is ready). \# c. It is good practice to wait for the document to be fully loaded and ready before working with it. d. This allows you to have your JS code before the body of your document in the head section. 17. How do you put jQuery syntax before the body of your document in the head section? a. \$(document).ready(function(){ //*query methods go here*...}); \# b. \$(function(){//*query methods go here*..}); c. document.getElementById("p1").innerHTML="JavaScript"; d. \$("\#p1").html("jQuery"); 18. Which of the following syntax is the shorter method for the document ready event created by jQuery team? a. \$(document).redy(function(){//query methods go here..}); b. \$(function(){//query methods go here..}); \# c. document.getElementById("p1").innerHTML="JavaScript"; d. \$("\#p1").hml("jQuery"); 19. A set of images, often with links, that slide, fade or otherwise transition through a sequence. a. Carousel Sliders b. Image Carousels c. Image Sliders d. All of the above \# 20. Which of the following statements is true? a. Image carousels have a different function compared to carousel sliders. b. The terms "image carousels", "carousel sliders" and "image sliders" are interchangeable and mean the same thing. \# c. Carousel Slider is a sequence without links to that slide. d. Image Slider is a set of images that transition without sequence. 21. It is a Responsive jQuery Content Slider with Animations. a. bxSlider \# b. AJAX c. Content Slider d. Animation Slider 22. There are two ways to download jQuery it is either from jQuery.com or from a CDN like google. Which is the correct way to specify the path if you are to download the jQuery library from jQuery.com? a. \\ \# b. \ \ c. \