HamiIT
Sign inGet started
Home
ADD CONTENT

Sign in Required

Please sign in to add content

Sign In
ProgramsBCASemester 2C programmingUnit 6: Control Structure (6Hrs)
Chapter Study

BCA Semester 2 – C programming – Unit 6: Control Structure (6Hrs)

Comprehensive questions and detailed answers for Unit 6: Control Structure (6Hrs). Perfect for exam preparation and concept clarity.

5
Questions
30
Marks
Back to All Chapters
1

Differentiate between while loop and do while loop. Write a C program to find input number is prime or composite.

MediumTHEORY5 marks2019(TU FOHSS Final)
2

Write a program to print the following pattern using loop.

U
UN
UNI
UNIV
UNIVE
UNIVER
UNIVERS
UNIVERSI
UNIVERSIT
UNIVERSITY

MediumTHEORY5 marks2023(TU FOHSS Final)
3

Write a C program to generate the following output using loop.
1 0 1 0 1
0 1 0 1
1 0 1
0 1
1

MediumTHEORY5 marks2022(TU FOHSS Final)
4

Write a program in C to find all possible roots of quadratic equation ax² + bx + c = 0.

MediumTHEORY5 marks2020(TU FOHSS Final)
5

Is break keyword mandatory in switch statement? Write a program to calculate arithmetic operations (+, -, *, /) using switch case statement.

HardTHEORY10 marks2020(TU FOHSS Final)
Showing 5 questions

Exam Years

Past question papers

2023
TU FOHSS Final•1 questions
2022
TU FOHSS Final•1 questions
2020
TU FOHSS Final•2 questions
2019
TU FOHSS Final•1 questions

Questions in Unit 6: Control Structure (6Hrs)

Differentiate between while loop and do while loop. Write a C program to find input number is prime or composite.

Marks: 5

Year: 2019 Final TU FOHSS

1. Differentiate Between while Loop and do-while Loop Definitions - while loop: A loop that checks the condition first, then executes the statements. - do-while loop: A loop that executes the

Write a program to print the following pattern using loop. U UN\ UNI\ UNIV\ UNIVE\ UNIVER\ UNIVERS\ UNIVERSI UNIVERS

Marks: 5

Year: 2023 Final TU FOHSS

1. Problem Statement Print the following pattern using loops: U UN UNI UNIV UNIVE UNIVER UNIVERS UNIVERSI UNIVERSIT UNIVERSITY --- 2. C Program c include <stdio.h> include <string.h> int main() {

Write a C program to generate the following output using loop. 1 0 1 0 1\ 0 1 0 1\ 1 0 1\ 0 1\ 1

Marks: 5

Year: 2022 Final TU FOHSS

The required output decreases the number of digits each line, following an alternating 1–0 pattern:\ 10101\ 0101\ 101\ 01\ 1 Below is a short and clear 5-marks C program using loops. --- C Program c

Write a program in C to find all possible roots of quadratic equation ax² + bx + c = 0.

Marks: 5

Year: 2020 Final TU FOHSS

1. Problem Find all possible roots of a quadratic equation ax² + bx + c = 0 using C. Note: Roots depend on discriminant (D = b² - 4ac): - D > 0: Two real and distinct roots - D = 0: Two real and e

Is break keyword mandatory in switch statement? Write a program to calculate arithmetic operations (+, -, , /) using switch case statement.

Marks: 10

Year: 2020 Final TU FOHSS

1. Is break Keyword Mandatory in Switch Statement? - No, break is not mandatory in a switch statement. - Purpose of break: Exits the switch after executing the matching case. - If break is omitted

About Unit 6: Control Structure (6Hrs) Questions

This page contains comprehensive questions from the Unit 6: Control Structure (6Hrs) chapter of C programming, part of the BCA Semester 2 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 6: Control Structure (6Hrs) chapter questions with answers for C programming (BCA Semester 2). 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

Contact

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

© 2026 Hami IT. All rights reserved.