0% found this document useful (0 votes)
5 views5 pages

JavaScript and AngularJS MCQ Exam Guide

The document is a 90-minute multiple-choice exam consisting of 100 questions divided into two parts: JavaScript (questions 1-70) and AngularJS (questions 71-100). Each question tests knowledge on various aspects of JavaScript and AngularJS, including syntax, functions, and concepts. The exam is designed to assess understanding and proficiency in both programming languages.

Uploaded by

ps13poonam
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views5 pages

JavaScript and AngularJS MCQ Exam Guide

The document is a 90-minute multiple-choice exam consisting of 100 questions divided into two parts: JavaScript (questions 1-70) and AngularJS (questions 71-100). Each question tests knowledge on various aspects of JavaScript and AngularJS, including syntax, functions, and concepts. The exam is designed to assess understanding and proficiency in both programming languages.

Uploaded by

ps13poonam
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Time : 90 Minute

Marks: 100
Type: Multiple Choice Question (MCQs)

Part A: JavaScript (1–70)


1. JavaScript is a:
A. Markup language B. Programming language
C. Database D. Operating system
2. JavaScript is mainly used for:
A. Styling web pages B. Adding interactivity to web pages
C. Creating databases D. Designing logos
3. JavaScript runs on:
A. Server only B. Browser only C. Both client and server D. Compiler
4. Which tag is used for JavaScript?
A. <js> B. <javascript> C. <script> D. <code>
5. JavaScript is a:
A. Compiled language B. Interpreted language
C. Assembly language D. Low-level language
6. Which symbol is used for comments in JavaScript?
A. <!-- --> B. // C. ** D. ##
7. Which keyword is used to declare a variable?
A. var B. int C. string D. float
8. Which is a correct variable name?
A. 1name B. var-name C. name1 D. var name
9. JavaScript is:
A. Case-insensitive B. Case-sensitive C. Both D. None
10. Which data type is NOT in JavaScript?
A. Number B. String C. Boolean D. Character
11. Which operator is used for assignment?
A. == B. === C. = D. !=
12. Which operator compares value and type?
A. == B. != C. === D. =
13. Which keyword is used for condition?
A. for B. if C. switch D. loop
14. Which loop executes at least once?
A. for B. while C. do-while D. foreach
15. Which statement stops a loop?
A. continue B. break C. stop D. exit
16. Which function displays message box?
A. prompt() B. alert() C. confirm() D. message()
17. Which function takes user input?
A. alert() B. input() C. prompt() D. get()
18. Which function returns true/false?
A. alert() B. prompt() C. confirm() D. input()
19. JavaScript array index starts from:
A. 1 B. 0 C. -1 D. Any number
20. Which symbol is used for array?
A. {} B. () C. [] D. <>
21. Which method adds element at end of array?
A. pop() B. push() C. shift() D. unshift()
22. Which method removes last element?
A. pop() B. push() C. slice() D. shift()
23. Which event occurs on button click?
A. onload B. onchange C. onclick D. onmouseover
24. Which object represents browser window?
A. document B. navigator C. window D. screen
25. Which object represents HTML document?
A. window B. document C. history D. location
26. DOM stands for:
A. Data Object Model B. Document Object Model
C. Digital Object Method D. Document Oriented Model
27. Which method finds element by id?
A. getElement() B. getElementById() C. getId() D. findId()
28. Which keyword defines a function?
A. func B. method C. function D. define
29. Which symbol is used for OR?
A. && B. || C. ! D. ==
30. Which symbol is used for AND?
A. || B. && C. != D. ===
31. Which value means “no value”?
A. 0 B. false C. null D. empty
32. Which keyword handles errors?
A. error B. catch C. try-catch D. handle
33. Which method converts string to integer?
A. parseInt() B. toInt() C. convert() D. NumberInt()
34. Which method converts string to float?
A. parseFloat() B. float() C. toFloat() D. parse()
35. Which object handles date and time?
A. clock B. timer C. Date D. Time
36. Which operator increments value?
A. -- B. ++ C. += D. =+
37. Which keyword defines constant?
A. var B. let C. const D. static
38. Which scope is outside function?
A. Local B. Block C. Global D. Static
39. Which method joins array elements?
A. concat() B. join() C. merge() D. link()
40. Which statement selects multiple conditions?
A. if B. switch C. loop D. break
41. Which operator checks inequality?
A. == B. != C. = D. ===
42. Which symbol is used for ternary operator?
A. :: B. ?? C. ?: D. <>
43. Which function runs on page load?
A. onstart B. onload C. onopen D. ready
44. Which method writes output on page?
A. [Link]() B. [Link]() C. print() D. output()
45. Which method prints message in console?
A. alert() B. [Link]() C. print() D. log()
46. JavaScript supports OOP?
A. No B. Yes C. Only classes D. Only functions
47. Which keyword creates object?
A. object B. new C. create D. make
48. Which value represents “not defined”?
A. null B. zero C. undefined D. false
49. Which operator is used for modulus?
A. / B. % C. * D. //
50. Which statement skips current loop iteration?
A. break B. skip C. continue D. pass
51. JavaScript is synchronous by default?
A. Yes B. No C. Sometimes D. Never
52. Which function delays execution?
A. wait() B. delay() C. setTimeout() D. pause()
53. Which function repeats execution?
A. setTimeout() B. setInterval() C. loop() D. repeat()
54. Which keyword stops function?
A. break B. stop C. return D. end
55. Which operator concatenates strings?
A. + B. & C. . D. ,
56. JavaScript file extension is:
A. .java B. .js C. .script D. .jsx
57. Which browser engine runs JavaScript?
A. Compiler B. Interpreter C. JavaScript Engine D. Loader
58. Which method converts object to JSON?
A. [Link]() B. [Link]() C. toJSON() D. convert()
59. Which method converts JSON to object?
A. [Link]() B. [Link]() C. toObject() D. parseJSON()
60. Which loop is best when iterations known?
A. while B. do-while C. for D. infinite
61. Which event fires when value changes?
A. onclick B. onchange C. onload D. onblur
62. Which event fires when mouse over element?
A. onmouse B. onmouseover C. onmouseenter D. onhover
63. Which statement defines block?
A. () B. [] C. {} D. <>
64. Which keyword creates block scope?
A. var B. let C. global D. scope
65. Which method removes first array element?
A. pop() B. shift() C. unshift() D. slice()
66. Which method adds element at beginning?
A. push() B. pop() C. unshift() D. shift()
67. Which value is falsy?
A. "0" B. "false" C. 0 D. "true"
68. Which operator checks type?
A. typeof B. type C. check D. instanceof
69. Which keyword exits switch?
A. exit B. stop C. break D. return
70. JavaScript is mainly used with:
A. HTML and CSS B. SQL C. XML only D. C++

Part B: AngularJS (71–100)


71. AngularJS is a:
A. JavaScript framework B. CSS framework
C. Database D. Language
72. AngularJS was developed by:
A. Facebook B. Microsoft C. Google D. Apple
73. AngularJS is used for:
A. Backend programming B. Single Page Applications
C. Database design D. Game development
74. AngularJS is based on:
A. MVC architecture B. Client-server C. Layered model D. Waterfall
75. MVC stands for:
A. Model View Controller B. Module View Code
C. Main View Component D. Model Value Control
76. AngularJS file extension is:
A. .ajs B. .ng C. .js D. .ts
77. Which directive starts AngularJS?
A. ng-start B. ng-app C. ng-init D. ng-main
78. Which directive binds data?
A. ng-bind B. ng-data C. ng-link D. ng-set
79. Which directive repeats data?
A. ng-loop B. ng-repeat C. ng-for D. ng-each
80. Which directive shows conditionally?
A. ng-if B. ng-show C. ng-hide D. ng-view
81. Which directive hides element?
A. ng-remove B. ng-hide C. ng-stop D. ng-none
82. Which directive handles click?
A. ng-click B. ng-press C. ng-event D. ng-tap
83. Which directive initializes data?
A. ng-init B. ng-start C. ng-data D. ng-load
84. Which directive handles input?
A. ng-text B. ng-input C. ng-model D. ng-value
85. ng-model provides:
A. One-way binding B. Two-way data binding
C. No binding D. Static binding
86. Which filter formats currency?
A. number B. money C. currency D. cash
87. Which filter converts text to uppercase?
A. upper B. uppercase C. caps D. big
88. Which directive creates controller?
A. ng-app B. ng-controller C. ng-manage D. ng-control
89. AngularJS expressions are written inside:
A. [] B. () C. {{ }} D. <>
90. Which directive switches views?
A. ng-view B. ng-page C. ng-route D. ng-switch
91. Which service handles HTTP requests?
A. $request B. $http C. $ajax D. $server
92. Which file is required for routing?
A. [Link] B. [Link] C. [Link] D. [Link]
93. Which directive includes HTML?
A. ng-include B. ng-load C. ng-html D. ng-template
94. Which directive switches case?
A. ng-case B. ng-switch C. ng-if D. ng-when
95. Which directive handles form validation?
A. ng-check B. ng-form C. ng-validate D. ng-test
96. AngularJS supports:
A. Two-way binding B. One-way binding only
C. No binding D. Static binding
97. Which object shares data?
A. $rootScope B. $scope C. $model D. $data
98. Which directive disables element?
A. ng-disable B. ng-disabled C. ng-off D. ng-lock
99. AngularJS uses which language?
A. Java B. TypeScript C. JavaScript D. Python
100. AngularJS is mainly used for:
A. Desktop apps B. Dynamic web applications
C. Databases D. Operating systems

You might also like