C Language Unit 2
C Language Unit 2
UNIT TEST - 1
C-23:: EE-305 :: Programming in “C”
Time : 90 Minutes Total Marks: 40
PART – A
Instructions: 1st Question having 4 one mark questions, and remaining 4
Questions carry 3 marks each
1. (a) Give syntax of simple if statement. (CO2)
(b) List loop statements in C. (CO2)
(c) State the pupose of Break statement.(CO2)
(d) What are basic data types assosiated in C.(CO1)
2. List various conditional statements. (CO2)
3. List various types of operators. (CO1)
4. Write the structure of C language program.(CO1)
5. Give the syantax of “do…while” loop. (CO2)
(OR)
b) Write a program to accept two integers from the user after compiling the code, calculate
the sum of the integers and print the outcome using printf(). (CO1)
PART – B
Instructions: Part B consists of 3 Units. Answer any one full question from
each unit. Each question carries 8 marks and may have sub
questions.
(OR)
b) Write a program to accept two integers from the user after compiling the code, calculate
the sum of the integers and print the outcome using printf(). (CO1)