Vous êtes sur la page 1sur 2

(b) Explain in detail about arrays and its types in

CHETTINAD COLLEGE OF ENGINEERING & C with an example and write a program for
TECHNOLOGY sorting an array of numbers.
UNIT TEST-II (16)
8. Write a C program to add two matrices.
Branch & Sec : First Year Date: (8)
26.09.15
Semester: I Max. Marks:
50
Subject Code & Title : GE6151 Computer Staff In-charge HOD/S&H
Programming
Staff In-charge: P.Vasantha Kumari/IT
CHETTINAD COLLEGE OF ENGINEERING &
Part-A (10 * 2 = 20) TECHNOLOGY
Answer All Questions UNIT TEST-II
1. Write a C program to find factorial of a given
number. Branch & Sec : First Year Date:
2. Write example code to declare two dimensional 26.09.15
array. Semester: I Max. Marks:
3. List the various input and output statements in C. 50
4. Define array and declare float array with size 5 Subject Code & Title : GE6151 Computer
and assign 5 values to it. Programming
5. Write a for loop to print numbers from 10 to 1. Staff In-charge: P.Vasantha Kumari/IT

Part B (40) Part-A (10 * 2 = 20)


Answer all questions. Answer All Questions
6. (a) Write about the need and types of looping 1. Write a C program to find factorial of a given
statements in C language and discuss with number.
examples. (16) 2. Write example code to declare two dimensional
(OR) array.
(b) Write about the need and types of branching 3. List the various input and output statements in C.
statements in C language and discuss with 4. Define array and declare float array with size 5
examples. and assign 5 values to it.
(16) 5. Write a for loop to print numbers from 10 to 1.
7. (a) (i) Explain briefly various Input and Output
statements in C with an example. Part B (40)
(16) Answer all questions.
(OR)
6. (a) Write about the need and types of looping
statements in C language and discuss with
examples. (16)
(OR)
(b) Write about the need and types of branching
statements in C language and discuss with
examples.
(16)
7. (a) (i) Explain briefly various Input and Output
statements in C with an example.
(16)
(OR)
(b) Explain in detail about arrays and its types in
C with an example and write a program for
sorting an array of numbers.
(16)
8. Write a C program to add two matrices.
(8)

Staff In-charge HOD/S&H

Vous aimerez peut-être aussi