Top 150+ Solved Web Technologies MCQ Questions Answer
Q. Which of these coding types is used for data type characters in Java script?
a. ascii
b. iso-latin-1
c. unicode
d. none of the mentioned
Q. Which one is a valid declaration of a Boolean?
a. boolean b1 = 1;
b. boolean b2 = ‘false’;
c. boolean b3 = false;
d. boolean b4 = ‘true’
Q. Which of these operators is used to allocate memory to array variable inJava script?
a. malloc
b. alloc
c. new
d. new malloc
Q. Which of these is an incorrect array declaration?
a. intarr[] = new int[5]
b. int [] arr = new int[5]
c. intarr[] = new int[5]
d. intarr[] = int [5] new
Q. Which of these is necessary to specify at time of array initialization?
a. row
b. column
c. both row and column
d. none of the mentioned
Q. Which of the following can be operands of arithmetic operators?
a. numeric
b. boolean
c. characters
d. both numeric & characters
Q. Modulus operator, %, can be applied to which of these?
a. integers
b. floating – point numbers
c. both integers and floating – point numbers
d. none of the mentioned
Q. Which operator is used to invert all the digits in a binary representation ofa number?
a. ~
b. <<<
c. >>>
d. ^
Q. Which of these operators can skip evaluating right hand operand?
a. !
b. none of the mentioned
c. &
d. &&
Q. Which of these statements are incorrect?
a. equal to operator has least precedence
b. brackets () have highest precedence
c. division operator, /, has higher precedence than multiplication operator
d. addition operator, +, and subtraction operator have equal precedence
Q. Which of these selection statements test only for equality?
a. if
b. switch
c. if & switch
d. none of the mentioned