Computer Science
Computer Science
SECTION A
I. Answer any ten questions. Each question carries two marks. (2×10=20)
1) Write the features of C program.
BM
2) What is flowchart ? Mention its types.
SC
3) What are C tokens ? W
4) If a = 20, b = 40, what is X if X = a +(+ + b) ?
5) Mention the syntax of printf and scanf functions.
6) Explain nested IF statement.
7) What is structure ? How to initialize a structure ?
8) What is a string ? Write any two operations on string.
9) Mention types of functions.
10) What is pointer ? Mention its syntax.
11) What is File ? How to declare a file ?
12) What are macros ? Mention types of macros.
SECTION B
II. Answer all the questions. Each question carries ten marks. (10×5=50)
13) a) i) Explain the structure of a C program with example.
ii) Write an algorithm to generate N natural numbers. (5+5)
OR
b) i) Write a flowchart to reverse the given number.
ii) Explain the different types of arrays with an example. (5+5)
P.T.O.
SN 288 *SN288*
BM
b) i) Write a C program to find factorial of a given number.
SC
ii) What is function ? Give an example.
W
iii) Write a C function to find the largest of two numbers. (4+3+3)
b) i) Explain function with arguments and with return values with an example.
ii) Write a C program pointers. Find the length of a given string using. (5+5)