Looking for reliable SEBA Class 10 Computer Science Chapter 4 (Introduction to Loops) extra questions and answers for the 2026–27 academic year? Access important C programming practice programs, loop output tracing questions, entry vs. exit-controlled loop comparisons, break/continue statement notes, and exam-oriented revision materials to score top marks in your HSLC board exams.

Q 1: What is a loop in C?
Answer:
A loop in C programming is a control structure used to execute a block of statements repeatedly as long as a specified condition remains true.

Q 2: Why are loops used in C?
Answer:
Loops are used in C to reduce code repetition, minimize program length, and make code execution faster and more efficient.

Q 3: Name the three types of loops available in C.
Answer:
The three types of loops in C are the for loop, the while loop, and the do-while loop.

Q 4: Write the syntax of a for loop in C.
Answer:
The syntax of a for loop is:

c
for(initialization; condition; increment/decrement)
{
}

Q 5: Write the syntax of a while loop in C.
Answer:
The syntax of a while loop is:

c
while(condition)
{
}

SEBA Class 10 Computer Science Chapter 4 Extra Questions

Q 6: Write the syntax of a do-while loop in C.
Answer:
The syntax of a do-while loop is:

c
do {
}
while(condition);

Q 7: Which loops check the condition before execution?
Answer:
The for loop and the while loop check the condition before executing the body of the loop.

Q 8: Which loop checks the condition after execution?
Answer:
The do-while loop checks the condition at the end after executing the body of the loop.

Q 9: What is the main difference between a while loop and a do-while loop?
Answer:
The main difference is that a while loop tests the condition before running the body, whereas a do-while loop tests the condition after running the body.

Q 10: Which loop is guaranteed to execute at least once?
Answer:
The do-while loop is guaranteed to execute at least once, even if the condition is false initially.

Q 11: What is an infinite loop?
Answer:
An infinite loop is a loop that continues running indefinitely because its test condition never becomes false.

Class 10 Computer Science Chapter 4 Important Questions SEBA 2026-27

Q 12: How can an infinite loop be terminated inside a program?
Answer:
An infinite loop can be terminated by using a break statement inside the body of the loop.

Q 13: What is the function of the initialization statement in a loop?
Answer:
The initialization statement sets the starting value of the counter variable before the loop begins execution.

Q 14: What is the purpose of the condition in a loop?
Answer:
The condition evaluates whether the loop should continue executing or terminate.

Q 15: What is the role of the increment/decrement expression in a for loop?
Answer:
The increment or decrement expression updates the value of the loop control variable after each iteration.

Q 16: What happens if the condition of a for loop is false on the very first evaluation?
Answer
: If the condition is false initially, the body of the for loop will not execute even a single time.

Q 17: What happens if you omit the test condition in a for loop?
Answer:
Omitting the test condition causes the loop to assume the condition is true, resulting in an infinite loop.

Q 18: Can a loop be placed inside another loop in C?
Answer:
Yes, placing one loop inside another loop is permitted in C and is known as a nested loop.

Q 19: What is the purpose of the break statement in a loop?
Answer:
The break statement immediately terminates the loop and transfers program flow to the statement following the loop.

Q 20: What is the purpose of the continue statement in a loop?
Answer:
The continue statement skips the remaining code inside the loop for the current iteration and jumps to the next iteration.

Q 21: Is it possible to use multiple variables in a single for loop?
Answer:
Yes, multiple variables can be used in a for loop by separating them with commas in both the initialization and update expressions.

Q 22: What happens if a loop lacks an increment or decrement statement?
Answer:
Without an update statement, the control variable will not change, which can cause the loop to run infinitely.

Q 23: How many times will the loop for(i=1; i<=5; i++) execute?
Answer:
The given loop will execute exactly 5 times (for values i = 1, 2, 3, 4, 5).

Q 24: Can a loop be used inside a conditional statement?
Answer:
Yes, a loop can be placed inside conditional blocks such as if or else statements.

Q 25: Define the term iteration in programming.
Answer:
An iteration refers to a single complete execution of the block of code contained within a loop.

Introduction to Loops Class 10 SEBA Extra Question Answer

Q 26: Which loop is preferred when the exact number of iterations is known in advance?
Answer:
The for loop is preferred when the exact number of iterations is known beforehand.

Q 27: Which loop is preferred when the number of iterations is unknown?
Answer:
The while loop is preferred when the number of iterations depends on a dynamic condition and is unknown in advance.

Q 28: How can a for loop be made to run in reverse?
Answer:
A for loop can run in reverse by initializing the counter variable to a higher value and using a decrement operator (e.g., i--).

Q 29: What will be the output of the code segment for(i=1; i<=3; i++) printf("%d ", i);?
Answer:
The output of this code segment will be 1 2 3.

Q 30: Why are loops considered essential in computer programming?
Answer:
Loops are essential because they automate repetitive tasks, keep source code organized, reduce human error, and simplify maintenance.

Some extra programs to practice

Q31: Write a program in C to print numbers from 1 to 10 using a for loop.

Answer:

#include<stdio.h>

int main()
{
int i;
for(i = 1; i <= 10; i++)
{
printf(“%d “, i);
}
return 0;
}

Output:

text
1 2 3 4 5 6 7 8 9 10

Q32: Write a program in C to print all even numbers from 2 to 20.

Answer:

#include<stdio.h>

int main()
{
int i;
for(i = 2; i <= 20; i += 2)
{
printf(“%d “, i);
}
return 0;
}

Output:

text
2 4 6 8 10 12 14 16 18 20

Q33: Write a program in C to calculate and display the sum of the first 10 natural numbers.

Answer:

#include<stdio.h>

int main()
{
int i, sum = 0;
for(i = 1; i <= 10; i++)
{
sum += i;
}
printf(“Sum = %d”, sum);
return 0;
}

Output:

text
Sum = 55

SEBA Class 10 Computer Science Chapter 4 Loop Practice Programs

Q34: Write a program in C to print numbers in reverse order from 10 to 1.

Answer:

#include<stdio.h>

int main()
{
int i;
for(i = 10; i >= 1; i–)
{
printf(“%d “, i);
}
return 0;
}

Output:

text
10 9 8 7 6 5 4 3 2 1

Q35: Write a program in C to print the multiplication table of 5.

Answer:

#include<stdio.h>

int main()
{
int i;
for(i = 1; i <= 10; i++)
{
printf(“5 x %d = %d\n”, i, 5 i);
}
return 0;
}

Output:

text
5 x 1 = 5
5 x 2 = 10
5 x 3 = 15
5 x 4 = 20
5 x 5 = 25
5 x 6 = 30
5 x 7 = 35
5 x 8 = 40
5 x 9 = 45
5 x 10 = 50

Q36: Write a program in C to calculate and print the squares of numbers from 1 to 5.

Answer:

#include<stdio.h>

int main()
{
int i;
for(i = 1; i <= 5; i++)
{
printf(“Square of %d = %d\n”, i, i i);
}
return 0;
}

Output:

text
Square of 1 = 1
Square of 2 = 4
Square of 3 = 9
Square of 4 = 16
Square of 5 = 25

Q37: Write a program in C to find the factorial of an entered number.

Answer:

#include<stdio.h>

int main()
{
int n, i, fact = 1;
printf(“Enter number: “);
scanf(“%d”, &n);
for(i = 1; i <= n; i++)
{
fact = i;
}
printf(“Factorial = %d”, fact);
return 0;
}

Output:

text
Enter number: 5
Factorial = 120

Q38: Write a program in C to find the sum of all even numbers up to 20.

Answer:

#include<stdio.h>

int main()
{
int i, sum = 0;
for(i = 2; i <= 20; i += 2)
{
sum += i;
}
printf(“Sum of even numbers = %d”, sum);
return 0;
}

Output:

text
Sum of even numbers = 110

HSLC Computer Science Chapter 4 Important Short Questions

Q39: Write a program in C to extract and display the digits of an entered number in reverse order.

Answer:

#include<stdio.h>

int main()
{
int n;
printf(“Enter number: “);
scanf(“%d”, &n);
while(n > 0)
{
printf(“%d “, n % 10);
n /= 10;
}
return 0;
}

Output:

text
Enter number: 456
6 5 4

Q40: Write a program in C to display the first 10 terms of the Fibonacci series.

Answer:

#include<stdio.h>

int main()
{
int n = 10, a = 0, b = 1, c, i;
printf(“%d %d “, a, b);
for(i = 2; i < n; i++)
{
c = a + b;
printf(“%d “, c);
a = b;
b = c;
}
return 0;
}

Output:

text
0 1 1 2 3 5 8 13 21 34

💻 Updated Extra Questions Guide Notice: This page features an extensive collection of SEBA Class 10 Computer Science Chapter 4 (Introduction to Loops) Extra Questions and Detailed Answers updated for the 2026–27 academic session. All additional C code snippets, loop condition tracing, and control structure practice notes strictly follow the latest revised Assam Board (SEBA) curriculum.

💡 Ace Your HSLC Computer Science Exam:

Leave a Reply

Your email address will not be published. Required fields are marked *