adplus-dvertising
frame-decoration

Question

Guess the ternary operator used in the following example !!!
marks = (mark<35)?"Fail":"Pass";

a.

Conditional Operator

b.

Logical Operator

c.

Bitwise Operator

d.

Colon Operator

Posted under Web Technologies

Answer: (a).Conditional Operator

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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

Similar Questions

Discover Related MCQs

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

Q. Adding String and Integer always results in _________.

Q. Which of the following is not a comparison operator ?

Q. Integer Variable + Character Variable + Undefined Variable = ______________ Value

Q. "++" can operate only on ________________.

Q. "++" is __________ type of operator.

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

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

Q. Which of the following is not an logical operator ?

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

Q. "===" operator is _______________.

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

Q. Assignment Operators is following type of operator ______________.

Q. Local Variables are Destroyed as soon as ______________.

Q. Variables declared inside function are visible _______________.

Q. What will be the value of Variable - "num3" ?
var num1;
var num2 = 10;
var num3 = num1 + num2;

Q. Non Initialized Variable have value "undefine", What value be printed in following case -
var carname="Volvo";
var carname;

Q. When you assign a text value to a variable, we put text value in the pair of _________.

Q. Variable declared without a value will have the value ______________.

Q. var var1 = "Pritesh";
Above variable can store value of type -