Top 50+ Solved Function and String in PHP MCQ Questions Answer
Q. Which data type value is returned by all transcendental math functions?
a. int
b. float
c. double
d. long
Q. Which of these values can a boolean variable contain?
a. true & false
b. 0 & 1
c. any integer value
d. true
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
Q. Which of these jump statements can skip processing the remainder of thecode in its body for a particular iteration?
a. break
b. return
c. exit
d. continue
Q. Which of the following is not a decision making statement?
a. if
b. if-else
c. switch
d. do-while
Q. Which of the following is not a valid flow control statement?
a. exit()
b. break
c. continue
d. return
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
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
Q. An expression involving byte, int, and literal numbers is promoted towhich of these?
a. int
b. long
c. byte
d. float
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
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