Quiz

A
Q. 1 ) Which of the following special symbol allowed in a variable name?
Q. 2 ) Which of the following statements are correct about the below C-program? int main() { int x = 10, y = 100%90, i; for(i=1; i<10; i++) if(x != y); printf("x = %d y = %d\n", x, y); return 0; }
Q. 3 ) How would you round off a value from 1.66 to 2.0?
Q. 4 ) What are the different types of real data type in C ?
Q. 5 ) Which header file should be included to use functions like malloc() and calloc()?
Q. 6 ) What function should be used to free the memory allocated by calloc() ?
Q. 7 ) If you pass an array as an argument to a function, what actually gets passed?
Q. 8 ) Which of the following function sets first n characters of a string to a given character?
Q. 9 ) How will you print \n on the screen?
Q. 10 ) What do the following declaration signify? char *scr;
Q. 11 ) The maximum combined length of the command-line arguments including the spaces between adjacent arguments is
Q. 12 ) Which of the following are unary operators in C? 1.! 2.sizeof 3.~ 4.&&
Q. 13 ) Which standard library function will you use to find the last occurance of a character in a string in C?
Q. 14 ) We declare a function with ______ if it does not have any return type
Q. 15 ) A function that calls itself for its processing is known as
Q. 16 ) Out of fgets() and gets() which function is safe to use?
Q. 17 ) In the following code what is 'P'? typedef char *charp; const charp P;
Q. 18 ) What will the function rewind() do?
Please select an option