DO NOT MISS

Ads

Saturday 3 September 2016

QUIZ of the C-Language-4 (Week-17)


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. Which of the following shows the correct hierarchy of arithmetic operations in C
A. / + * -
B. * - / +
C. + - / *
D. * / + -



2. What is constant?
A. Constants have fixed values that do not change during the execution of a program
B. Constants have fixed values that change during the execution of a program
C. Constants have unknown values that may be change during the execution of a program
D. None of the above



3. What will be the output of the following statement ?
     int a=20;  printf("%d", a++ - --a - a--);
A. -21
B. -22
C. -20
D. -19


4.
Which one of the following sentences is true ?
A. The body of a while loop is executed at least once.
B. The body of a do ... while loop is executed at least once.
C. The body of a do ... while loop is executed zero or more times.
D. A for loop can never be used in place of a while loop.


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



6. 
What will be the output of the following statement ?
     
int a=10; printf("%d &i",a,10);
a) error
b) 10
c) 10 10
d) none of these



7. What will be the output of the following statement ?

     int a = 4, b = 7,c; c = a = = b; printf("%i",c);
a) 0
b) error
c) 1
d) garbage value



8.
In switch statement, each case instance value must be ___?
A. Constant
B. Variable
C. Special Symbol
D. None of the above



9.
Queue is a _____________ list.
A. LIFO
B. LILO
C. FILO
D. FIFO



10.
Bit-wise operators can operate upon?
A. double and chars
B. floats and doubles
C. ints and floats
D. ints and chars



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


Greataims

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