Page 391 - Webapplication11_C11_Flipbook
P. 391
B. Fill in the blanks.
1. The minimum iterations of a do while loop is ................................ .
2. The ................................ tag can enclose any number of JavaScript statements.
3. An external JavaScript file has the extension ................................ .
4. JavaScript statement end with a ................................ .
5. ................................ returns the data type of the operand passed to it.
6. The ................................ executes at least once irrespective of the condition. [CBSE Handbook]
7. If none of the case values in the switch statement match then ................................ is executed. [CBSE Handbook]
8. Second argument in prompt method is ................................ . [CBSE Handbook]
9. JavaScript was developed by ................................, a Netscape Communications Corporation programmer, in 1995.
10. JavaScript is an ................................ language.
11. An ................................ is a symbol that is used to perform calculations on values or variables.
12. An ................................ is a unit of code that is evaluated to a value.
13. Term DHTML stands for ................................ [CBSE Sample Paper, 2022]
C. State whether the following statements are true or false:
1. JavaScript is a case sensitive language.
2. The eval( ) method can convert a number to a string.
3. JavaScript does not support object-oriented programming.
4. JavaScript is processed at the client-side.
5. The substr( ) method returns a string that starts at the provided place and continues for the number of characters specified.
6. In for loop, i<=10 is known as conditional expression.
7. The continue statement breaks one loop at a time.
8. If i = 1, then the loop while(i < 5) {i++;} will execute 4 times.
9. i++ in while loop is known as update expression.
10. The while statement is the looping statement.
Section B
(Subjective Type Questions)
A. Short answer type questions.
1. List any 2 uses of JavaScript language.
2. List the different data types used in JavaScript.
3. Briefly explain the switch statement with an example.
4. What is an infinite loop?
5. Which method is used for user confirmation? Explain with an example.
6. What is looping?
7. Write the syntax to the for loop.
8. What would be the result of 1+2+“3” in JavaScript? [CBSE Handbook]
9. What will be the output of the following codes: [CBSE Handbook]
2 - 3
3 - 2
JavaScript Part 1 389

