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

From 1 to 15 of 32

Q. Which data type value is returned by all transcendental math functions?

a. int

b. float

c. double

d. long

  • c. double

Q. Which of these values can a boolean variable contain?

a. true & false

b. 0 & 1

c. any integer value

d. true

  • a. true & false

Q. What is the output of relational operators?

a. integer

b. boolean

c. characters

d. double

  • b. boolean

Q. . Which of these is returned by “greater than”, “less than” and “equal to”operators?

a. integers

b. floating – point numbers

c. boolean

d. none of the mentioned

  • c. boolean

Q. Which of the following is not a decision making statement?

a. if

b. if-else

c. switch

d. do-while

  • d. do-while

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

a. exit()

b. break

c. continue

d. return

  • a. exit()

Q. What is the range of short data type in Java script ?

a. -128 to 127

b. -32768 to 32767

c. -2147483648 to 2147483647

d. none of the mentioned

  • b. -32768 to 32767

Q. What is the range of byte data type in Java script?

a. -128 to 127

b. -32768 to 32767

c. -2147483648 to 2147483647

d. none of the mentioned

  • a. -128 to 127

Q. What is the numerical range of a char data type in Java script?

a. -128 to 127

b. 0 to 256

c. 0 to 32767

d. 0 to 65535

  • d. 0 to 65535

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;
Subscribe Now

Get All Updates & News