Empowering Students with AI-Powered Assessments & Intelligent Learning
Chapter Exam

Chapter 6: Control Structures — Online MCQ Test

COMPUTER SCIENCE · CLASS 12th · Tamil Nadu State Board

Practice Chapter 6: Control Structures with a free chapter-wise online MCQ test for Tamil Nadu State Board CLASS 12th COMPUTER SCIENCE. This chapter covers: This chapter examines program flow control mechanisms in Python. It covers sequential conditional branching statements like if else and iterative loop structures including for and.... AI-generated questions from basic to board-exam level, with instant results and explanations.

10
Questions
20m
Time Limit
3
Attempts Left
  • 10 random questions from this chapter (mixed difficulty)
  • Questions you've seen before won't repeat until the pool resets
  • You have 20 minutes — exam auto-submits when time is up
  • Maximum 3 attempts per chapter
  • Results and explanations shown immediately after submission
Login to Start This Exam →

New here? Register free — includes 3 free chapter exams.

Chapter 6: Control Structures — Important Questions & Answers (FAQ)

Frequently asked questions from Tamil Nadu State Board CLASS 12th COMPUTER SCIENCE — Chapter 6: Control Structures, with answers and explanations. These are sample questions; the exam has its own separate question set.

Which statement is used to make a decision in Python?
  • A. if ✓
  • B. for
  • C. while
  • D. break
Answer: A. if
The if statement is used for conditional decision-making in Python.
Which loop is best suited for repeating a block of code a known number of times?
  • A. if
  • B. for ✓
  • C. break
  • D. pass
Answer: B. for
A for loop is generally used when the number of iterations is known in advance.
What will be the output of the following code? x = 5 if x > 3: print('Yes') else: print('No')
  • A. No
  • B. Yes ✓
  • C. 5
  • D. Error
Answer: B. Yes
Since x is greater than 3, the if block executes and prints Yes.
What is the output of the following code? for i in range(5): if i == 3: break print(i, end=' ')
  • A. 0 1 2 ✓
  • B. 0 1 2 3
  • C. 1 2 3
  • D. 0 1 2 3 4
Answer: A. 0 1 2
The loop stops when i becomes 3, so only 0, 1, and 2 are printed.
Which of the following best explains the difference between break and continue?
  • A. break exits the loop, continue skips only the current iteration ✓
  • B. break skips only the current iteration, continue exits the loop
  • C. Both always terminate the program
  • D. Both are used only with if statements
Answer: A. break exits the loop, continue skips only the current iteration
Break stops the loop completely, while continue moves to the next iteration without ending the loop.

Choose Your Plan & Start Practising

All plans cover every subject and chapter of your registered grade.

Free
₹0
3 exams · 1 year
Start Free →
Active
₹350
12 exams · 1 year
Get Active →
Pro
₹899
Unlimited exams · 1 year
Get Pro →

Compare all plans in detail →