Total no.
of Printed Pages: Roll No:
Odd Semester Session 2024-25 MID-1
B. Tech.-I Semester
Programming for problem Solving (BCS-101)
CO Number Course Outcome
CO1 Define the basic concepts of Computer and C programming.
CO2 Understand the concepts of programming.
CO3 Implement the various principles of programming.
CO4 Analyze the various algorithms and programs.
Time: 1.5 Hrs. M.M. 30
Section A
Q1. Attempt all questions: (1X5 = 5 Marks)
a) Draw Memory Hierarchy in computer system? CO1
b) Differentiate between High level and low level Programming. CO1
c) What is the difference between ++a and a++? CO2
d) What is the use of printf() and scanf() functions? CO2
e) What is the purpose of a Header File? CO1
Section B
Q2. Attempt all questions: (5X2= 10 Marks)
a) Explain flow chart and its representation in brief. Draw a flowchart to find CO2
the area of a Square?
b) What are the various data types used in C language? Explain with example?
CO1
Section C
Q3. Attempt all questions: (5X3 = 15 Marks)
a. i) What do you mean by operator precedence and associatively? Explain all bitwise operators CO2
with suitable example?
OR
ii) What is an Operator? Write different types of operators in C? CO2
b. i) Write a program in C to check whether the number is prime or not? CO3
OR
ii) Discuss the following in short: a). Linker and Loader b) Compiler and Interpreter CO3
c. i) Write a program in C to discuss the use of break in switch statement? CO3
OR
ii) Write a program in C to find the greatest number among three numbers? CO3 CO3