Skip to main content

dsssb c quiz 3

If you fail today,does not mean you are going to fail tomorrow  , So getup and move ahead   we will always with you
Sorry for the procastinating of this quiz but we believe on quality not quantity.Here we are with our quiz 3  c language
Q1.A single character input from the keyboard can
a)printf()
b)getchar()
c)putchar()
d)scanf()
Q2.A variable that holds the memory address of another object is  called
a)integer
b)pointer
c)constant
d)memory variable
Q3.which of the following operation doesnot work on pointers
a)addition of two pointer
b)multiplication of a pointer with a constant
c)divison of  a pointer with a constant
d)all of  these
Q4.which of the following is invalid string constan t
a)’7.15’
b)”I like c”
c)”7.32”
d)none of these
Q5.The malloc () fuction
a)returns a pointer to the memory memory
b)return a pointer  to the first byte of region of memory
c)c hanges the size of allocated memory
d)dellocates the memory

Q6 A union consists of a members of elements that
a)occupy the same space in memory
b)must be structures
c)are grouped next to each other in memory
d)all have the same type
Q7.Enumeration is
a)set of numbers
b)list of strings
c)a set of legal values possible for a variable
d)list of operators
Q8.what  one is unformatted functions?
a)int
b)char
c)float
d)none of these
Q9 if you want  to give space in your input by keyword which function will be used?
a)gets
b)puts
c)printf
d)Scanf
Q10what is Escape sequence?
a)the new line character
b)the new line constant
c )Both of these
d)None of these
Q11 which function is used to write the output to an array of characters?
a)printf
b)gets
c)puts
d)sprint
Q12.if pointer is arranged value null it means
a)the value cannot be assigned
b)it points to a memory location 0
c)define is missing
d)it does not point to any location
Q13.In printf ()  the appearance of the output can be affected by
a)field width
b)conversion character
c)flag
d)all of the above
Q14 the math library  is set up for the user by the file
a)float.h
b)limits,h
c)math.h
d)time.h
Q15 main()
{
 float a;
int x=6 ,y=4;
a=x/y;
printf(“value of a =%f”,a);
}
out put is
a)1.5
b)1.00
c)2
d)none of these
Q16. main()
{
float a;
int x=6, y=4;
a=(float)x/y;
printf(“value of a=%f”,a);
}
output is:
1)1.00
b)1.5
c)3
d)None of these

Q17.which one is invalid  variable initilaisation?
a)int i=10;
b)int i=10,j=20;
c)int i=j=k=l=m=10
d)all is correct
Q18.which one is alternative of if
a)ternary oprerator
b)binary operator
c)modulas  operator
d)none of these
Q19.pick  the odd one out
a)bottom up design
b)parallel design
c)modular design
d)Top down design
Q20.Structured programming concepts were laid down by
a)P.j  pluger
b)Edsger Dijkstra
c)Dennis Ritchie
d)ken Thompson


Answers
1)b
2)b
3)d
4)a
5)b
6)a
7)c
8)d
9)a
10)a
11)d
12)d
13)d
14)c
15)b
16)b
17)c
18)a
19)b
20)b



So here is the end of quiz of c language these quizzes covered  at most all the basics of c.Now we will start the quiz of data structure and algorithm
For more quizzes click and follow our facebook page





Comments

  1. one suggestion the code related question please provide the detail explanation.

    ReplyDelete
  2. one suggestion the code related question please provide the detail explanation.

    ReplyDelete

Post a Comment

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