1.______________ is used to display whether a value is a number or not.
3.What is right about variables?
- Variables are case sensitive
- % is a valid first character for variable name
- ^US is a valid variable name
- 7Wonders is a valid variable name to
1)Variables are case sensitive
4.Is the given definition a valid variable definition? var 100apples
5.Which one of the following also known as Conditional Expression:
- Alternative to if-else
- Switch statement
- If-then-else statement
- immediate if
- alert stop ;
- Conditional block
- block that combines a number of statements into a single compound statement
- both conditional block and a single statement
- block that contains a single statement
2)block that combines a number of statements into a single compound statement
- Anywhere within the body is good enough
- Towards the end of the body to increase the performance of the webpage
3)Towards the end of the body to increase the performance of the webpage
9.When interpreter encounters an empty statements, what it will do:
- Shows a warning
- Prompts to complete the statement
- Throws an error
- Ignores the statements
4)Ignores the statements
10.Is the given assignment a valid variable assignment? var product cost = 3.45;
- No, floating numbers are not allowed.
- No, there should be no space in the variable name.
- Yes, it is valid.
2)No, there should be no space in the variable name.
- All of the above
4)All of the above
- Either in body or head
- “My name is “Harry” “
- “My name is Harry”
- My name is Harry’
- “My name is ‘Harry’ “
1)”My name is “Harry” “
14.You wish to create an alert. Select the correct one from the following options.
- alert(‘he said “goodbye” ‘);
3)alert(‘he said “goodbye” ‘);
- Comma (,)
- Colon (:)
- Hyphen (_)
- Semicolon (;)
4) Semicolon (;)