Plus Two / 12th Computer Applications - Book Back Answers - Chapter 7 - English Medium
Chapter 7: Loops in PHP
Tamil Nadu Board 12th Standard Computer Applications - Chapter 7: Book Back Answers and Solutions
This post covers the book back answers and solutions for Chapter 7 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 7 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 7: Loops in PHP
I. Choose the correct answer.
1. Which of the following is NOT a type of loop statement in PHP?
a) for
b) if ... else
c) while
d) do … while
Answer Key:
b) if ... else
2. What type of loop is “for loop” in PHP?
a) Entry-Check Loop
b) Exit-Check Loop
c) Counter Loop
d) Iteration Loop
Answer Key:
a) Entry-Check Loop
3. What is the syntax for for loop in PHP?
a) for(initialization; condition; increment) { // code}
b) foreach(initialization; condition; decrement) { // code}
c) while(condition)
d) do{...}while(condition)
Answer Key:
a) for(initialization; condition; increment) { // code}
4. What are the three parts of the for loop syntax in PHP?
a) initialization, condition, increment
b) initialization, code block, condition
c) code block, condition, increment
d) condition, initialization, code block
Answer Key:
a) initialization, condition, increment
5. When is the ‘initialization’ part of a for loop executed?
a) Before each iteration
b) After each iteration
c) Only once at the beginning of the loop
d) Only once at the end of the loop
Answer Key:
c) Only once at the beginning of the loop
6. What is the purpose of the ‘increment’ part of a for loop?
a) To initialize variables
b) To update variables
c) To check the condition
d) To execute the code block
Answer Key:
b) To update variables
7. What type of loop is “while loop” in PHP?
a) Entry-Check Loop
b) Exit-Check Loop
c) Counter Loop
d) Iteration Loop
Answer Key:
a) Entry-Check Loop
8. What type of loop is “do...while loop” in PHP?
a) Entry-Check Loop
b) Exit-Check Loop
c) Counter Loop
d) Iteration Loop
Answer Key:
b) Exit-Check Loop
9. Which looping structure should be used to iterate over elements of an array in PHP?
a) for loop
b) while loop
c) do...while loop
d) foreach loop
Answer Key:
d) foreach loop
10. What is the output of the following code?
$array = array(1, 2, 3, 4, 5);
foreach ($array as $value)
{
echo $value;
}
a) 1 2 3 4 5
b) 5 4 3 2 1
c) 1 1 1 1 1
d) None of the above
Answer Key:
a) 1 2 3 4 5
a) for
b) if ... else
c) while
d) do … while
Answer Key:
b) if ... else
2. What type of loop is “for loop” in PHP?
a) Entry-Check Loop
b) Exit-Check Loop
c) Counter Loop
d) Iteration Loop
Answer Key:
a) Entry-Check Loop
3. What is the syntax for for loop in PHP?
a) for(initialization; condition; increment) { // code}
b) foreach(initialization; condition; decrement) { // code}
c) while(condition)
d) do{...}while(condition)
Answer Key:
a) for(initialization; condition; increment) { // code}
4. What are the three parts of the for loop syntax in PHP?
a) initialization, condition, increment
b) initialization, code block, condition
c) code block, condition, increment
d) condition, initialization, code block
Answer Key:
a) initialization, condition, increment
5. When is the ‘initialization’ part of a for loop executed?
a) Before each iteration
b) After each iteration
c) Only once at the beginning of the loop
d) Only once at the end of the loop
Answer Key:
c) Only once at the beginning of the loop
6. What is the purpose of the ‘increment’ part of a for loop?
a) To initialize variables
b) To update variables
c) To check the condition
d) To execute the code block
Answer Key:
b) To update variables
7. What type of loop is “while loop” in PHP?
a) Entry-Check Loop
b) Exit-Check Loop
c) Counter Loop
d) Iteration Loop
Answer Key:
a) Entry-Check Loop
8. What type of loop is “do...while loop” in PHP?
a) Entry-Check Loop
b) Exit-Check Loop
c) Counter Loop
d) Iteration Loop
Answer Key:
b) Exit-Check Loop
9. Which looping structure should be used to iterate over elements of an array in PHP?
a) for loop
b) while loop
c) do...while loop
d) foreach loop
Answer Key:
d) foreach loop
10. What is the output of the following code?
$array = array(1, 2, 3, 4, 5);
foreach ($array as $value)
{
echo $value;
}
a) 1 2 3 4 5
b) 5 4 3 2 1
c) 1 1 1 1 1
d) None of the above
Answer Key:
a) 1 2 3 4 5
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