You are on page 1of 1

S. B. Roll. No…………………………………….

COMPUTER PROGRAMMING USING ‘C’.


3rd Exam/Comp/IT/CSE/0625/Jun'2022
Duration: 3Hrs. M.Marks:75
SECTION-A
Q1. Give answer in one line. 15x1=15
a. Define variable.
b. Define Flowchart.
c. Write two unformatted input commands.
d. Write an alternative statement for a++;
e. Write the range of signed integers.
f. Write an operator which can substitute ‘if statement’.
g. What is a nested loop?
h. What is a Label?
i. Write ‘assignment’ operator and ‘equal to’ operator.
j. Write two logical operators.
k. Write two relational operators.
l. Write a header file for the command getch().
m. Write a header file for command strlen().
o m
n. What is Syntax?
o. Define Array.
m .r c
o SECTION-B
p e
Q2. Attempt any six questions.
.r c
i. Write a program to calculate factorial of a given number.

p a
6x5=30

p e
iii. Explain the usage of getch (), getche (), getchar().

b r
ii. Write a program to print the series 1, 4, 9, 16….. upto 10 terms.

a
iv. Write a program using switch-case statement.
v. Write a program to reverse a number.

r p
vi. Explain recursive function.
vii. Differentiate between for loop and While loop.

b
viii. Write a program to sort an array in ascending order.

SECTION-C
Q3. Attempt any two questions. 2x15=30
a. Explain various data types in C language.
b. Explain control structures in C language.
c. Write a program to multiply two matrices. Each matrix has 3 rows and 3 columns.

You might also like