DHARMAPURI COMPUTER INSTRUCTOR GRADE- I (2021). 11th (Java Script) *********************************
1. Which attribute is used to indicate the scripting
language and its value should be sent to “text/javascript” a) Language b) text c) type d) body
2. Which is mostly used to give warning message to
users? a) alert dialog box b) confirm box c) prompt box d) display box
3. Java script ignore that space appears between
a) command b) scripts c) Tockens d) text
4. The ______tag alerts the browser program to start
interpreting all the text between these tags as a script command a) <head> b) <title> c) <script> d) <body> 5. The ______operator is used to get the data type of its operand a) sizeof() b) typeof() c) ?: d) return();
6. in javascript which dialog box is mostly used to take
user’s consent on any option a) alert b) confirmation c) prompt d) all the above
7. which of the following is string concatenation
operator? a) concot(0 b) string() c) + d) add()
8. which statement is especially useful when testing all
the possible results of an expression? A) IF B) IF ELSE C) SWITCH D) FOR
9. In switch case, The_____structure is at the end of a
switch structure if the result of the expression that do not match any of the case labels, and ______statement is also used to exit the statement once the appropriate choice is found. a) break, default b) default, break c) Case, break d) break, switch
10. in for loop, which statement is that determines how
many times the loop be iterated. a) control variable b) conditional statement c) incremented d) decremented
11. The syntax of while loop is
a) while(condition){body of the loop} b) while{(initialization;condition;increment)} c) do{body of the loop}while(expression); d) all are wrong
12.The ______statement is the fundamental control
statement that allows Java Script to make decition to execute statements conditionally a) do while b) while c) for d) if 13. which functionis returns True? If the given value is no a number? a) isUpper b) isLower c) isNumver() d)isNan()
14. Larger programs are divided into small programs are
called__________ a) function b) explicit c) implicit d) modules
15. which of the following method return the element that
has the ID attribute with the specified value A) window.prompt() b) getElementById() c) submit button d) form id *******