Development - Java Script - Operators

Assignment Operators is following type of operator ______________.

A.  Binary

B.  Unarry

C.  Ternary

D.  None of these

View Answer  

Correct Answer :

Binary



Explanation :

"Assignment Operator" operates on two operands.


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

A.  +==

B.  +=

C.  ==+

D.  =+

View Answer  

Correct Answer :

+=



Explanation :
x += y;

is equivalent to -

x = x + y;

 


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

A.  =

B.  %=

C.  ==

D.  +=

View Answer  

Correct Answer :

==



Explanation :
No Explanation available for this question

"===" 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  

Correct Answer :

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



Explanation :
No Explanation available for this question

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

A.  Float

B.  String

C.  Integer

D.  All Options

View Answer  

Correct Answer :

All Options



Explanation :
No Explanation available for this question

Which of the following is not an logical operator ?

A.  &&

B.  ||

C.  !

D.  |

View Answer  

Correct Answer :

|



Explanation :
No Explanation available for this question

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

A.  Dot

B.  Arrow

C.  Comma

D.  Plus

View Answer  

Correct Answer :

Plus



Explanation :
No Explanation available for this question

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  

Correct Answer :

Text



Explanation :
No Explanation available for this question

"++" is __________ type of operator.

A.  Ternary

B.  Binary

C.  Unary

D.  None of these

View Answer  

Correct Answer :

Unary



Explanation :
No Explanation available for this question

"++" can operate only on ________________.

A.  Constants

B.  Text

C.  Variables

D.  None of these

View Answer  

Correct Answer :

Variables



Explanation :
No Explanation available for this question

Integer Variable + Character Variable + Undefined Variable = ______________ Value

A.  Undefined Value

B.  Integer

C.  Character

D.  Text / String Value

View Answer  

Correct Answer :

Undefined Value



Explanation :
No Explanation available for this question

Which of the following is not a comparison operator ?

A.  ++

B.  

C.  >=

D.  ==

E.  ===

View Answer  

Correct Answer :

++



Explanation :
No Explanation available for this question

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  

Correct Answer :

False



Explanation :

Variable "x" is having integer value and we are using "===" operator. '===' operator will check the value and the type of value.


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  

Correct Answer :

true



Explanation :

"==" operator just checks the value.


Adding String and Integer always results in _________.

A.  Character

B.  Integer

C.  String

D.  None of these

View Answer  

Correct Answer :

String



Explanation :
No Explanation available for this question

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  

Correct Answer :

Conditional operator



Explanation :
No Explanation available for this question

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  

Correct Answer :

Conditional Operator



Explanation :
No Explanation available for this question

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  

Correct Answer :

Ternary Operator



Explanation :
No Explanation available for this question

Which of the following is not considered a JavaScript operator?

A.  new  

B.  this  

C.  delete  

D.  typeof  

View Answer  

Correct Answer :
this

 



Explanation :
No Explanation available for this question

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

A.  Eval

B.  ParseInt

C.  ParseFloat

D.  Efloat

View Answer  

Correct Answer :

Eval



Explanation :
No Explanation available for this question

The syntax of Eval is ________________

A.  [objectName.]eval(numeri).

B.  [objectName.]eval(string)

C.  [EvalName.]eval(string)

D.  [EvalName.]eval(numeri).

View Answer  

Correct Answer :

[objectName.]eval(string)



Explanation :
No Explanation available for this question