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;

 

  

  

  

  

"++" is __________ type of operator.

  

  

  

  

Conditional Operator shown in the following example is _____________.

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

 

  

  

  

  

Which of the following is not a comparison operator ?

  

  

  

  

  

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

  

  

  

  

The syntax of Eval is ________________

  

  

  

  

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

  

  

  

  

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

  

  

  

  

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

  

  

  

  

Which of the following is not an logical operator ?

  

  

  

  

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

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

 

  

  

  

  

Which of the following is not considered a JavaScript operator?

  

new

 

  

this

 

  

delete

 

  

typeof

 

"++" can operate only on ________________.

  

  

  

  

Assignment Operators is following type of operator ______________.

  

  

  

  

"===" operator is _______________.

  

  

  

  

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

  

  

  

  

Integer Variable + Character Variable + Undefined Variable = ______________ Value

  

  

  

  

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

  

  

  

  

Adding String and Integer always results in _________.

  

  

  

  

What will be the output of the following script ?

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

</html>

 

  

  

  

  

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.