Looking for authentic SEBA Class 10 Computer Science Chapter 4 (Introduction to Loops) MCQ solutions for the 2026–27 academic year? Access complete multiple-choice questions on for, while, and do-while loops, entry-controlled vs. exit-controlled loops, infinite loops, counter variables, and loop syntax with correct options and explanations to score top marks in your HSLC board exams.
Q1: Which of the following is an entry-controlled loop in C?
a) do-while loop
b) while loop
c) switch case
d) goto statement
Answer: b) while loop
Q2: Which loop is guaranteed to execute at least once regardless of the condition?
a) for loop
b) while loop
c) do-while loop
d) nested loop
Answer: c) do-while loop
Q3: What happens if the condition in a for loop is omitted?
a) Syntax error occurs
b) The loop executes 0 times
c) The loop becomes an infinite loop
d) The program terminates immediately
Answer: c) The loop becomes an infinite loop
Q4: What is the correct syntax of a for loop in C?
a) for (condition; initialization; increment/decrement)
b) for (initialization; condition; increment/decrement)
c) for (initialization, condition, increment/decrement)
d) for (increment/decrement; condition; initialization)
Answer: b) for (initialization; condition; increment/decrement)
Q5: Which statement is used to jump directly out of a loop body?
a) continue
b) break
c) exit
d) return
Answer: b) break
SEBA Class 10 Computer Science Chapter 4 MCQ Solutions
Q6: Which keyword is used to skip the remaining code of the current iteration and move to the next iteration?
a) stop
b) skip
c) break
d) continue
Answer: d) continue
Q7: A loop inside another loop is called a __.
a) double loop
b) continuous loop
c) nested loop
d) sequence loop
Answer: c) nested loop
Q8: How many times will the loop for(int i = 0; i < 5; i++) execute?
a) 4 times
b) 5 times
c) 6 times
d) Infinite times
Answer: b) 5 times
Q9: Which of the following is an exit-controlled loop?
a) while loop
b) for loop
c) do-while loop
d) if-else loop
Answer: c) do-while loop
Q10: What terminates a do-while loop syntax in C?
a) Colon (:)
b) Semicolon (;)
c) Comma (,)
d) No symbol required
Answer: b) Semicolon (;)
Class 10 Computer Science Chapter 4 MCQ Question Answer SEBA 2026-27
Q11: Which loop is preferred when the exact number of iterations is known in advance?
a) while loop
b) do-while loop
c) for loop
d) infinite loop
Answer: c) for loop
Q12: What will be the final value of variable i after executing for(i = 1; i <= 3; i++);?
a) 3
b) 4
c) 2
d) 1
Answer: b) 4
Q13: In a for loop, multiple statements in the initialization section are separated by which character?
a) Semicolon (;)
b) Comma (,)
c) Colon (:)
d) Space
Answer: b) Comma (,)
Q14: What is one complete execution of a loop body called?
a) Recursion
b) Iteration
c) Duration
d) Cycle
Answer: b) Iteration
Introduction to Loops Class 10 SEBA MCQ Notes
Q15: What will be the output of int i=5; while(i>5){ printf("%d", i); i--; }?
a) 5
b) 5 4 3 2 1
c) No output
d) Infinite loop
Answer: c) No output
Q16: Which of the following is the valid relational operator used inside loop conditions?
a) =
b) ==
c) &&
d) +=
Answer: b) ==
Q17: What will be the output of for(int i = 10; i > 7; i--) printf("%d ", i);?
a) 10 9 8 7
b) 10 9 8
c) 9 8 7
d) 10 9
Answer: b) 10 9 8
Q18: In a do-while loop, where is the condition evaluated?
a) Before entering the loop
b) At the middle of the loop
c) At the end of the loop body
d) Inside the initialization block
Answer: c) At the end of the loop body
Q19: Which loop is best suited when the body of the loop needs to be executed at least once before testing the condition?
a) while loop
b) for loop
c) do-while loop
d) nested for loop
Answer: c) do-while loop
Q20: What will happen if the condition in a while loop never becomes false?
a) Compiler generates an error
b) The program executes an infinite loop
c) The loop executes only once
d) The computer shuts down
Answer: b) The program executes an infinite loop
SEBA Class 10 Computer Science Chapter 4 Multiple Choice Questions
Q21: Which statement is true about the continue statement inside a loop?
a) It terminates the entire program.
b) It exits from the current loop immediately.
c) It skips the remaining statements of the current iteration.
d) It restarts the execution from the main function.
Answer: c) It skips the remaining statements of the current iteration.
Q22: What is the output of int i = 1; while(i <= 3) { printf("%d ", i++); }?
a) 1 2 3
b) 1 2 3 4
c) 2 3 4
d) 3 2 1
Answer: a) 1 2 3
Q23: Which of the following components is NOT part of a standard for loop header?
a) Initialization
b) Condition
c) Increment/Decrement
d) Function Definition
Answer: d) Function Definition
Q24: How many total times will the body of the inner loop execute?
for(int i = 0; i < 3; i++)
{
for(int j = 0; j < 2; j++)
{
}
}
a) 3 times
b) 5 times
c) 6 times
d) 2 times
Answer: c) 6 times
Q25: What will be the output of the code segment: int i = 5; do { printf("%d ", i); } while(i < 3);?
a) 5
b) 5 4 3
c) No output
d) Infinite 5s
Answer: a) 5
HSLC Computer Science Chapter 4 Objective Questions
Q26: Which operator is commonly used in loop counters to increase the variable value by 1?
a) Decrement operator (--)
b) Increment operator (++)
c) Ternary operator (?:)
d) Address-of operator (&)
Answer: b) Increment operator (++)
Q27: What is the primary purpose of the break keyword within a loop?
a) To pause execution for 1 second
b) To terminate the loop immediately
c) To skip the current line of code
d) To repeat the initialization part
Answer: b) To terminate the loop immediately
Q28: If i = 1, what is the outcome of i += 2 after one iteration?
a) i becomes 2
b) i becomes 3
c) i becomes 1
d) i causes an error
Answer: b) i becomes 3
Q29: What happens if you put a semicolon right after the for loop header, like for(i=1; i<=5; i++);?
a) Syntax error prevents compilation.
b) The loop runs 5 times doing nothing, then program moves to the next statement.
c) The body inside the curly braces runs 5 times.
d) It creates an automatic decrement loop.
Answer: b) The loop runs 5 times doing nothing, then program moves to the next statement.
Q30: Which loop structure is generally preferred when reading user input that must be validated at least once?
a) for loop
b) while loop
c) do-while loop
d) simple if statement
Answer: c) do-while loop
💻 Updated MCQ Guide Notice: This page features a full collection of SEBA Class 10 Computer Science Chapter 4 (Introduction to Loops) Multiple Choice Questions (MCQs) with accurate options and detailed explanations, fully updated for the 2026–27 academic session in accordance with the latest revised Assam Board (SEBA) curriculum.
💡 Master Class 10 Computer Science MCQs:
- Have a doubt or need clarification on any objective question regarding
whilevsdo-whileloops, condition evaluation, or loop counters in Chapter 4? Drop your query in the comments section below! - Save and bookmark this URL for fast objective revision before your unit tests, half-yearly, and pre-board examinations.
- Share this link with your classmates and WhatsApp study groups to help them prepare effectively!