Sr No | Questions | Answers |
---|---|---|
Sr No | Questions | Answers |
01 |
In a'C' program constant is defined.
(a) before main (b) after main (c) anywhere (d) none of the above |
|
02 |
What does the term 'call-by-reference' refer to?.
(a) Passing a copy of a variable into a function. (b) Passing a pointer to a variable into a function. (c) Choosing a random value for a variable. (d) A function that does not return any values. |
|
03 |
Consider the following declaration ::- enum color {black=-1, blue, green }; This represents.
(a) black= -1,blue=2, green=3 (b) black= -1 ,blue = -2, green= -3 (c) black= -1 ,blue = 0, green= 1 (d) an illegal declaration |
|
04 |
The macro FILE is defined in which of the following files.
(a) stdlib.h (b) stdio.h (c) io.h (d) stdio.c |
|
05 |
A function called total(), totals the sum of an integer array passed to it (as the first parameter) and returns the total of all the elements as an integer. Let the second parameter to the function be an integer which contains the number of elements of the array. The correct code is.
(a) int total( int numbers[], int elements ) { (b) int total( int numbers[], int elements ) { (c) int total( int numbers[], int elements ) { (d) None of the above |
|
06 |
What does the term call-by-value refer to?
(a) Passing a copy of a variable into a function (b) Passing a pointer to a variable into a function (c) Choosing a random value for a variable (d) A function that does not return any values |
|
07 |
Associativity of unary minus is.
(a) right to left (b) left to right (c) from center (d) None |
|
08 | void main() { int I=0; for(;I= =2;) { printf("%d", I); I++; } }.
(a) 0 (b) 0 1 2 (c) 0 1 (d) No output |
|
09 |
If ( ps->top=-1) return (true); else return (false); For this group of statements suggested shorter and more efficient method.
(a) return (1 (ps->top=+1) else return 0; (b) return (ps->top==-1); (c) return(top+1); (d) it can not be made shorter |
|
10 | The fwrite() and fread() functions handle data in.
(a) text form (b) binary form (c) hexadecimal form (d) octal form |
Showing 1 to 10 of 50 entries
Yaar... the questions are very good but please try to give related answer to question...
ReplyDeletePLEASE VERY THE ANSWERS
ReplyDelete