"NO
MOUNTAIN is too high to climb,
NO SEA is too deep to dive,
NO DREAM is too distant to achieve,
ONLY
IF YOU BELIEVE”
SO believe on yourself ,do whatever you want to do .Here we
are our Quiz :
Quiz 2(C language)
Q1.In c language ,if you want to show the remaninder of division which operaror will be used?
a)modulo division operator
2)divison operator
3)unary operator
4)none of these
Q2.which operator has highest precedence?
a)function expression
b)increment operator
c)value at address operator
d)None of these
Q3.Which operator return the no. of bytes the operand occupy
in memory?
a)Size of operator
b)get operator
c)count operator
d)none of these
Q4.To force the compiler to expilicity convert the value of
expression to a particular datatype is known as?
a)Type conversion
b)type modifier
c)Type casting
d)none of these
Q5.which one is correct initialisation of for loop?
a)for(i=1;1<=2;i++)
b)for( ;i<=2; )
c)for(;i<=2;i++)
d)all of these are correct
Q6.What will be output of this programme
if(-23){
printf(“33”);
else
printf(“99”);}
a)23
b)33
c)99
d)00
Q7 what will be output of this programme
if(0){
printf(“33”);
else
printf(“22”);
}
a)22
b)33
c)00
d)none of these
Q8.if we to collect a similar type of data elments which one will be used?
a)Array
b)Structure
c)union
d)none of these
Q9.which one is correct regarding array declaration?
a)int num[3]={4,5,3};
b)int num[]={4,5,3,2,1};
c)all of these
d)None of these
Q10which one is formatted function?
a)printf()
b)scanf()
c)both a and b
d)getch()
Q11 if want to get the input from the keyword which function will be
used?
a)scanf()
b)print()
c)both of these
d)none of these
Q12.which one is used to create the dynamic data structure
in c?
a)Array
b)pointer
c)structure
d)None of these
Q13.what is structure?
a)collection of items of different data type
b)collection of items of similar datatype
c)both of these
d)None of these
Q14. A Varaiable that
holds the memory address of another object is called
a)integer
b)pointer
c)constant
d)none of these
Q15Variable that are both alive and active throughout the
entire programme are known as
a)local
b)private
c)automatic
d)global
Q16 leftshif and right shift operators are
a)assignment operators
b)relational operators
c)logical operators
d)bitwise logical operator
Q17. C contains two special pointer operators
a)*and&
b)* and &&
c)& and &&
d)% and &
Q18.Every c programme begins with the statement
a)main()
b)printf()
c)scanf()
d)none of these
Q19.If want to give the
alias name of primary data type which one is used?
a)Typedef
b)Typeconversion
c)typealias
d)None of these
Q20Which one is alternative and better efficient memory
management than structure?
a)Array
b)Union
c)Void
d)none of these
Answers:
1)
a
2)
a
3)
a
4)
a
5)
d
6)
b( c alwys understand either 0 or non zero)
7)
a
8)
a
9)
c
10)
c
11)
a
12)
b
13)
a
14)
b
15)
d
16)
d
17)
a
18)
a
19)
a
20)
b
Hope you are enjoying our quiz if you have
any problem regarding this quiz mail us at this email address : ayushgpt81@yahoo.com
To Follow our face page click and like our
facebook pagehttps://www.facebook.com/dsssbtgtcomputer/?ref=aymt_homepage_panel
Comments
Post a Comment