Plus Two / 12th Computer Applications - Book Back Answers - Chapter 6 - English Medium
Chapter 6: Conditional Statements in PHP
Tamil Nadu Board 12th Standard Computer Applications - Chapter 6: Book Back Answers and Solutions
This post covers the book back answers and solutions for Chapter 6 from the Tamil Nadu State Board 12th Standard Computer Applications textbook. These detailed answers have been carefully prepared by our expert teachers at KalviTips.com.
We have explained each answer in a simple, easy-to-understand format, highlighting important points step by step under the relevant subtopics. Students are advised to read and memorize these subtopics thoroughly. Once you understand the main concepts, you’ll be able to connect other related points with real-life examples and confidently present them in your tests and exams.
By going through this material, you’ll gain a strong understanding of Chapter 6 along with the corresponding book back questions and answers (PDF format).
Question Types Covered:
- 1 Mark Questions: Choose the correct answer, Fill in the blanks, Identify the correct statement, Match the following
- 2 Mark Questions: Answer briefly
- 3, 4, and 5 Mark Questions: Answer in detail
All answers are presented in a clear and student-friendly manner, focusing on key points to help you score full marks.
All the best, Class 12 students! Prepare well and aim for top scores. Thank you!
Chapter 6: Conditional Statements in PHP
I. Choose the correct answer.
1. Which of the following is NOT a type of conditional statement in PHP?
a) if
b) if ... else
c) if ... elseif ... else
d) while
Answer Key:
d) while
2. What type of statement is the if...else statement?
a) Conditional statement
b) Looping
c) Input statement
d) Output statement
Answer Key:
a) Conditional statement
3. What is the simplest conditional statement in PHP?
a) if-else statement
b) if statement
c) switch statement
d) if-elseif-else statement
Answer Key:
b) if statement
4. How does the if statement work in PHP?
a) A block of code is executed if a certain condition is true.
b) A block of code is executed if a certain condition is false.
c) A block of code is executed if multiple conditions are true.
d) A block of code is executed if multiple conditions are false.
Answer Key:
a) A block of code is executed if a certain condition is true.
5. What happens if the condition in an “if” statement is false?
a) The code inside the curly braces is executed.
b) The code inside the curly braces is skipped.
c) The program terminates.
d) None of the above
Answer Key:
b) The code inside the curly braces is skipped.
6. What is the syntax for an if-else statement in PHP?
a) if(condition) { //True-block; }
b) if(condition) { //True-block; } else { //False-block; }
c) if-else(condition) { //True-block; } else { //False-block; }
d) if-elseif(condition) { //True-block; } else { //False-block; }
Answer Key:
b) if(condition) { //True-block; } else { //False-block; }
7. Which of the following is used to specify multiple conditions in an if ... elseif ... else statement?
a) AND
b) OR
c) case
d) elseif
Answer Key:
d) elseif
8. Which of the following is used to specify multiple conditions in a switch statement?
a) AND
b) OR
c) case
d) if
Answer Key:
c) case
9. What happens if none of the case values match the expression in a switch statement?
a) The default case block is executed
b) The program terminates
c) The nearest case block is executed
d) The first case block is executed
Answer Key:
a) The default case block is executed
10. Which of the following is used to terminate the switch statement?
a) return
b) continue
c) goto
d) break
Answer Key:
d) break
a) if
b) if ... else
c) if ... elseif ... else
d) while
Answer Key:
d) while
2. What type of statement is the if...else statement?
a) Conditional statement
b) Looping
c) Input statement
d) Output statement
Answer Key:
a) Conditional statement
3. What is the simplest conditional statement in PHP?
a) if-else statement
b) if statement
c) switch statement
d) if-elseif-else statement
Answer Key:
b) if statement
4. How does the if statement work in PHP?
a) A block of code is executed if a certain condition is true.
b) A block of code is executed if a certain condition is false.
c) A block of code is executed if multiple conditions are true.
d) A block of code is executed if multiple conditions are false.
Answer Key:
a) A block of code is executed if a certain condition is true.
5. What happens if the condition in an “if” statement is false?
a) The code inside the curly braces is executed.
b) The code inside the curly braces is skipped.
c) The program terminates.
d) None of the above
Answer Key:
b) The code inside the curly braces is skipped.
6. What is the syntax for an if-else statement in PHP?
a) if(condition) { //True-block; }
b) if(condition) { //True-block; } else { //False-block; }
c) if-else(condition) { //True-block; } else { //False-block; }
d) if-elseif(condition) { //True-block; } else { //False-block; }
Answer Key:
b) if(condition) { //True-block; } else { //False-block; }
7. Which of the following is used to specify multiple conditions in an if ... elseif ... else statement?
a) AND
b) OR
c) case
d) elseif
Answer Key:
d) elseif
8. Which of the following is used to specify multiple conditions in a switch statement?
a) AND
b) OR
c) case
d) if
Answer Key:
c) case
9. What happens if none of the case values match the expression in a switch statement?
a) The default case block is executed
b) The program terminates
c) The nearest case block is executed
d) The first case block is executed
Answer Key:
a) The default case block is executed
10. Which of the following is used to terminate the switch statement?
a) return
b) continue
c) goto
d) break
Answer Key:
d) break
II.Answer the following questions.
12th Computer Application (soon)
III. Answer the following questions.
12th Computer Application (Soon)
IV. Answer the following questions.
12th Computer Application (Soon)








0 Comments:
Post a Comment