TN Online TestSamacheer Kalvi practice

12th Standard Computer Applications — Conditional Statements in PHP: Online Practice Test

Share this chapter: Telegram

Pick how many questions you want and set a time limit, then start. You'll get your score at the end with the correct answer and an explanation for every question. Free, in Tamil and English — 25 questions available.

Set up your test

Time remaining00:00
Q1
Which of the following is NOT a type of conditional statement in PHP?
Q2
What type of statement is the if...else statement?
Q3
What is the simplest conditional statement in PHP?
Q4
How does the if statement work in PHP?
Q5
What happens if the condition in an "if" statement is false?
Q6
What is the syntax for an if-else statement in PHP?
Q7
Which of the following is used to specify multiple conditions in an if ... elseif ... else statement?
Q8
Which of the following is used to specify multiple conditions in a switch statement?
Q9
What happens if none of the case values match the expression in a switch statement?
Q10
Which of the following is used to terminate the switch statement?
Q11
In PHP, which of the following character sets is used to separate and define blocks of statements within a control structure?
Q12
Which of the following is a syntactical requirement for the condition or expression in PHP control structures?
Q13
How can the 'elseif' keyword in a PHP conditional statement alternatively be written?
Q14
What occurs in a PHP switch statement if a break statement is omitted at the end of a matching case block?
Q15
Which of the following are the two major categories of control structures in PHP?
Q16
What is the term used for statements in a script that cause the flow of control to jump from one part of the script to another?
Q17
In a PHP 'if...else' statement, which block of code is executed if the specified condition evaluates to false?
Q18
Which of the following statements is true regarding the 'default' case in a PHP 'switch' statement?
Q19
A PHP 'if...elseif...else' statement must begin and end with which parts respectively?
Q20
Which type of conditional statement in PHP is described as a multiple branching statement where control is transferred to one of many possible points based on a condition?
Q21
If the condition evaluated in a simple 'if' statement in PHP is false, what is the behavior of the program?
Q22
In a PHP 'if...elseif...else' statement, how many blocks of code can be executed at most during a single run of the structure?
Q23
What is the parameter inside the parentheses of a PHP 'switch' statement that is checked against each case value?
Q24
In an 'if...elseif...else' statement in PHP, how many 'elseif' parts can be included between the 'if' and 'else' parts?
Q25
Which of the following is true about statement execution flow in a standard PHP script?

More for this chapter

Book Back Questions10 textbook MCQs · solved Additional MCQs15 extra MCQs · solved Book Back TestTest yourself on the textbook set Additional MCQ TestTest yourself on the extra set Study NotesConcepts & methods Formula SheetAll key formulas

About this Conditional Statements in PHP test

This free online practice test covers Conditional Statements in PHP from the 12th Standard Computer Applications (Samacheer Kalvi) syllabus. Choose the number of questions and an optional time limit, then answer and submit — everything is checked in your browser, with the correct answers and a worked explanation shown at the end. For the full solutions to every question in this set, see the solved MCQs page.

More chapters in Computer Applications

View all
1 Multimedia 2 An Introduction to Adobe PageMaker 3 Introduction to Database Management System 4 PHP: Hypertext Preprocessor 5 Functions and Arrays in PHP 7 Loops in PHP 8 Forms and Files 9 Connecting PHP and MYSQL 10 Introduction to Computer Networks 11 Network Examples and Protocols 12 Domain Name System (DNS) 13 Network Cabling 14 Open Source Concepts 15 E-Commerce 16 Electronic Payment Systems 17 E-Commerce Security Systems 18 Electronic Data Interchange- EDI