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/08/2019
Control Structures
Download Tamil Nadu 12th Standard Computer Science 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 Science Test

1.
Which statement transfers the control out of loop even when the loop condition is tested true?
continue
break
pass
goto
2.
Which statement in python used to transfer the center from one part of the program to another unconditionally?
Jump
loop
alternative
iterative
3.
range (20), the range count from
1 to 20
0 to 19
1 to 19
0 to 20
4.
Which of the following is not a decision making statement?
if
if-else
do-while
if-elif
5.
Which of the following is not a type of branching statements?
if
if-else
if-elif
while
6.
How many important control structures in python?
2
3
4
many
7.
Which of the following is used to alter the control flow of the process depending on the state of the process?
control structure
control statement
program statement
control structure or control statement
8.
Which amongst this is not a jump statement?
for
goto
continue
break
9.
The condition in the if statement should be in the form of
Arithmetic or Relational expression
Arithmetic or Logical expression
Relational or Logical expression
Arithmetic
10.
How many important control structures are there in Python?
3
4
5
6
11.
Draw a flow chart that defines the execution of if-else statement.
12.
What is meant by alternative or branching?
13.
Write is the syntax of if..else statement.
14.
Write note on break statement.
15.
List the control structures in Python.
16.
Write a note on simple if statement with an example.
17.
List the types of alternative or branching statement in python.
18.
Write a note on sequential statement with an example.
19.
List the differences between break and continue statements.
20.
Write the syntax of while loop.
21.
Write a program in python to display the following output.
(i) 5 5 5 5 5
4 4 4 4
3 3 3
2 2
1
(ii) 1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
22.
Explain Jump statement in python.
23.
Write a program to display multiplication table for a given number.
1.
(b)
break
2.
(a)
Jump
3.
(b)
0 to 19
4.
(c)
do-while
5.
(d)
while
6.
(b)
3
7.
(d)
control structure or control statement
8.
(a)
for
9.
(c)
Relational or Logical expression
10.
(a)
3
11.

12.
There may be situations in our real life programming where we need to skip a segment or set of statements and execute another segment based on the test of a condition. This is called alternative or branching.
13.
Syntax:
if < condition >:
statements-block 1
else:
statements-block 2
14.
The break statement terminates the loop containing it. Control of the program flows to the statement immediately after the body of the loop.
15.
There are three important control Structures
(i) Sequential
(ii) Alternative or Branching
(iii) Iterative or Looping
16.
Simple if statement: Simple if is the simplest of all decision making statements. Condition should be in the form of relational or logical expression.
Syntax:
if
statements-block1
In the above syntax if the condition is true statements - block 1 will be executed.
Example: Program to check the age and print whether eligible for voting
x=int (input("Enter your age :"))
if x > = 18:
print ("You are eligible for voting")
Output 1:
Enter your age: 34
You are eligible for voting
Output 2:
Enter your age: 16
>>>
17.
Python provides the following types of alternative or branching statements:
(i) Simple if statement
(ii) if..else statement
(iii) if..elif statement
18.
A sequential statement is composed of a sequence of statements which are executed one after another. A code to print your name, address and phone number is an example of sequential statement
Example:
# Program to print your name and address - example for sequential statement
print ("Hello! This is Shyam")
print ("43, Second Lane, North Car Street, TN")
Output:
Hello! This is Shyam
43, Second Lane, North Car Street, TN
19.
| Break | Continue |
| The break statement terminates the loop containing it. | The continue statement is used to skip the remaining part of a loop. |
| Control of the program flows to the statement immediately after the body ot the loop. | Control of the program flows start with next iteration |
| Syntax : break | Syntax : continue |
20.
Syntax :
while <condition>;
statements block 1
[else:
statements block2]
21.
(i) for i in range (5, 0,-1):
for j in range (1, i + 1):
print (i, end =' ')
print (end = '\n')
i+ = 1
(ii) for i in range (5, 0, -1):
for j in range (1, i + 1):
print (j end =' ')
print (i, end = '\n')
i+ = 1
22.
The jump statement in Python, is used to unconditionally transfer the control from one part of the program to another. There are three keywords to achieve jump statements in Python: break, continue, pass. The following flowchart illustrates the use of break and continue.

(i) break statement: The break statement terminates the loop containing it. Control of the program flows to the statement immediately after the body of the loop. A while or for loop will iterate till the condition is tested false, but one can even transfer the control out of the loop (terminate) with help of break statement. When the break statement is executed, the control flow of the program comes out of the loop and starts executing the segment of code after the loop structure. If break statement is inside a nested loop (loop inside another loop), break will terminate the innermost loop.
Syntax:
break
(ii) Continue statement: Continue statement unlike the break statement is used to skip the remaining part of a loop and start with next iteration.
Syntax:
continue
(iii) Pass statement: pass statement is generally used as a placeholder. When we have a loop or function that is to be implemented in the future and not now, we cannot develop such functions or loops with empty body segment because the interpreter would raise an error. So, to avoid this we can use pass statement to construct a body that does nothing.
Syntax:
pass
23.
Multiplication table :
num =int(input("Enter the number: "))
print("multiplication Table of", num)
for i in range(1,11):
print (num,"x",i, "= ",num*i )
Output :
Enter the number : 6
Multiplication Table of 6
6 x 1 = 6
6 x 2 = 12
6 x 3 = 18
6 x 4 = 24
6 x 5 = 30
6 x 6 = 36
6 x 7 = 42
6 x 8 = 48
6 x 9 = 54
6 x 10 = 60.
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