TN Online TestSamacheer Kalvi practice

12th Standard Computer Science — Control Structures: Additional Online Practice Test

Share this chapter: Telegram

Pick how many questions you want and set a time limit, then start. You'll get your score at the end with the correct answer and an explanation for every question. Free, in Tamil and English — 15 questions available.

Set up your test

Time remaining00:00
Q1
Which of the following statements is executed sequentially, one after another, in the order they are written?
Q2
What will be the value of x after the execution of the following statement: x = 10 if 5 > 8 else 20?
Q3
In an if..elif..else statement, where must the optional else clause be placed if it is used?
Q4
Which loop in Python is categorised as an entry check loop, meaning its condition is tested before executing the loop body?
Q5
What is the default starting value of the range generated by the range(stop) function in Python if only one parameter is specified?
Q6
What sequence of values will be generated by the expression range(2, 10, 3)?
Q7
What is the output of the following Python loop? for i in range(1, 5): if i == 3: break print(i, end=' ') else: print('End')
Q8
Which parameter of Python's print() function can be used to define custom separation characters between multiple items being printed?
Q9
What is the primary purpose of the pass statement in Python?
Q10
What will be printed on the screen when the following code block is executed? x = 'Python' for char in x: if char == 't' or char == 'o': continue print(char, end='')
Q11
Which of the following is correct regarding nested loops in Python?
Q12
What happens when the condition of a while loop is initially evaluated as False?
Q13
Which statement is used to unconditionally transfer the control from one part of the program to another?
Q14
What will be the output of the following Python code snippet? a = 15 if a % 3 == 0: if a % 5 == 0: print('Divisible by both') else: print('Divisible by 3 only') else: print('Not divisible by 3')
Q15
Which keyword can be used to test if a character exists in a tuple of specified vowel characters inside an if statement?

More for this chapter

Book Back Questions10 textbook MCQs · solved Additional MCQs15 extra MCQs · solved Practice TestInteractive · instant score Book Back TestTest yourself on the textbook set Study NotesConcepts & methods Formula SheetAll key formulas

About this Control Structures test

This free online practice test covers Control Structures from the 12th Standard Computer Science (Samacheer Kalvi) syllabus. Choose the number of questions and an optional time limit, then answer and submit — everything is checked in your browser, with the correct answers and a worked explanation shown at the end. For the full solutions to every question in this set, see the solved MCQs page.

More chapters in Computer Science

View all
1 Function 2 Data Abstraction 3 Scoping 4 Algorithmic Strategies 5 Python -Variables and Operators 7 Python functions 8 Strings and String manipulation 9 Lists, Tuples, Sets and Dictionary 10 Python Classes and objects 11 Database Concepts 12 Structured Query Language (SQL) 13 Python and CSV files 14 Importing C++ programs in Python. 15 Data manipulation through SQL 16 Data visualization using pyplot: line chart, pie chart and bar chart