DO NOT MISS

Ads

Tuesday 13 December 2016

Quiz of the C-Language (Week-21)


This set contains 10 multiple choice questions from C-Language. Each question has four possible options and there is one and only one correct answer for each question.
_________________________________________________________________________________
1. The Default Parameter Passing Mechanism is called as
A. Call by Value
B. Call by Reference
C. Call by Address
D. Call by Name



2. What is Dequeue?
A. Elements can be added from front
B. Elements can be added to or removed from either the front or rear
C. Elements can be added from rear
D. None of the above




3. Which is the correct syntax to declare constant pointer?
A. int *const constPtr;
B. *int constant constPtr;
C. const int *constPtr;
D. A and C both

 

4. What will be the output of the following statements ?
int i = 3;
printf("%d%d",i,i++);

a) 34
b) 43
c) 44
d) 33



5. Number of binary trees formed with 5 nodes are
A. 30
B. 36
C. 108
D. 42

 


6. The statement printf("%c", 100); will print?
A. prints 100
B. print garbage
C. prints ASCII equivalent of 100
D. None of the above

 


7. Recursive functions are executed in a?
A. First In First Out Order
B. Load Balancing
C. Parallel Fashion
D. Last In First Out Order



8. A binary tree with 27 nodes has _______ null branches.
A. 54
B. 27
C. 26
D. None of the above



9. What is the work of break keyword?
A. Halt execution of program
B. Restart execution of program
C. Exit from loop or switch statement
D. None of the above

 


10. perror( ) function used to ?
A. Work same as printf()
B. prints the error message specified by the compiler
C. prints the garbage value assigned by the compiler
D. None of the above



---------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------


Greataims

 
Copyright © 2016 Computersadda. Designed by @ Computersadda Team - Published By Greataims