This practice GATE test includes programming methodology questions, which are asked in the GATE computer science and IT paper. Solve GATE previous year papers to get good GATE score in GATE 2012.
End Test Now
By default any real number in ‘C’ is treated as….......
depends up on the memory model that you are using
a float
a long double
a double
Recursive function are executed in a….........
Last in first out order
First in first out order
all of these
parallel fashion
What is the output of the following ‘C’ program ? main() { int a5={2,3}; printf(”\n%d%d%d”,a2,a3,a4); }
0,0,0
2,3,3
garbage values
3,2,2
argv is a/an….......
pointer to an array of character pointers
array of strings
array of character pointers
none of these
which header file should you include if you are to develop a function that can accept variable number of arguments ?
vararg.h
stdio.h
stdarg.h
stdib.h
printf(“%d”,10?0?5:1:12); print ?
12
11
10
0
In C programming language x-=y+1; means…...
x=x-y+1
x=-x+y+1
x=x-y-1
x=-x-y-1
Arrays can be initialized provided they are ….......
automatic
external
both automatically and externally
static
A “switch” statement is used to…........
switch between functions in a program
switch from one variable to another variables
to choose from multiple possibilities which may arise due to different values of a single variable
to use switching variable
When you are sure that you have answered as many questions as possible, click the ‘Done’ button below and view your results.