Top 150+ Solved Web Technologies MCQ Questions Answer

From 76 to 90 of 125

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

  • c. unicode

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’

  • c. boolean b3 = false;

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

  • 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

  • a. row

Q. Which of the following can be operands of arithmetic operators?

a. numeric

b. boolean

c. characters

d. both numeric & 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

  • c. both integers and floating – point numbers

Q. Which of these operators can skip evaluating right hand operand?

a. !

b. none of the mentioned

c. &

d. &&

  • d. &&

Q. Which of these have highest precedence?

a. ()

b. ++

c. *

d. >>

  • a. ()

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

  • 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

  • b. switch

Q. . Which of these are selection statements in Java script?

a. if()

b. for()

c. continue

d. break

  • a. if()

Q. Which of the following is not a valid jump statement?

a. break

b. goto

c. continue

d. return

  • d. return
Subscribe Now

Get All Updates & News