DO NOT MISS

Ads

Sunday 25 September 2016

Quiz of the C-Language(Week-19)


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. Find the assignment operator ?
A. &&
B. =,^

C. =
D. ||,!



2. int a=10; 
    printf("%d",a<<3); 
    find the a value ?        
A. 2
B. 82
C. 0
D. 80



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


4.
 a=0,b=1
    Which one of the following condition is true ?
A. a&&b
B. a||b
C. !(a&&b)
D. B & C


5. B-Means in B-Language
?
A. Basic
B. Only 'B'
C. Bios
D. None of the above



6. 
Which header file using in Sound effects in C-Program ?
a) math.h
b) string.h
c) stdlib.h
d) dos.h



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

     int a=4;a=25;b=20;a=10; printf("%d,%d",a,b);
a) 10,20
b) 4,20
c) 25,20
d) garbage value



8.
 Collection of words.
A. stories
B. paragraphs
C. sentences
D. None of the above



9.Range of short int

A. -126 to 125
B. -456 to 455
C. -128 to 127
D. 
-145 to 144


10.
 comma (,) is the ___________ operator?
A. logical
B. special
C. relational
D. conditional



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


Greataims

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