Important Notice:
M2-R5.1 — JavaScript & Angular JS MCQ
170 Questions  •  M2-R5.1
1
What is JavaScript? / JavaScript क्या है?
2
Where does client-side JavaScript execute? / Client-side JavaScript कहां execute होता है?
3
JavaScript is a ______ language. / JavaScript एक ______ भाषा है।
4
Which of the following is NOT a JavaScript data type? / इनमें से कौन सा JavaScript data type नहीं है?
5
What keyword is used to declare a variable in JavaScript? / JavaScript में variable declare करने के लिए कौन सा keyword use किया जाता है?
6
Which keyword declares a block-scoped variable that can be reassigned? / Block-scoped variable declare करने वाला keyword कौन सा है जिसे reassign किया जा सकता है?
7
Which keyword declares a variable whose value cannot be reassigned? / ऐसा variable declare करने वाला keyword कौन सा है जिसकी value reassign नहीं की जा सकती?
8
What is the output of var a = 10; a = 20;? / var a = 10; a = 20; का output क्या होगा?
9
What is the output of const a = 10; a = 20;? / const a = 10; a = 20; का output क्या होगा?
10
Which operator is used for strict equality in JavaScript? / JavaScript में strict equality के लिए कौन सा operator use किया जाता है?
11
What is the output of 5 + '5' in JavaScript? / JavaScript में 5 + '5' का output क्या होगा?
12
What is the output of '5' - 3 in JavaScript? / JavaScript में '5' - 3 का output क्या होगा?
13
Which operator is the logical AND operator? / Logical AND operator कौन सा है?
14
Which operator is the logical OR operator? / Logical OR operator कौन सा है?
15
Which operator is the logical NOT operator? / Logical NOT operator कौन सा है?
16
What is the output of true && false? / true && false का output क्या होगा?
17
What is the output of true || false? / true || false का output क्या होगा?
18
What is the output of !true? / !true का output क्या होगा?
19
Which statement is used to execute code when a condition is true? / Condition true होने पर code execute करने के लिए कौन सा statement use किया जाता है?
20
Which statement executes code when a condition is false? / Condition false होने पर code execute करने वाला statement कौन सा है?
21
Which statement allows multiple conditions to be checked? / Multiple conditions check करने की permission देने वाला statement कौन सा है?
22
Which statement is used to exit a switch block? / Switch block से बाहर निकलने के लिए कौन सा statement use किया जाता है?
23
Which statement executes when no case matches in a switch? / Switch में कोई case match न होने पर कौन सा statement execute होता है?
24
What is the correct syntax for an if statement? / If statement के लिए सही syntax क्या है?
25
Which loop executes code at least once? / कौन सा loop code को कम से कम एक बार execute करता है?
26
Which loop repeats a block of code a specific number of times? / कौन सा loop code के block को specific number of times repeat करता है?
27
Which popup box displays a message with an OK button? / कौन सा popup box OK button के साथ message display करता है?
28
Which popup box returns true or false? / कौन सा popup box true या false return करता है?
29
Which popup box allows the user to enter input? / कौन सा popup box user को input enter करने देता है?
30
What does the confirm box return when OK is clicked? / Confirm box में OK click करने पर क्या return होता है?
31
What does the prompt box return when Cancel is clicked? / Prompt box में Cancel click करने पर क्या return होता है?
32
Which event occurs when a user clicks an HTML element? / User के HTML element पर click करने पर कौन सा event होता है?
33
Which event occurs when the mouse moves over an element? / Mouse element पर move होने पर कौन सा event होता है?
34
Which event occurs when the mouse moves away from an element? / Mouse element से दूर move होने पर कौन सा event होता है?
35
Which event occurs when the page has finished loading? / Page load हो जाने पर कौन सा event होता है?
36
Which event occurs when the value of an input field changes? / Input field की value change होने पर कौन सा event होता है?
37
Which event occurs when a form is submitted? / Form submit होने पर कौन सा event होता है?
38
What is the purpose of form validation? / Form validation का उद्देश्य क्या है?
39
Which function is used to check if an email is valid? / Email valid है या नहीं check करने के लिए कौन सा function use किया जाता है?
40
What does the isNaN() function do? / isNaN() function क्या करता है?
41
Which method converts a string to an integer? / String को integer में convert करने वाला method कौन सा है?
42
Which method converts a string to a floating-point number? / String को floating-point number में convert करने वाला method कौन सा है?
43
What is AngularJS? / AngularJS क्या है?
44
Which directive starts an AngularJS application? / AngularJS application start करने वाला directive कौन सा है?
45
Which directive initializes application data? / Application data initialize करने वाला directive कौन सा है?
46
Which directive binds HTML controls to application data? / HTML controls को application data से bind करने वाला directive कौन सा है?
47
Which directive repeats HTML elements for each item in a collection? / Collection के प्रत्येक item के लिए HTML elements repeat करने वाला directive कौन सा है?
48
What is the correct syntax for AngularJS expressions? / AngularJS expressions के लिए सही syntax क्या है?
49
What is the output of {{6 + 2}} in AngularJS? / AngularJS में {{6 + 2}} का output क्या होगा?
50
Which directive is used to declare AngularJS application variables? / AngularJS application variables declare करने के लिए कौन सा directive use किया जाता है?
51
Can AngularJS expressions contain loops? / क्या AngularJS expressions में loops हो सकते हैं?
52
Can AngularJS expressions contain function declarations? / क्या AngularJS expressions में function declarations हो सकते हैं?
53
What is the purpose of an AngularJS module? / AngularJS module का उद्देश्य क्या है?
54
How do you create an AngularJS module? / AngularJS module कैसे create करते हैं?
55
What is the correct syntax to create an AngularJS module? / AngularJS module create करने के लिए सही syntax क्या है?
56
Which directive is used to bind a controller to the view? / Controller को view से bind करने के लिए कौन सा directive use किया जाता है?
57
What is a controller in AngularJS? / AngularJS में controller क्या है?
58
What is $scope in AngularJS? / AngularJS में $scope क्या है?
59
Which directive is used for two-way data binding? / Two-way data binding के लिए कौन सा directive use किया जाता है?
60
What is two-way data binding in AngularJS? / AngularJS में two-way data binding क्या है?
61
Which of the following is NOT a valid AngularJS directive? / इनमें से कौन सा valid AngularJS directive नहीं है?
62
Which directive is used for event handling in AngularJS? / AngularJS में event handling के लिए कौन सा directive use किया जाता है?
63
What does the ng-click directive do? / ng-click directive क्या करता है?
64
What is the purpose of ng-bind directive? / ng-bind directive का उद्देश्य क्या है?
65
Which of the following is true about AngularJS expressions? / AngularJS expressions के बारे में इनमें से कौन सा सत्य है?
66
What is the output of {{10 * 5}} in AngularJS? / AngularJS में {{10 * 5}} का output क्या होगा?
67
Which directive is used to hide or show HTML elements? / HTML elements को hide या show करने के लिए कौन सा directive use किया जाता है?
68
What does ng-disabled directive do? / ng-disabled directive क्या करता है?
69
Which directive is used to include external HTML content? / External HTML content include करने के लिए कौन सा directive use किया जाता है?
70
What is the purpose of ng-submit directive? / ng-submit directive का उद्देश्य क्या है?
71
What is the result of 10 % 3 in JavaScript? / JavaScript में 10 % 3 का result क्या है?
72
What is the result of 2 ** 3 in JavaScript? / JavaScript में 2 ** 3 का result क्या है?
73
What is the result of 10 / 3 in JavaScript? / JavaScript में 10 / 3 का result क्या है?
74
What is the output of typeof "Hello" in JavaScript? / JavaScript में typeof "Hello" का output क्या है?
75
What is the output of typeof 42 in JavaScript? / JavaScript में typeof 42 का output क्या है?
76
What is the output of typeof true in JavaScript? / JavaScript में typeof true का output क्या है?
77
Which method adds an element to the end of an array? / Array के end में element add करने वाला method कौन सा है?
78
Which method removes the last element from an array? / Array से last element remove करने वाला method कौन सा है?
79
Which method removes the first element from an array? / Array से first element remove करने वाला method कौन सा है?
80
Which method adds an element to the beginning of an array? / Array के beginning में element add करने वाला method कौन सा है?
81
What is the purpose of the return statement? / return statement का उद्देश्य क्या है?
82
What does the break statement do in a loop? / Loop में break statement क्या करता है?
83
What does the continue statement do in a loop? / Loop में continue statement क्या करता है?
84
Which of the following is a valid JavaScript variable name? / इनमें से कौन सा valid JavaScript variable name है?
85
Which of the following is NOT a reserved keyword in JavaScript? / इनमें से कौन सा JavaScript में reserved keyword नहीं है?
86
What is the purpose of the alert() function? / alert() function का उद्देश्य क्या है?
87
What does the window.prompt() method return if the user clicks OK without entering anything? / अगर user बिना कुछ enter किए OK click करता है तो window.prompt() method क्या return करता है?
88
Which of the following is a valid way to add a click event to a button in JavaScript? / JavaScript में button पर click event add करने का valid तरीका कौन सा है?
89
What is the correct way to write a JavaScript array? / JavaScript array लिखने का सही तरीका क्या है?
90
How do you find the length of an array in JavaScript? / JavaScript में array की length कैसे find करते हैं?
91
What is the output of "Hello".length? / "Hello".length का output क्या होगा?
92
Which method converts a string to uppercase? / String को uppercase में convert करने वाला method कौन सा है?
93
Which method converts a string to lowercase? / String को lowercase में convert करने वाला method कौन सा है?
94
Which method removes whitespace from both ends of a string? / String के दोनों ends से whitespace remove करने वाला method कौन सा है?
95
What is the output of "Hello".charAt(0)? / "Hello".charAt(0) का output क्या होगा?
96
What is the output of "Hello".indexOf("e")? / "Hello".indexOf("e") का output क्या होगा?
97
Which method joins array elements into a string? / Array elements को string में join करने वाला method कौन सा है?
98
What is the output of [1, 2, 3].join("-")? / [1, 2, 3].join("-") का output क्या होगा?
99
Which of the following is NOT a comparison operator? / इनमें से कौन सा comparison operator नहीं है?
100
What is the output of 3 > 2? / 3 > 2 का output क्या होगा?
101
What is the output of 3 < 2? / 3 < 2 का output क्या होगा?
102
What is the output of 3 >= 3? / 3 >= 3 का output क्या होगा?
103
What is the output of 3 <= 2? / 3 <= 2 का output क्या होगा?
104
Which of the following is NOT a JavaScript event? / इनमें से कौन सा JavaScript event नहीं है?
105
What is the purpose of the onsubmit event? / onsubmit event का उद्देश्य क्या है?
106
Which attribute is used to attach an event handler to an HTML element? / HTML element पर event handler attach करने के लिए कौन सा attribute use किया जाता है?
107
What does the addEventListener() method do? / addEventListener() method क्या करता है?
108
What is event bubbling? / Event bubbling क्या है?
109
Which method stops event propagation? / Event propagation रोकने वाला method कौन सा है?
110
Which method prevents the default behavior of an event? / Event के default behavior को prevent करने वाला method कौन सा है?
111
What is the output of typeof null in JavaScript? / JavaScript में typeof null का output क्या है?
112
What is the output of typeof undefined in JavaScript? / JavaScript में typeof undefined का output क्या है?
113
What is the output of null == undefined? / null == undefined का output क्या होगा?
114
What is the output of null === undefined? / null === undefined का output क्या होगा?
115
Which of the following is a Falsy value in JavaScript? / JavaScript में इनमें से कौन सा Falsy value है?
116
Which of the following is a Truthy value in JavaScript? / JavaScript में इनमें से कौन सा Truthy value है?
117
What is the output of Boolean("")? / Boolean("") का output क्या होगा?
118
What is the output of Boolean("text")? / Boolean("text") का output क्या होगा?
119
Which of the following is used to declare a JavaScript function? / JavaScript function declare करने के लिए इनमें से किसका use किया जाता है?
120
What is the purpose of the Math.random() function? / Math.random() function का उद्देश्य क्या है?
121
What is the output of Math.floor(4.9)? / Math.floor(4.9) का output क्या होगा?
122
What is the output of Math.ceil(4.1)? / Math.ceil(4.1) का output क्या होगा?
123
What is the output of Math.round(4.5)? / Math.round(4.5) का output क्या होगा?
124
Which method converts a number to a string? / Number को string में convert करने वाला method कौन सा है?
125
What is the output of (10).toString()? / (10).toString() का output क्या होगा?
126
What is the purpose of AngularJS filters? / AngularJS filters का उद्देश्य क्या है?
127
Which filter formats a number to a currency format? / Number को currency format में format करने वाला filter कौन सा है?
128
Which filter formats a date? / Date को format करने वाला filter कौन सा है?
129
Which filter converts text to uppercase? / Text को uppercase में convert करने वाला filter कौन सा है?
130
Which filter limits an array to a specified number of elements? / Array को specified number of elements तक limit करने वाला filter कौन सा है?
131
Which filter orders an array? / Array को order करने वाला filter कौन सा है?
132
What is the correct syntax to apply a filter in AngularJS? / AngularJS में filter apply करने के लिए सही syntax क्या है?
133
Which of the following is a valid AngularJS filter? / इनमें से कौन सा valid AngularJS filter है?
134
What is the purpose of ng-repeat directive? / ng-repeat directive का उद्देश्य क्या है?
135
What is the correct syntax for ng-repeat? / ng-repeat के लिए सही syntax क्या है?
136
What is the output of ng-repeat over an empty array? / Empty array पर ng-repeat का output क्या होगा?
137
Which directive is used to conditionally display an element? / Conditionally element display करने के लिए कौन सा directive use किया जाता है?
138
What is the difference between ng-if and ng-show? / ng-if और ng-show में क्या अंतर है?
139
Which of the following is true about AngularJS? / AngularJS के बारे में इनमें से कौन सा सत्य है?
140
What is the output of {{true && false}} in AngularJS? / AngularJS में {{true && false}} का output क्या होगा?
141
What is the output of {{!false}} in AngularJS? / AngularJS में {{!false}} का output क्या होगा?
142
Which AngularJS directive is used for form validation? / Form validation के लिए कौन सा AngularJS directive use किया जाता है?
143
What is the purpose of the novalidate attribute in AngularJS forms? / AngularJS forms में novalidate attribute का उद्देश्य क्या है?
144
What is the output of {{10 > 5}} in AngularJS? / AngularJS में {{10 > 5}} का output क्या होगा?
145
Which of the following is a valid AngularJS expression? / इनमें से कौन सा valid AngularJS expression है?
146
What is the output of {{'Hello' + ' ' + 'World'}} in AngularJS? / AngularJS में {{'Hello' + ' ' + 'World'}} का output क्या होगा?
147
Which directive is used to bind the value of an input field to a model? / Input field की value को model से bind करने के लिए कौन सा directive use किया जाता है?
148
What is the output of {{5 * 5}} in AngularJS? / AngularJS में {{5 * 5}} का output क्या होगा?
149
What is the purpose of ng-style directive? / ng-style directive का उद्देश्य क्या है?
150
What is the purpose of ng-class directive? / ng-class directive का उद्देश्य क्या है?
151
What is the output of {{100 / 5}} in AngularJS? / AngularJS में {{100 / 5}} का output क्या होगा?
152
Which of the following is true about AngularJS modules? / AngularJS modules के बारे में इनमें से कौन सा सत्य है?
153
What is the output of {{'10' + 5}} in AngularJS? / AngularJS में {{'10' + 5}} का output क्या होगा?
154
Which AngularJS directive is used to initialize a module? / Module initialize करने के लिए कौन सा AngularJS directive use किया जाता है?
155
What is the output of {{10 % 3}} in AngularJS? / AngularJS में {{10 % 3}} का output क्या होगा?
156
Which of the following is a valid AngularJS controller definition? / इनमें से कौन सा valid AngularJS controller definition है?
157
What is the output of {{10 - 5}} in AngularJS? / AngularJS में {{10 - 5}} का output क्या होगा?
158
What is the purpose of the $scope object in AngularJS? / AngularJS में $scope object का उद्देश्य क्या है?
159
What is the output of {{true || false}} in AngularJS? / AngularJS में {{true || false}} का output क्या होगा?
160
Which of the following is a valid AngularJS filter syntax? / इनमें से कौन सा valid AngularJS filter syntax है?
161
What is the output of {{5 > 10}} in AngularJS? / AngularJS में {{5 > 10}} का output क्या होगा?
162
Which directive is used to include HTML from an external file? / External file से HTML include करने के लिए कौन सा directive use किया जाता है?
163
What is the output of {{2 + 3 * 4}} in AngularJS? / AngularJS में {{2 + 3 * 4}} का output क्या होगा?
164
What is the purpose of ng-switch directive? / ng-switch directive का उद्देश्य क्या है?
165
What is the output of {{ 'Hello'.length }} in AngularJS? / AngularJS में {{ 'Hello'.length }} का output क्या होगा?
166
What is the output of {{10 === 10}} in AngularJS? / AngularJS में {{10 === 10}} का output क्या होगा?
167
Which of the following is a valid way to define a function in AngularJS controller? / AngularJS controller में function define करने का valid तरीका कौन सा है?
168
What is the output of {{'5' - 3}} in AngularJS? / AngularJS में {{'5' - 3}} का output क्या होगा?
169
What is the output of typeof NaN in JavaScript? / JavaScript में typeof NaN का output क्या है?
170
Which AngularJS directive is used to bind the value of an HTML element to application data? / HTML element की value को application data से bind करने के लिए कौन सा AngularJS directive use किया जाता है?
Answered: 0 / 170