Advanced JavaScript Class 12 MCQs are designed to help HSC Maharashtra Board students practice important concepts from the Advanced Web Designing syllabus. These multiple-choice questions cover topics such as JavaScript functions, events, DOM manipulation, form validation, objects, arrays, and error handling. Practicing these MCQs improves conceptual clarity and helps students score better in board and practical examinations.
Advanced Javascript Class 12 MCQs
1. Scripting languages are used to develop _.
a. Static website
b. Dynamic website
c. Both a) and b)
d. None of the above
2. Javascript is a __ language.
a. Interpreted language
b. Compiler language
c. Both a) and b)
d. None of the above
3. JavaScript was initially created to make websites __.
a. Secure
b. Alive
c. Slow
d. All of the above
4. The program written in JavaScript is known as _.
a. Tag
b. Script
c. Both a) and b)
d. None of the above
5. JavaScript is a lightweight scripting language because __.
a. It supports all the features of object-orientated language.
b. It does not support all features of object-orientated language.
c. It supports procedure-orientated language.
d. All of the above
6. JavaScript required special software to run the program.
a. Yes
b. No
7. JavaScript is a case-sensitive language.
a. Yes
b. No
8. Why is the JavaScript language known as a platform-independent scripting language?
a. It can run on any hardware platform, like PC, Mac, SunSparc.
b. It can run on any software platform, like Windows, Linux, or macOS.
c. Both a) and b)
d. None of the above
9. JavaScript is also known as _.
a. A local client-side scripting language
b. Back-side scripting language
c. Universal client-side scripting language
d. None of the above
10. What are the different types of scripting languages?
a. 2 types
b. 3 types
c. 4 types
d. 5 types
11. Which of the following is a type of scripting language?
a. Client-side scripting
b. Server-side scripting
c. Both a) and b)
d. Local-side scripting
12. Which of the following scripting languages runs on a client browser?
a. Client-side scripting
b. Server-side scripting
c. Universal-side scripting
d. Local-side scripting
13. Which of the following scripting languages runs on a web server?
a. Client-side scripting
b. Server-side scripting
c. Universal-side scripting
d. Local-side scripting
14. Server-side scripting is known as _.
a. Front-end program
b. Back-end program
c. None of the above
15. Server-side scripting language source code _.
a. Not visible at the client side
b. Visible at the client side
c. Visible at the time of process
d. All of the above
16. Examples of server-side scripting languages are _.
a. ASP.net
b. Ruby and PHP
c. ColdFusion
d. All of the above
17. Special software is required to execute server-side scripts.
a. Yes
b. No
18. AngularJS is mainly used for building __.
a. Operating System
b. Single-page application
c. Database management
d. None of the above
19. Vue.js is a JavaScript framework used for building _.
a. Interactive User Interfaces (UI)
b. Antivirus software
c. Search engines
d. None of the above
20. React is a JavaScript library mainly used for building __.
a. Mobile hardware
b. UI for single-page and mobile applications
c. Server operating systems
d. Database queries
21. JavaScript has a built-in multiway decision statement known as _.
a. If…else
b. For loop
c. Switch
d. None of the above
22. What is true about the switch statement?
a. The value of all the cases will be similar.
b. The default statement is not mandatory.
c. You can add multiple cases in a switch.
d. All of the above
23. Which of the following codes is used to execute the statements repeatedly?
a. If…else
b. For loop
c. Switch
d. None of the above
24. Iteration refers to the execution of a statement in code for __.
a. Only once
b. A fixed number of times or until a condition is satisfied
c. Random number of times
d. None of the above
25. This loop executes statements as long as the condition becomes _.
a. True
b. False
26. The loop execution comes out from the loop when the condition becomes
a. True
b. False
27. What is the benefit of a loop?
a. Initialisation
b. Condition
c. Iteration
d. All of the above
28. Initialisation in a loop means __.
a. Assigning a final value to a variable
b. Assigning an initial value to a variable (executes only once)
c. Checking condition repeatedly
d. Incrementing variable
29. Iteration in a loop means __.
a. Assigning initial value
b. Incrementing or decrementing the running variable
c. Ending the programme
d. Checking condition
30. Which loop executes statements as long as the condition is true?
a. For loop
b. While loop
c. Both a) and b)
d. Switch
31. If the statement within the loop is a single line, then the curly parenthesis is not required.
a. True
b. Phase
32. Which of the following statements is used to jump out from the loop?
a. Break
b. Continue
c. Jump
d. Loop
33. In JavaScript, which statement skips the current loop iteration and jumps to the next?
a. break
b. continue
c. exit
d. stop
34. JavaScript is an object-based scripting language.
a. True
b. False
35. Everything in JavaScript is an object.
a. True
b. False
36. A JavaScript object is an entity having _.
a. State
b. Behaviour
c. Both a) and b)
d. All of the above
37. In JavaScript, state is also known as __.
a. Properties
b. Methods
c. Behaviour
d. None of the above
38. In JavaScript behaviour is also known as _.
a. Properties
b. Methods
c. State
d. None of the above
39. Properties and methods of objects are accessed with _.
a. ‘$” operator
b. ‘%’ operator
c. ‘.’ operator
d. ‘@’ operator
40. JavaScript supports which of the following built-in objects and user-defined objects?
a. Built-in objects such as Math, String, Array, Date, etc.
b. JavaScript gives the facility to create user-defined objects as per user requirements.
c. The ‘new’ keyword is used to create a new object in JavaScript.
d. All of the above
41. DOM stands for _.
a. Digital Object Model
b. Document Object Model
c. Digital Object Method
d. Document Object Model
42. When an HTML document is loaded into a web browser, it becomes a __.
a. Document application
b. Document database
c. Document object
d. None of the above
43. The standardisation of DOM was founded by _.
a. International Organization for Standardisation
b. Premier Internet standards body
c. World Wide Web Consortium
d. None of the above
44. Which JavaScript method writes HTML expressions or JavaScript code directly to a document?
a. writeln()
b. write()
c. getElementById()
d. print()
45. Which JavaScript method is similar to write(), but adds a newline character after each statement?
a. write()
b. writeln()
c. getElementById()
d. echo()
46. Which JavaScript method is commonly used to access form elements using their id property?
a. write()
b. writeln()
c. getElementById()
d. querySelector()
47. The innerHTML property in JavaScript is mainly used for __.
a. Changing CSS styles
b. Getting or changing the content of an HTML element
c. Creating new databases
d. Running server-side code
48. Which of the following HTML elements can be accessed or modified using innerHTML?
a. Only <div>
b. Only <p>
c. Any HTML element including and <body>
d. Only <form>
49. The window object is the __ object of all other objects.
a. Child object
b. Parent object
c. Local object
d. Universal object
50. _ displays the confirm dialogue box containing a message with ‘ok’ and ‘cancel’ buttons.
a. alert()
b. confirm()
c. open()
d. close()
51. _ helps to open a new window in a browser.
a. alert()
b. confirm()
c. open()
d. close()
52. Which function is used to close the current window?
a. close()
b. exit()
c. close.alert()
d. None of the above
53. Which event occurs when a user leaves a field or loses focus of an element?
a. onfocus
b. onblur
c. onchange
d. onselect
54. Which event occurs when a page or image has been loaded?
a. onblur
b. onfocus
c. onload
d. onunload
55. Which event occurs when a user selects some text of an element?
a. onselect
b. onfocus
c. onsubmit
d. onblur
56. A string is used to store zero or more characters of text within __.
a. Single quotes
b. Double quotes
c. Both a) and b)
d. None of the above
57. Which of the following functions is used to find the number of characters in a string?
a. charAt()
b. index()
c. substr()
d. length
58. Which of the following functions returns the character at the specified position (in number)?
a. charAt()
b. index()
c. substr()
d. length
59. Which of the following functions returns the last occurrence of a specified character in a given string?
a. charAt()
b. lastIndexOf()
c. substr()
d. length
60. Which of the following functions removes whitespace from both sides of the string?
a. charAt()
b. lastIndexOf()
c. substr()
d. trim()
61. Which of the following functions converts a string to lower case?
a. lower()
b. toLowerCase()
c. LowerCase()
d. None of the above
62. Which of the following functions converts a string to uppercase?
a. Upper()
b. toUpperCase()
c. UpperCase()
d. None of the above
63. Which of the following functions returns the next integer greater than or equal to a given number?
a. abs(x)
b. cbrt(x)
c. ceil(x)
d. floor(x)
64. Which of the following functions returns the absolute value of a number?
a. abs(x)
b. cbrt(x)
c. ceil(x)
d. floor(x)
65. Which of the following functions returns the cube root of a number?
a. abs(x)
b. cbrt(x)
c. ceil(x)
d. floor(x)
66. Which of the following functions returns the next integer less than or equal to a given number (rounding down)?
a. abs(x)
b. cbrt(x)
c. ceil(x)
d. floor(x)
67. Which of the following functions returns the square root of a number?
a. abs(x)
b. cbrt(x)
c. ceil(x)
d. sqrt(x)
68. The date object is used to create _.
a. date
b. time
c. Both a) and b)
d. None of the above
69. Which of the following is used to represent the ‘Not a Number’ value?
a. Null
b. NaN
c. Not Number
d. Not a Number
70. Which of the following functions is used to convert a string to a number?
a. isInteger()
b. parseInt()
c. isFixed(0
d. None of the above
71. Which of the following methods is used to store multiple values in a single variable?
a. Pointer
b. Array
c. Function
d. None of the above
72. To join two or more arrays, which of the following functions can be used?
a. concat()
b. copyWithin()
c. join()
d. None of the above
73. Which of the following functions is used to search for the element and return its position?
a. isArray()
b. forEach()
c. indexOf()
d. push()
74. Which of the following functions is used for removing the last element from an array?
a. pop()
b. push()
c. indexOf()
d. forEach()
75. Which of the following functions is used for adding a new element to the end of an array?
a. pop()
b. push()
c. indexOf()
d. forEach()
Disclaimer: We have provide you with the accurate handout of “Advanced Javascript Class 12 MCQs“. If you feel that there is any error or mistake, please contact me at anuraganand2017@gmail.com. The above study material present on our websites is for education purpose, not our copyrights.
All the above content and Screenshot are taken from Information Technology Class 12 Textbook and MSBSHSE (HSC) Support Material which is present in MSBSHSE (HSC) website, This Textbook and Support Material are legally copyright by Maharashtra State Bureau of Textbook Production and Curriculum Research, Pune. We are only providing a medium and helping the students to improve the performances in the examination.
Images and content shown above are the property of individual organisations and are used here for reference purposes only. To make it easy to understand, some of the content and images are generated by AI and cross-checked by the teachers. For more information, refer to the official website.