Computer Programming With C: Multiple Choice Questions
Computer Programming With C: Multiple Choice Questions
Computer Programming With C: Multiple Choice Questions
A] Printf
B] external
C] auto
D] scanf
3) Which operator has the lowest
priority ?
A] ++
B] %
C] +
D] ||
5) What is the
outputof this
program ?
void main() {
int
a=b=c=10;
a=b=c=50;
printf(\n %d %d
%d,a,b,c); } A] 50 50
50
B] Compile Time Error
C] 10 10 10
D] Three Gaebage Value
Double
x=28; Int r;
R= x%5;
Printf (\n r=%d,
r); } A] r= 3
B] Run time Error
C]Compile time Error
D]None of the Above
7) What the follwing function call
mean? Strcpy(s1 , s2 );
A]copies s1 string into s2
B]copies s2 string into s1
C]copies both s1 and s2
D] None of these
D] Err
27) In C, a Union is
A ] memory location B] memory store C] memory
screen D] None of these
32) A Structure
A ] can be read as a single entityB ] cannot be read as a single entity
C ] can be displayed as a single entity
D ] has member variables that cannot be read individually
1. What is variable?
2. What is constant?
3. How many bytes are required to store integer type value?
4. What is global variable?
5. What is language processor?
6. Which are logical Operators?
7. What is the use of getchar() function?
8. Give syntax of simple nested if else stmt?
9. Define Array
10. Give general Syntax to declare two dimensional array
11. What is function?
12. What is built in function?
13. What is use of return statement?
14. What is recursive function?
15. What do you mean by call by value?
16. What do you mean by call by reference?
17. What is pointer?
18. What is structure?
19. What is main difference between structure and union?
20. What is preprocessor
3 marks Questions
5. Write short note on Input & Output functions used in C (i.e. print &scanf
functions?
6. Differentiate between local variable and global variable?
7. Explain the following g
functions a. i)getch()
and ii) clrscr()
8. Explain continue and break statements with the help of example.
.
9. What is array? How to declare array?Explain with suitable example.
10. What is the difference between call by value and call by Reference?
11. Explain Automatic , Static and register storage classs.
12. Explain Extern storage class.
13. What is function ?how function is defined.
14. Explain the difference between calling function and called function?
Explain void function?
15. Explain how to access a value using pointer?give a suitable example.
16. Write a short note on pointer to pointer
10. List out the advantages of function. What is mean by call by reference
& call by value.?
. 11. What is the function and list out advantages and disadvantages of
functions?What is
mean by function argument, function call and
return value?
.
12 Explain array of pointers.With exmple
PARUL UNIVERSITY-IT-COMPUTER SCIENCE(BCA)