
Chapter 7 Looping Structure
Quiz by Jayalakshmi Rajasekaran
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Measure skills
from any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
15 questions
Show answers
- Q11. The _____construct provides an easy way to iterate over arraysdo..whileforforeachwhile30s
- Q22. Which of the following is an exit check loop?whileforforeachdo..while30s
- Q33. Which of the following is an entry check loop?All the aboveforeachwhilefor30s
- Q44. What will be displayed in a browser when the following PHP code is executed:<?php for ($i=1;$i<=5; $i++) { echo “$i”; } ?>None of the above12312345123430s
- Q55. What will be displayed in a browser when the following PHP code is executed: <?php for ($counter = 100; $counter < 10;$counter++) { echo “Welcome to Tamilnadu “; } echo “Counter is: $counter”; ?>Counter is : 100Welcome to TamilnaduWelcome to Tamilnadu counter is: 100Infinite loop30s
- Q66. Which loop evaluates condition expression as Boolean, if it is true, it executes statements and when it is false it will terminate?whileforeachforAll of them30s
- Q77. PHP supports ____ types of looping techniques?325430s
- Q88. How many main parameter are used in for loop?423130s
- Q99. What will be the output of the following PHP code? <?php for ($num = 1; $num <= 10; $num += 2) { echo "$num "; } ?>1 2 3 4 5Error1 3 5 7 99 7 5 3 130s
- Q1010. The most complicated looping structure is _________fordo..whilewhileNone of them30s
- Q1111. What will be the output of the following PHP code?<?php $i = 0 do { $i++; } while ($i < 3); print $i; ?>320130s
- Q1212. What will be the output of the following PHP code?<?php for ($x = 0; $x <= 10; print ++$x) { print ++$x; } ?>infinite loop12345678910123456789101112123456789101130s
- Q1313. in the following program identify the control variable for ($x = 0; $x <= 10; print ++$x) { print ++$x; } ?>$x$yprintfor30s
- Q1414. ________ loop executes the block of code while the specified condition is truedo...whileforeachwhile & forfor30s
- Q1515. _________structure is useful for writing iteration logicsLoopingVariableControldatatypes30s