Q.1
File extension for external JS files
  • .javascript
  • .js
  • .jscript
  • .script
Q.2
We cannot Place JS Code in the body tag . Say true/false.
  • True
  • False.
Q.3
Is JavaScript case sensitive language?
  • Yes
  • No
  • Depends on the browser
  • Depends on the platform
Q.4
JavaScript is designed for following purpose -
  • To Style HTML Pages
  • To Perform Server Side Scripting Opertion
  • To add interactivity to HTML Pages.
  • To Execute Query Related to DB on Server
Q.5
Which of the following is NOT a valid starting character for JS variable names?
  • Uppercase Letter
  • Lowercase Letter
  • Dollar Sign
  • Underscore
Q.6
What is the correct JavaScript syntax to write "Hello World"?
  • System.out.println("Hello World")
  • println ("Hello World")
  • document.write("Hello World")
  • response.write("Hello World")
Q.7
Which of the following is not a feature of javascript?
  • Lightweight
  • Good for the applications which are network-centric
  • Object oriented
  • Open source
  • Complementary to HTML
Q.8
What will be the output of the following script ?
  • 5
  • true
  • 1
  • false
Q.9
JavaScript contains a _________________ that assigns a value to a variable based on some condition.
  • Bitwise Operator
  • Logical Operator
  • Assignment operator
  • Conditional operator
Q.10
Which of the following is not an logical operator ?
  • &&
  • ||
  • !
  • |
Q.11
"+=" operator can operate on following data values.
  • Float
  • String
  • Integer
  • All Options
Q.12
Which of the following operator is used to concatenate two strings.
  • Dot
  • Arrow
  • Comma
  • Plus
Q.13
What type of value gets printed if we add following two variables ?var a = "1";var b = 5;
  • Integer
  • Long
  • Number
  • Text
Q.14
What will be the output of the following code ?
  • 56
  • Error
  • No Output
  • 11
Q.15
When you assign a text value to a variable, we put text value in the pair of _________.
  • Single Quote
  • Double Quote
  • Square Bracket
  • Both a and b
Q.16
Variable name contain following type of characters -AlphabetDigitsUnderscoreSpecial CharactersSelect the correct option.
  • 3 4 2
  • 4 3 1
  • 1 2 3 4
  • 1 2 3
Q.17
Which JavaScript variable cannot be used as First character but can be use after first character ?
  • Asterisk
  • Dollar Sign
  • Underscore
  • Digit
0 h : 0 m : 1 s