PHP Controls Structures and Functions Multiple Choice Questions 1 PDF Download

Practice php controls structures and functions multiple choice questions (MCQs), php test 1 for online course prep exams. Learn logical operators MCQs questions and answers on logical operators, ternary operator, php and looping, defining php functions with answers.

Free php controls structures and functions quiz online, study guide has multiple choice question on which logical operator has higher precedence from following with options !, &&, || and xor to test online e-learning skills for viva exam prep and job's interview questions with answers key. Study to learn logical operators quiz questions with online learning MCQs for competitive exam preparation test.

MCQ on PHP Controls Structures and Functions Quiz PDF Download Test 1

MCQ. Which logical operator has the higher precedence from the following?

  1. &&
  2. !
  3. ||
  4. xor


MCQ. TestExpression ? yesExperssion : noExpression is an example of

  1. Logical operator
  2. Assignment operator
  3. Ternary operator
  4. None of them


MCQ. Unbounded loops repeats until some condition becomes

  1. TRUE
  2. False
  3. Zero
  4. Both A and B


MCQ. A way of wrapping up a chunk of code and giving that chunk a name so that we can use it later in just one line of code is called as

  1. Class
  2. Constructor
  3. Function
  4. Branching


MCQ. The most complicated looping structure is

  1. While
  2. Do While
  3. For
  4. None of them