12th Standard Syllabus & Materials
12th Standard
TN 12th English Poem - 6 - Incident of the French Camp Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Prose - 6 - On the Rule of the Road Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Prose - 5 - The Chair Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Supplementary - 4 - The Midnight Visitor Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Poem - 4 - Ulysses Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Prose - 4 - The Summit Sample Question Papers Study Material - QB365 Set A

Published on: 19/09/2019
Looping Structure
Download Tamil Nadu 12th Standard Computer Applications question papers, model tests, one-mark questions, important questions, and public exam papers in PDF format. Free study materials and answer keys for TN State Board students.
Questions + Answers key
Take MCQ Computer Applications Test

1.
How foreach loop will execut?
2.
Write the working principle of for loop parameters.
3.
Why looping structure is necessary in programming an uages?
4.
How "while loop" will execute?
5.
What is will provide "foreach" loop in PHP?
6.
How "for loop" will execute?
7.
Explain the use of for each loop in PHP.
8.
Compare For loop and for each loop.
9.
Write Syntax of Do while loop in PHP.
10.
Write Syntax of while loop in PHP.
11.
Write Syntax of For loop in PHP.
12.
List out Looping Structure in PHP.
13.
What is For each loop in PHP?
14.
Define for loop in PHP.
15.
Define Looping Structure in PHP
1.
(i) foreach loop is exclusively available In PHP.
(ii) It works only with arrays. The loop iteration deepens on each KEY Value pair in the Array
2.
1. init counter: Initialize the loop initial counter value
2. Test counter: Evaluated fer every iteration of the loop, If it evaluates to TRUE, the loop continues. If it evaluates to FALSE, the loop ends.
3. Increment counter: Increases the loop counter value.
3.
To repeat the same block of code a given number of times, or until a certain condition is met. This can be accomplished using looping statements
4.
PHP while loops execute a block of code while the specified condition is true.
5.
The foreach construct provides an easy way to iterate over arrays
6.
For loops execute a block of code a specified number of times.
7.
(i) It is used to loop through each KEY value pair in an array.
(ii) It will issue an error when you try to use it on a variable with a different data type or an initialized variable.
8.
| For loop | For each loop |
|---|---|
| For loops execute a block of code a specified number of times. | The foreach construct provides an easy way to iterate over arrays. |
9.
Syntax of Do while loop
do
{
code to be executed;
} while (condition is true);
10.
Syntax of while loop
while (condition is true)
{
code to be executed;
}
11.
Syntax of 'for loop'
for (init counter; test counter; increment counter)
{
code to be executed;
}
12.
(i) for loop
(ii) for each loop
(iii) while loop
(iv) Do while loop
13.
For each loop is exclusively available in PHP and is mainly used for looping through the values of an array. The loop iteration deepens on each KEY Value pair in the Array. For each, loop iteration the value of the current array element is assigned to $value variable and the array pointer is advanced by one, until it reaches the end of the array element.
14.
'for loop' is called as the entry - for check loop. The for loop is used to execute a block of code a specific number of times.
15.
Loop structures in PHP is an iterative control structures that involves executive the same block of code a specified number of times. Loops that iterate for fixed no of times is also called as Bounded loops.
12th Standard Syllabus & Materials
12th Standard
TN 12th English Supplementary - 3 - The Hour of Truth (Play) Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Poem - 3 - All the World’s a Stage Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Prose - 3 - In Celebration of Being Alive Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th English Supplementary - 2 - Life of Pi Sample Question Papers Study Material - QB365 Set A
Tamilnadu Stateboard 12th Standard Subjects

Maths

Chemistry

Physics

Biology

Computer Science

Business Maths and Statistics

Economics

Commerce

Accountancy

History

Computer Applications

Biology

Computer Technology

Computer Applications

Computer Science

Business Maths and Statistics

Commerce

Economics

Maths

Chemistry

Physics

Computer Technology

History

Accountancy

Tamil

English

French
Tamilnadu Stateboard Standards