This document contains 6 questions about client-side scripting in JavaScript. The questions cover topics such as the differences between client-side and server-side scripting, JavaScript variables, methods for manipulating the DOM, using cookies, validating forms, jQuery, creating slideshows and calculators, AJAX, AngularJS, ReactJS, synchronous vs asynchronous JavaScript, local storage, and various array methods in JavaScript like map, filter, slice, splice, sort, and forEach. Students are required to answer sub-questions from each question.
This document contains 6 questions about client-side scripting in JavaScript. The questions cover topics such as the differences between client-side and server-side scripting, JavaScript variables, methods for manipulating the DOM, using cookies, validating forms, jQuery, creating slideshows and calculators, AJAX, AngularJS, ReactJS, synchronous vs asynchronous JavaScript, local storage, and various array methods in JavaScript like map, filter, slice, splice, sort, and forEach. Students are required to answer sub-questions from each question.
(10 marks) Explain the difference between client-side and server-side scripting.
Q2. (12 marks)
Attempt any four sub-questions from the following: a. What is the difference between `let` and `var` in JavaScript? b. Explain the use of `getElementById()` method in JavaScript. c. Write a JavaScript program to display the current date and time. d. What is the Document Object Model (DOM)? Explain its significance in client-side scripting. e. Explain the use of cookies in client-side scripting. f. Write a JavaScript program to validate a form.
Q3. (12 marks)
Attempt any four sub-questions from the following: a. Explain the use of jQuery in client-side scripting. b. Write a JavaScript program to create a slideshow. c. What is JSON? Explain its significance in client-side scripting. d. Explain the use of Bootstrap in client-side scripting. e. Write a JavaScript program to create a calculator. f. What is AJAX? Explain its significance in client-side scripting.
Q4. (12 marks)
Attempt any four sub-questions from the following: a. What is AngularJS? Explain its significance in client-side scripting. b. Explain the use of ReactJS in client-side scripting. c. Write a JavaScript program to create a dynamic table. d. What is the difference between synchronous and asynchronous JavaScript? e. Explain the use of local storage in client-side scripting. f. Write a JavaScript program to create a clock.
Q5. (12 marks)
Attempt any three sub-questions from the following: a. What is the difference between `==` and `===` in JavaScript? b. Explain the use of `this` keyword in JavaScript. c. Write a JavaScript program to create a simple game. d. Explain the use of `map()` method in JavaScript. e. Explain the use of `reduce()` method in JavaScript.
Q6. (12 marks)
Attempt any three sub-questions from the following: a. What is the difference between `slice()` and `splice()` methods in JavaScript? b. Explain the use of `filter()` method in JavaScript. c. Write a JavaScript program to create a simple animation. d. Explain the use of `sort()` method in JavaScript. e. Explain the use of `forEach()` method in JavaScript.