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
one suggestion the code related question please provide the detail explanation.
ReplyDeleteone suggestion the code related question please provide the detail explanation.
ReplyDelete