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: 09/10/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.
range (20), the range count from
1 to 20
0 to 19
1 to 19
0 to 20
2.
Which of the following is not a type of branching statements?
if
if-else
if-elif
while
3.
Find the odd man out.
keywords
Operator
Identifiers
Programs
4.
Which amongst this is not a jump statement?
for
goto
continue
break
5.
What is the output of the following snippet?
T=1
while T:
print(True)
break
False
True
0
1
6.
7.
How many important control structures are there in Python?
3
4
5
6
8.
Write the syntax how break statement used in for loop.
9.
What is meant by Nested loop structure?
10.
Write the syntax of for loop.
11.
Write the syntax of alternative method to write complete if-else.
12.
Draw a flow chart that defines the execution of if-else statement.
13.
Write note on range () in loop.
14.
Define control structure.
15.
Write is the syntax of if..else statement.
16.
List the control structures in Python.
17.
Write the syntax of working of continue statement in for and while loop.
18.
List the types of alternative or branching statement in python.
19.
List the differences between break and continue statements.
20.
Write note on if..else structure.
21.
Write a program to display
A
A B
A B C
A B C D
A B C D E
22.
Write a program to display multiplication table for a given number.
23.
Write a detail note on if..else..elif statement with suitable example.
1.
(b)
0 to 19
2.
(d)
while
3.
(d)
Programs
4.
(a)
for
5.
(b)
True
6.
(c)
7.
(a)
3
8.
for var in sequence:
if condtion:

9.
A loop placed within another loop is called as nested loop structure. A while; within another while; for within another for; for within while and while within for to construc nested loops.
10.
Syntax:
for counter_variable in sequence:
statements-block 1
[else: # optional block
statement-block 2]
11.
Syntax:
variable = variablel if condition else variable 2
12.

13.
The range() is a built-in function, to generate series of values between two numeric intervals.
The syntax of range() is as follows:
range (start,stop,[step])
Where,
start - refers to the initial value
stop - refers to the final value
step - refers to increment value, this is optional part.
14.
A program statement that causes a jump of control from one part of the program to another is called control structure or control statement.
15.
Syntax:
if < condition >:
statements-block 1
else:
statements-block 2
16.
There are three important control Structures
(i) Sequential
(ii) Alternative or Branching
(iii) Iterative or Looping
17.
for var in sequence:
# code inside for loop
if condition:

while test expression:
#code inside while loop
if condition:

18.
Python provides the following types of alternative or branching statements:
(i) Simple if statement
(ii) if..else statement
(iii) if..elif statement
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.
(i) The if.. else statement provides control to check the true block as well as the false block,
(ii) Syntax :
if
statemets-block 1
else :
statement-block 2
(iii) if..else statement thus provides possibilities and the condition determines which BLOCK is to be executed.
21.
for i in range (1, 6) :
for j in range (65, 65 + i)
a = chr(j)
print a
print
22.
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.
23.
Nested if..elif..else statement :
(i) When we need to construct a chain of if statement(s) then 'elif' clause can be used instead of 'if else'.
(ii) Syntax:
if < condition - 1>:
statements-block 1
elif < condition - 2>:
statements-block 2
else:
statements-block n
(iii) In the syntax of if..elif ..else mentioned above, condition -1 is tested if it is true then statements-block 1 is executed, otherwise, the control checks condition-2, if it is true statements-block 2 is executed and even if it fails statements-block n mentioned in else part is executed.
(iv) 'elif' clause combines if..else-if ..else statements to one if..elif ... else. 'elif' can be considered to be abbreviation of 'else if'. In an 'if' statement there is no limit of 'elif' clause that can be used, but an 'else' clause if used should be placed at the end.
(v) Example: # Program to illustrate the use of nested if statement
| Average | Grade |
| > = 80 and above | A |
| > = 70 and < 80 | B |
| > = 60and < 70 | C |
| > = 50 and < 60 | D |
| Otherwise | E |
m1 = int (input("Enter mark in first subject:"))
m2 = int (input("Enter mark in second subject:"))
avg = (m1+m2)/2
if avg > =80:
print ("Grade : A")
elif avg > =70 and avg < 80:
print ("Grade : B")
elif avg > =60 and avg < 70:
print ("Grade : C")
elif avg > =50 and avg < 60:
print ("Gradec: D")
else:
print("Grade : E")
Output 1:
Enter mark in first subject : 34
Enter mark in second subject : 78
Grade : D
Output 2:
Enter mark in first Subject : 67
Enter mark in second subject : 73
Grade: B
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