Online Multiple Choice Exam : JavaScript
admin2013-05-19T06:24:03+00:00Online Exam On : C Programming History
JavaScript
Start
Congratulations - You have completed JavaScript.
Your Score | : | %%SCORE%% |
Total Marks | : | %%TOTAL%% |
Rating | : | %%RATING%% |
Wrong Answers | : | %%WRONG_ANSWERS%% |
Your answers are highlighted below.
Question 1 |
JavaScript is an ________ language.
A | compiled |
B | interpreted |
Question 2 |
var var1 = "Pritesh";Above variable can store value of type -
A | Any Type |
B | String |
C | Integer |
D | None of these |
Question 3 |
JavaScript was originally developed under the name _______.
A | Oak |
B | ActionScript |
C | Sencha |
D | Mocha |
Question 4 |
Spaces,Punctuation marks are called as __________ Symbols in JavaScript.
A | Special |
B | Punctual |
C | Mandetory |
D | None of these |
Question 5 |
What type of value gets printed if we add following two variables .
var a = "1"; var b = 5;
A | Text |
B | Long |
C | Number |
D | Integer |
Question 6 |
We use _______ style comment to prevent showing Java Script as Content in the old browsers.
A | HTML |
B | C |
C | JS |
D | CSS |
Question 7 |
<script src="../main.js"></script>Are you sure, Above code will include External JS inside your webpage.
A | No |
B | Yes |
Question 8 |
var num;Above Statement is called as __________ Statement.
A | Initialization |
B | Globalization |
C | Declaration |
D | Instantization |
Question 9 |
<script type="text/javascript"> { document.Write("<h1>This is a heading</h1>"); } </script>Above Code contain one executive Statement. Guess the Output of the Above Code.
A | "This is a heading" will be printed in H1 heading. |
B | None of these |
C | Will not print anything |
D | Just "This is a heading" will be printed because HTML tags are not allowed |
Question 9 Explanation:
JS is case sensitive. "W" should be in lower case.
Question 10 |
Variable declared inside JavaScript Function will be called as ____________.
A | Global Variables |
B | Local Variables |
Question 11 |
Adding String and Integer always results in _________.
A | String |
B | None of these |
C | Character |
D | Integer |
Question 12 |
<script type="text/javascript"> // document.write("<h1>Heading</h1>"); document.write("<p>Google</p>"); document.write("<p>Yahoo</p>"); </script>Which of the statement will be neglected by Browser ?
A | <p>Google</p> |
B | <p>Yahoo</p> |
C | <h1>Heading</h1> |
D | All Statements |
Question 13 |
When you assign a text value to a variable, we put text value in the pair of _________.
Select appropriate option(s).
A | Square Bracket |
B | None of these |
C | Single Quote |
D | Double Quote |
Question 14 |
Java Script have following type of Comment(s) -
A | HTML Style Comment |
B | Single Line Comment |
C | Multiple Line Comments |
D | Enhanced Comments |
Question 15 |
Guess the ternary operator used in the following example !!!
marks = (mark<35)?"Fail":"Pass";
A | Logical Operator |
B | Bitwise Operator |
C | Conditional Operator |
D | Colon Operator |
Once you are finished, click the button below. Any items you have not completed will be marked incorrect.
Get Results
There are 15 questions to complete.
You have completed
questions
question
Your score is
Correct
Wrong
Partial-Credit
You have not finished your quiz. If you leave this page, your progress will be lost.
Correct Answer
You Selected
Not Attempted
Final Score on Quiz
Attempted Questions Correct
Attempted Questions Wrong
Questions Not Attempted
Total Questions on Quiz
Question Details
Results
Date
Score
Hint
Time allowed
minutes
seconds
Time used
Answer Choice(s) Selected
Question Text
All done
Need more practice!
Keep trying!
Not bad!
Good work!
Perfect!