0% found this document useful (0 votes)
8 views2 pages

C Language Unit 2

Uploaded by

siddhareddydata
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

C Language Unit 2

Uploaded by

siddhareddydata
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

GOVERNMENT POLYTECHNIC, KAVALI

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)

GOVERNMENT POLYTECHNIC, KAVALI


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
2. (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)
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.

6. a) Describe the four basics types of constants in C. (CO1)

(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)

7. a) Expalin the artimetic operators with examples.(CO1)


(OR)
b) Write a C program to print the multiplication table from 1X1 to 10X10.(CO2)

8. (a) Write a C program to print Fibonacci series(0,0,1,1,2,3,5…………).(CO2)


(OR)
b) Explain a while loop statement with example.(CO2)

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.

6. a) Describe the four basics types of constants in C. (CO1)

(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)

7. a) Expalin the artimetic operators with examples.(CO1)


(OR)
b) Write a C program to print the multiplication table from 1X1 to 10X10.(CO2)

8. (a) Write a C program to print Fibonacci series(0,0,1,1,2,3,5…………).(CO2)


(OR)
b) Explain a while loop statement with example.(CO2)

You might also like