12th Standard Syllabus & Materials
12th Standard
TN 12th Computer Applications மின்னணு தரவு பரிமாற்றம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின் - வணிக பாதுகாப்பு அமைப்புகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின்னணு செலுத்தல் முறைகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின் - வணிகம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications திறந்த மூல கருத்துருக்கள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications வலையமைப்பு வடமிடல் Sample Question Papers Study Material - QB365 Set A

Published on: 05/09/2022
QB365 provides a detailed and simple solution for every Possible Creative Questions in Class 12 Computer Applications Subject -Looping Structure, English Medium. It will help Students to get more practice questions, Students can Practice these question papers in addition to score best marks.
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.
Why do-while loop is an exit-condition loop? Give the reason.
2.
Why do we need to use loops?
3.
Write the short note on parameters used in 'for loop'.
4.
Define for each loop.
5.
Write the PHP code which shows the difference between while and do while loop.
6.
What will be the output of the following pHp code?
For (\(\$\)1=0; \(\$\)x<=10; print ++\(\$\)x)
{
print ++\(\$\)x;
}
?>
7.
Write short note on all the loops
8.
Write a PHP program to display the following
9.
Write a PHP program to display color names "using foreach" loop
10.
Write a php program to display the string "Hello World" 5 times using "for loop".
11.
Write a php program to display 1 to 10 numbers using while loop
1.
Do-while loop is an exit condition loop because it checks the condition after the block is executed, the control structure is often also known as a past-test loop.
2.
When we write the code if we want the same block of code to run over and over again. lnstead of adding several almost equal code-lines in a script, we can use loops to perform a task.
3.
There are three parameters used in 'for loop' They are init counter, test counter, and increment counter.
(i) Init counter is used to initialize the counter value.
(ii) Test counter is evaluated for every iteration of the loop.
(iii) Increment counter is used to increases the loop counter value.
4.
This loop is used to iterate over arrays. For every counter of loop, an array element is assigned and the next counter is shifted to the next element.
5.
While:
\(\$\)num=2;
While (\(\$\)num!=2)
{
echo"code to be skipped in while";
echo $num, "\n";
}
?>
Do While:
\(\$\)num = 2;
do{
\(\$\)num++;
echo"code is executed at least once";
} while (\(\$\)num==2);
?>
Output: While loop executes only when the condition is true. In do While loop the code is executed at least once.
6.
0utput:
123456789101112
The value of \(\$\)x is incremented and printed twice before checking, therefore the last loop it prints 11 and 12.
7.
1. PHP while loops execute a block of code while the specified condition is true.
2. The for loop is used when you knew in advance how many times the script should run.
3. The foreach loop works only en arrays, and is used to loop through each key/value pair in an array.
4. do ... while - loops through a block of code once, and then repeats the loop as long as the specified condition is true.
8.
The number is: 1
The number is: 2
The number is: 3
The number is: 4
The number is: 5
Program:
< ?php
$ x = 1;
de {
echo "The number is: $x
";
$x++;
} while ($x < = 5);
? >
9.
< ?php
scolors = array("red", "qreen", "blue'; "yellew'');
fereach (sectors as $value)
{
echo "svalue < br >";
}
? >
10.
< ?php
for ($x = 0; $x < = 5; $x++)
{
echo "Hello World < br >";
}
? >
11.
< ?php
$x = 1;
while($x < = 10)
{
echo sx:
$x++;
}
? >
12th Standard Syllabus & Materials
12th Standard
TN 12th Computer Applications களப்பெயர் முறைமை (DNS) Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications வலையமைப்பு எடுத்துக்காட்டுகள் மற்றும் நெறிமுறைகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications கணினி வலையமைப்பு ஓர் அறிமுகம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications PHP-உடன் MySQL-ஐ இணைத்தல் 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