Choose a topic to test your knowledge and improve your C/C skills
Presence of code like “s.t.b = 10” indicates ____
Which of the following uses structure?
What is the correct syntax to declare a function foo() which receives an array of structure in function?
Presence of loop in a linked list can be tested by ________
Which option should be selected to work the following C expression? string p = "HELLO";
Which of the given option is the correct method for initialization? typedef char *string;
Which of the following is false about typedef?
Which of the following may create problem in the typedef program?
typedef int (*PFI)(char *, char *)creates _________
What is typedef declaration?
The size of a union is determined by the size of the ______
Members of a union are accessed as______
Which of the following data types are accepted while declaring bit-fields?
Which of the following reduces the size of a structure?
Which of the following is not allowed?
Bit fields can only be declared as part of a structure.
Which among the following is the odd one out?
For a typical program, the input is taken using _________
What does the following command line signify? prog1|prog2
What is the default return-type of getchar()?
What is the value of EOF?
What is the use of getchar()?
Which of the following statement is true?
What is the return value of putchar()?
Which is true about function tolower?
putchar(c) function/macro always outputs character c to the _____
The statement prog < infile causes _____
What is the difference between %e and %g?
Escape sequences are prefixed with ____
What is the purpose of sprintf?
The syntax to print a % using printf statement can be done by ____
Which of the following function with ellipsis are illegal?
Which of the following data-types are promoted when used as a parameter for an ellipsis?
Which header file includes a function for variable number of arguments?
Which of the following macro extracts an argument from the variable argument list (ie ellipsis) and advance the pointer to the next argument?
The type va_list in an argument list is used _____
In a variable length argument function, the declaration “…” can _____
Each call of va_arg ____
What are the first and second arguments of fopen?
For binary files, a ___ must be appended to the mode string.
What will fopen will return, if there is any error while opening a file?
What is the return value of getc()?
When a C program is started, O.S environment is responsible for opening file and providing pointer for that file?
In C language, FILE is of which data type?
What is meant by ‘a’ in the following C operation? fp = fopen("Random.txt", "a");
Which of the following mode argument is used to truncate?
Which type of files can’t be opened using fopen()?
Which of the following fopen() statements are illegal?
What does the following segment of C code do? fprintf(fp, "Copying!");
What is FILE reserved word?