Skip to main content

C language quiz 2

"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

Popular posts from this blog

high level reasoning quiz 2

WELCOME  back to  high level reasoning quiz puzzles hope you enjoyed our first quiz.Usually when we prepare for competitive exam we think we can fight all the exams  i.e we prepare for bank exam  beside this  we also opt for ssc exams  in current scenario it seems fine because vacancy is decreasing and competition is increasing day by day  so to survive in this competition we have to explore all the oppurtunities but one thing we want to tell now competition is at peak we have to give best in our field in which we are preparing  every exam has different procedure,syllabus, especially  now banking exam pattern has changed drastically those days have gone where student  studied three month and cracked the po  now but you have to give atleast 6 months  increase your  level , go for higher level as you can, on the other side you if you are preparing ssc you should completely devote yourself to ssc because ssc demands hard labour , In a succinct way we want to say in  swami vivekanand sty

high level reasoning quiz 3

Forget what happened ,forget what will happen remember only what you have possible options  because if you are thinking about your future and past you are also wasting your current opportunities so focus on your current goal give your best and do what ever you want to do we will always with you. Quiz 3 Four friends Aarvind, Bharat ,chandrapaul and daniel went for an excursion with their wives preeti,,Revati,Sarvani,and Vanita not necessarily in the same order.Each couple hails from  a different city amongst Mumbai,Chennai,Kolkatta, and Hyderabad not necessarily in that order.They went to Agra to visit the Taj Mahal,Where they sat in a row.Each wife always sat to the immediate right of her husband. i)Bharat sat to the immediate right of Preeti. ii)Daniel is from hyderabad and Preeti is not from Mumbai. iii)Revati and her husband were sitting to the immediate right of the couple that hailed from chennai. iv)Chandrapaul and his wife were sitting to the immediate left of the couple

high level reasoning puzzle quiz 1

hello friends welcome to our blog we always believe  in innovation So now we are starting a quiz of high level reasoning puzzles which will help you in sbi po,ibps po mains exams etc.In each quiz we will post a high level reasoning puzzle we guarantee that these quizzes  will be unique and you will learn from these quizess.Now a days when exam level is unpredictable  so we have to prepare for the worst and practice for the hardest.As we always told you whatever the situation we will always with you. we will  post a high level reasoning puzzle and solution of this  puzzle will give with next quiz which will be posted in next two days. Quiz 1 Five friends meet every morning at sree sagar restaurant for an idle -vada breakfast.Each consumes a different number of idlis and vadas.The number of idlis consumed are 1,4,5,6 and 8.while the number of vadas consumed are 0,1,2,4,6.Below are some more facts about who eats what and how much.    i)The number of Vadas eaten by Ignesh