Development - Java Script - Operators Test

Test Instructions :

1. The Test is 1hr duration.
2. The Test Paper consists of 30 questions. The maximum marks are 30.
3. All the questions are multiple choice question type with three options for each question.
4. Out of the three options given for each question, only one option is the correct answer.
5. Each question is allotted 1 mark for each correct response.
6. 0.25 will be deducted for incorrect response of each question.
Start Test

   Time Left : 00 : 30    : 00

What type of value gets printed if we add following two variables.

var a = "1";
var b = 5;

 

  

  

  

  

Guess the ternary operator used in the following example !!!

marks = (mark<35)?"Fail":"Pass";

 

  

  

  

  

"+=" operator can operate on following data values.

  

  

  

  

Which of the following is not a comparison operator ?

  

  

  

  

  

"++" can operate only on ________________.

  

  

  

  

Which of the following operator is used to concatenate two strings.

  

  

  

  

Conditional Operator shown in the following example is _____________.

marks = (mark<35)?"Fail":"Pass";

 

  

  

  

  

Which of the following is not considered a JavaScript operator?

  

new

 

  

this

 

  

delete

 

  

typeof

 

What will be the output of the following script ?

<!DOCTYPE html>
<html>
    <body>
        <script>
            var x = 5;
            document.write(x === "5");
        </script>
    </body>
</html>

 

  

  

  

  

Adding String and Integer always results in _________.

  

  

  

  

"===" operator is _______________.

  

  

  

  

The syntax of Eval is ________________

  

  

  

  

Which of the following operators not comes under assignment Operator ?Select all possible options.

  

  

  

  

"++" is __________ type of operator.

  

  

  

  

Integer Variable + Character Variable + Undefined Variable = ______________ Value

  

  

  

  

Which of the following is not an logical operator ?

  

  

  

  

______method evaluates a string of JavaScript code in the context of the specified object.

  

  

  

  

JavaScript contains a _________________ that assigns a value to a variable based on some condition.

  

  

  

  

"Add and Assignment" operator is shown by this symbol.

  

  

  

  

Assignment Operators is following type of operator ______________.

  

  

  

  

What will be the output of the following script ?

<!DOCTYPE html>
<html>
    
    <body>
        <script>
            var x = 5;
            document.write(x == "5");
        </script>
    </body>

</html>

 

  

  

  

  

Note:
  • Click the 'Submit Test' button given in the bottom of this page to Submit your answers.
  • Test will be submitted automatically if the time expired.
  • Don't refresh the page.