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.
PHP Programming Mcqs
- Basics of PHP Mcqs
- PHP Arrays and Functions Mcqs
- PHP Constants and Operators Mcqs
- PHP Controls Structures Mcqs
- PHP Error and Exception Handling Mcqs
- PHP Filesystem Mcqs
- PHP Functions Mcqs
- PHP Objects Tools and Variables Mcqs
- PHP OOP Mcqs
- PHP Session Handling Mcqs
- Strings and Regular Expressions Mcqs
Computer MCQS
Sciences MCQS
2.
Abs ( ) stands for
Arithmetic Values
Absolute Values
Assignment Values
None of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
3.
Rand ( ) and mt_ rand ( ) functions are examples of
Arithmetic functions
Boolean functions
Comparison functions
Randomness functions
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
4.
Comparison operators have higher precedence than
Arithmetic operators
Assignment operators
Boolean operators
All of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
5.
=== operator is true if its two arguments are exactly
Equal
Opposite
Has the same type
Both a and c
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
6.
Increment operator is denoted by
++
??
%%
??
7.
+=, ?=, *=, /=, %= all are example of
Comparison operator
Assignment operator
Increment operator
Decrement operator
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
8.
Operator that takes simple values as arguments and evaluate it either TRUE or FALSE
Comparison operator
Assignment operator
Increment operator
Decrement operator
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
9.
Module operator % in PHP only accepts
Doubles
Integers arguments
Floating arguments
None of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
10.
Intval ( ) function is used for
Converting argument to integers
Converting arguments to characters
Converting arguments to strings
None of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
11.
If rand ( ) function is called by no argument it returns a number between 0 and
RAND_MIN
RAND_MAX
STRAND_MAX
None of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
12.
Which operator returns true if two arguments are not equal or not have same type?
===
???
!==
+++
13.
Floor ( ), ceil ( ), round ( ), abs ( ), min ( ), max ( ) all functions are example of
Basic math functions
Randomness functions
Seeding and generating functions
None of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
14.
*, /, % operators have higher precedence than
Comparison operators
Boolean operators
+?
None of them
15.
Increment operator have two flavors one is postincrement and
Preincrement
Postdecrement
Lastincrement
None of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question