Development - Java Script - Operators Question And Answers

Assignment Operators is following type of operator ______________.

A.  Binary

B.  Unarry

C.  Ternary

D.  None of these

View Answer  

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

A.  +==

B.  +=

C.  ==+

D.  =+

View Answer  

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

A.  =

B.  %=

C.  ==

D.  +=

View Answer  

"===" operator is _______________.

A.  Is equal to

B.  Is identical (is equal to and is of the different type)

C.  Is identical (is equal to and is of the same type)

D.  None of these

View Answer  

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

A.  Float

B.  String

C.  Integer

D.  All Options

View Answer  

Which of the following is not an logical operator ?

A.  &&

B.  ||

C.  !

D.  |

View Answer  

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

A.  Dot

B.  Arrow

C.  Comma

D.  Plus

View Answer  

What type of value gets printed if we add following two variables. var a = "1"; var b = 5;  

A.  Integer

B.  Long

C.  Number

D.  Text

View Answer  

"++" is __________ type of operator.

A.  Ternary

B.  Binary

C.  Unary

D.  None of these

View Answer  

"++" can operate only on ________________.

A.  Constants

B.  Text

C.  Variables

D.  None of these

View Answer  

Integer Variable + Character Variable + Undefined Variable = ______________ Value

A.  Undefined Value

B.  Integer

C.  Character

D.  Text / String Value

View Answer  

Which of the following is not a comparison operator ?

A.  ++

B.  

C.  >=

D.  ==

E.  ===

View Answer  

What will be the output of the following script ? var x = 5; document.write(x === "5");  

A.  5

B.  True

C.  1

D.  False

View Answer  

What will be the output of the following script ? var x = 5; document.write(x == "5");  

A.  false

B.  5

C.  true

D.  Undefined

View Answer  

Adding String and Integer always results in _________.

A.  Character

B.  Integer

C.  String

D.  None of these

View Answer  

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

A.  Bitwise Operator

B.  Logical Operator

C.  Assignment operator

D.  Conditional operator

View Answer  

Guess the ternary operator used in the following example !!! marks = (mark

A.  Conditional Operator

B.  Logical Operator

C.  Bitwise Operator

D.  Colon Operator

View Answer  

Conditional Operator shown in the following example is _____________. marks = (mark

A.  Unary Operator

B.  Binary Operator

C.  Ternary Operator

D.  None Of These

View Answer  

Which of the following is not considered a JavaScript operator?

A.  new  

B.  this  

C.  delete  

D.  typeof  

View Answer  

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

A.  Eval

B.  ParseInt

C.  ParseFloat

D.  Efloat

View Answer  

The syntax of Eval is ________________

A.  [objectName.]eval(numeri).

B.  [objectName.]eval(string)

C.  [EvalName.]eval(string)

D.  [EvalName.]eval(numeri).

View Answer