C Paper
C Paper
12. The following function reads a character as input,but does not echo it.
a) getch() b) getche() c) getchar() d) scanf()
for(i=1;i<=10;i++);
printf("%d",i);
a) 1 2 3 4 5 6 7 8 9 10 b) 11 c) 1 d) Infinite Loop
42) In the following datatypes, all the members share common memory space?
a) arrays b) unions c) structures s) enum
50) To get the value at address stored by pointer variable, the following
operator is used:
a) & b) && c) * d) **
a) 10 b) 50 c) Garbage d) Error
a) 10 b) 30 c) 20 d) Garbage
56) Which one of the following functions compares string and ignores case?
a) strcmp() b) strcmpi() c) stricmp() d) Both b and c
59) What is the library used to find the last occurence of a character in a
string:
a) strnstr() b) laststr() c) strrchr() d) strstr()
64) Which of the following statements are valid for the code given below:
void add(int,int){}
a) add(10,20); b) add(10) c)add(10,20,30) d) All of the above
75) Which one of the following makes the program run faster?
a) function
b) macro
c) Both
d) loop
76) Which storage class remembers the value of a variable during the next
call?
a) auto b) extern c) static d) register
80) Which one of the following syntax is valid for drawing a line?
a) void far line(int,int,int,int);
b) int far line(int,int,int,int);
c) void far line(int,int);
d) int far line(int,int);