HamiIT
Sign inGet started
Home
Theme
ADD CONTENT

Sign in Required

Please sign in to add content

Sign In
ProgramsBsc CSITSemester 1C ProgrammingUnit 5: Control Statement (4 Hrs.)
Chapter Study

Bsc CSIT Semester 1 – C Programming – Unit 5: Control Statement (4 Hrs.)

Comprehensive questions and detailed answers for Unit 5: Control Statement (4 Hrs.). Perfect for exam preparation and concept clarity.

14
Questions
100
Marks
Back to All Chapters
1

Write a program to display first 50 prime numbers.

MediumTHEORY5 marks2081(TU Final)
2

Write a program to display the following series up to 25 terms but do not print the 7th term. 2 x 3, 3 x 5, 4 x 7, 5 x 9…

MediumTHEORY5 marks2081(TU Final)
3

Trace the output

\quad #include<conio.h>

\quad#include<stdio.h>

\quadvoid main(){

\quad int i =0,k;

\quad for(k=5;k>=0;k-){

\quad i=i+k;

\quad }

\quad printf(“%d\t”,i);

\quad getch();

\quad }

MediumTHEORY5 marks2080(TU Final)
4

Why do we need a break and continue statement? Define formal argument and actual argument in function with examples. Identify and list the errors in the following code.

C
1int main(){
2    int a,b,c
3    scanf("%d%d%d, &a, &b, &c);
4    sum(a, b, c);
5    return -1;
6}
7void sum(int x, int y, int z){
8    int sum;
9    sum = a + b + c;
10    return sum;
11}
HardTHEORY10 marks2079(TU Final)
5

Write a program to demonstrate the following menu-driven program. The user will provide an integer and alphabet for making choice and the corresponding task has to be performed according as follow: \quad A. Find Odd or Even \quad B. Find Positive or Negative \quad C. Find the Factorial value \quad D. Exit The choice will be displayed until the user will give “D” as a choice.

HardTHEORY10 marks2079(TU Final)
6

What do you mean by jump statement? Explain each jump statement with example. Write a program to check whether a number entered is prime or not.

HardTHEORY10 marks2078(TU Final)
7

Write a program to print largest among three numbers entered by the user.

MediumTHEORY5 marks2078(TU Final)
8

What do you mean by looping? Explain while loop with suitable example. Compare while loop with do-while loop. Write a program to find sum and average of first n natural numbers.

HardTHEORY10 marks2077(TU Final)
9

Write a program to display first n prime numbers.

MediumTHEORY5 marks2077(TU Final)
10

What is looping statement? Discuss different looping statements with suitable example of each.

HardTHEORY10 marks2075(TU Final)
11

What is break statement? Discuss with example. How the break statement is different from continue statement?

MediumTHEORY5 marks2075(TU Final)
12

Write a program to check whether a number entered is even or odd.

MediumTHEORY5 marks2075(TU Final)
13

Write a program to calculate sum of first 10 odd numbers.

MediumTHEORY5 marks2075(TU Final)
14

Discuss different types of if statements with example of each. Differentiate if statement with switch statement.

HardTHEORY10 marks2074(TU Final)
Showing 14 questions

Sample Questions

Write a program to display first 50 prime numbers.

Marks: 5Chapter: Unit 5: Control Statement (4 Hrs.)

Write a program to display the following series up to 25 terms but do not print the 7th term. 2 x 3, 3 x 5, 4 x 7, 5 x 9…

Marks: 5Chapter: Unit 5: Control Statement (4 Hrs.)

Trace the output $\quad$ include<conio.h> $\quad$include<stdio.h> $\quad$void main(){ $\quad$ int i =0,k; $\quad$ for(k=5;k>=0;k–){ $\quad$ i=i+k; $\quad$ } $\quad$ printf(“%d\t”,i); $\quad$ getch();

Marks: 5Chapter: Unit 5: Control Statement (4 Hrs.)

Why do we need a break and continue statement? Define formal argument and actual argument in function with examples. Identify and list the errors in the following code. c int main(){ int a,b,c

Marks: 10Chapter: Unit 5: Control Statement (4 Hrs.)

Write a program to demonstrate the following menu-driven program. The user will provide an integer and alphabet for making choice and the corresponding task has to be performed according as follow: $\

Marks: 10Chapter: Unit 5: Control Statement (4 Hrs.)

And more questions available on this page.

About Unit 5: Control Statement (4 Hrs.) Questions

This page contains comprehensive questions from the Unit 5: Control Statement (4 Hrs.) chapter of C Programming, part of the Bsc CSIT Semester 1 curriculum. All questions include detailed model answers from past TU exam papers.

Study Tips

  • Review concepts before attempting questions
  • Practice writing complete answers
  • Compare your answers with model solutions
  • Focus on questions from recent years
  • Use direct links (#question-ID) to bookmark and share specific questions

Related Resources

← Back to C Programming Chapters

Unit 5: Control Statement (4 Hrs.) chapter questions with answers for C Programming (Bsc CSIT Semester 1). Prepare for TU exams with our comprehensive question bank and model answers.

H
Hami IT

Empowering IT students with quality education resources and comprehensive exam preparation materials.

Programs

  • Flutter
  • Java
  • DevOps

Company

  • About Us
  • Contact
  • Terms of Service
  • Privacy Policy

Contact

  • 📧contact@hamiit.com
  • 📞+977 9813706443
  • 📍Kathmandu, Nepal

Community

  • Join Discord
  • Report a bug
  • Request feature

© 2026 Hami IT. All rights reserved.