# PHP Constants and Operators Mcqs

Our collections of Multiple choice questions and answers focuses on study of PHP Constants and Operators. These questions are chosen from a collection of most authoritative and best reference books on PHP Constants and Operators. Our aim is to prepare an individual for competitive exams like NTS, GAT, ECAT, University and College entrance exams and various tests and job interviews. One should practice our Mcqs to assimilate PHP Constants and Operators Topic comprehensively.

Random_char

Mt_rand

Random_string

Both a and c

## 2. Abs ( ) stands for

Arithmetic Values

Absolute Values

Assignment Values

None of them

## 3. Rand ( ) and mt_ rand ( ) functions are examples of

Arithmetic functions

Boolean functions

Comparison functions

Randomness functions

## 4. Comparison operators have higher precedence than

Arithmetic operators

Assignment operators

Boolean operators

All of them

## 5. === operator is true if its two arguments are exactly

Equal

Opposite

Has the same type

Both a and c

++

??

%%

??

## 7. +=, ?=, *=, /=, %= all are example of

Comparison operator

Assignment operator

Increment operator

Decrement operator

## 8. Operator that takes simple values as arguments and evaluate it either TRUE or FALSE

Comparison operator

Assignment operator

Increment operator

Decrement operator

## 9. Module operator % in PHP only accepts

Doubles

Integers arguments

Floating arguments

None of them

## 10. Intval ( ) function is used for

Converting argument to integers

Converting arguments to characters

Converting arguments to strings

None of them

RAND_MIN

RAND_MAX

STRAND_MAX

None of them

===

???

!==

+++

## 13. Floor ( ), ceil ( ), round ( ), abs ( ), min ( ), max ( ) all functions are example of

Basic math functions

Randomness functions

Seeding and generating functions

None of them

## 14. *, /, % operators have higher precedence than

Comparison operators

Boolean operators

+?

None of them

Preincrement

Postdecrement

Lastincrement

None of them

0Shares
Scroll to Top