Top 50+ Solved Function and String in PHP MCQ Questions Answer

From 16 to 30 of 32

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