Solved : PROGRAMMING & PROBLEM SOLVING THROUGH ‘C’ LANGUAGE , January 2021 | NIELIT O Level
Each question below gives a multiple choice of answers. Choose the most appropriate one and enter in the "OMR" answer sheet supplied with the question paper, following instructions therein.
2.Each statement below is either TRUE or FALSE. Choose the most appropriate one and ENTER in the "OMR" answer sheet supplied with the question paper, following instructions therein.
Answer
3.Match words and phrases in column X with the closest related meaning/ word(s)/phrase(s) in column Y. Enter your selection in the "OMR" answer sheet supplied with the question paper, following instructions therein.
X |
Y |
||
3.1 |
Function call itself |
A. |
#define |
3.2 |
Logical AND |
B. |
getw() |
3.3 |
Reads a character from a file. |
C. |
malloc() |
3.4 |
(type-name)expression |
D. |
recursion |
3.5 |
exp1 ? exp2 : exp3 |
E. |
&& |
3.6 |
Dynamic memory allocation |
F. |
conditional operator |
3.7 |
Copies one string over another |
G. |
explicit conversion |
3.8 |
Defining Symbolic constant |
H. |
Union |
3.9 |
String constants |
I. |
getc() |
3.10 |
Reads an integer form file |
J. |
"final" |
|
|
K. |
while |
|
|
L. |
for |
|
|
M |
strcpy() |
Answer
4 : Each statement below has a blank space to fit one of the word(s) or phrase(s) in the list below. Enter your choice in the "OMR" answer sheet attached to the question paper, following instructions therein. (1x10)
A. |
flowchart |
B. |
automatic |
C. |
modular
programming |
D. |
char |
E. |
switch |
F. |
Implementation |
G. |
Address
of variable |
H. |
same |
I. |
different |
j. |
'\t' |
K. |
null |
L. |
#define |
M. |
C tokens |
|
|
|
|
Part Two
(7+8)
Q 6
(a) Explain the concept of multiway decision statement in C ? Explain nested switch statement with suitable example.
(b) How to declare and initialize 2-Dimensional array in C ? Write any two advantages of an array. List the application of any array. Explain any one application with suitable example.
(7+8)
Q 7
(a) Write a program to add two integer numbers using following categories of function :
(i) Function with no argument and no return value
(ii) Function with an argument and a return value
(b) Draw a flowchart to find the Fibonacci series till term 1000.
(c) Write a program to count number of vowels in a string.
(5+5+5)
(3x5)
No comments:
Post a Comment