C interview preparation Quiz 3 Welcome to your Fresher Interview Preparation - C language Skills - 3 Name Email Phone Number 1. _____________ functions are very useful to solve many mathematical problems such as calculating the factorial of a number.HashRecursivesymbolNone2. #define is a _________ which is also used to define the aliases for various data types.C-directiveB-directiveNoneD-directive3. _________ is the process by which values of integer type “smaller” than int or unsigned intare converted either to int or unsigned int.Integer promotionvariableNonecharacter4. C programming treats all the devices as ________.filesdirectoryNonevalues5. ____________ function allocates an array of num bytes and leave them uninitialized.void*malloc(int num)void*()void ()None6. if a header file happens to be included twice, the compiler will process its contents twice andit will result in an _______.constantmacroNoneerror7. _________ refers to the number of arguments passed.Noneargcargdargv8. fopen () is used to open an _______.objectsfiledirectoryNone9. int putchar(int c) puts only single ______ at a time.doubleIntegercharacterNone10. We can increase or decrease the size of an allocated memory block by calling the functioncalloc()Nonemalloc()realloc()11. The _________ functions which returns a pointer to the textual representation of the currenterrno value.strerror()qstrerror()werror()None12. It is a good practice to set errno to _______ at the time of initializing a program.1None2013. header file is a file with _______ which contains C function declarations and macrodefinitions to be shared between several source files.Noneextension .cextension .bextension .h14. ____________ is the process of repeating items in a self-similar way.referencerecursionNonere-address15. To close a file , use the _____________.fclose()closef()Noneclose()16. w option is used to open a file forNonereading and writingreadingwriting17. The ________ within a macro definition combines two arguments.Nonetoken-pasting operator (##)arithmetic operatormultiplication operator18. Type casting is a way to convert __________ from one data type to another data typevariablevaluefunctionsNone19. The stringsize or number-sign operator ('#') when used with a macro definition convertsa macro parameter into a ________.variableNonecharacter constantstring constant20. #define statements are processed by the ________________.NoneCompilerInterpreterpre-processor21. #define can be used to define _______ for values.diasbiasaliasNone22. A value of __________ indicates that there is no error in the program.01None223. The defined operator is used in constant expressions to determine if an identifier is definedusing _______.None#define#constant#defined24. __________ is a pointer array which points to each argument passed to the program.Noneargcargvargd25. The EOF is a constant defined in the _______stdin.hstderr.hstdio.h26. int getchar(void) reads only single __________ at a time.IntegerNonedoublecharacter27. __________ can appear only with in the looping control and switch statement.variableTrickbreakNone28. By default every local variable of the function is ___________logicalsystematicautomaticNone29. All preprocessor commands begin with a ___________symbol.variabledigitNonehash30. when you are not in need of memory anymore then you should release that memory by callingthe function _______.tree()free()qtree()None31. The ___________ is used to continue a macro that is too long for a single line.macro continuation operator.address continuation operator.Nonevalue continuation operator.32. _______________ function allocates an array of num elements each of which size in byteswill be size.void*calloc()void*()void*calloc(int num,int size)None33. r option is used to open a file forreading and writingNonereading purposewriting purpose34. r+ is used to open a text file forappendingreading and writingNonetransforming35. The fclose() function returns _________ on success.zeroNonethreeone36. ____________ function re-allocates memory extending it upto newsize.void*()void*realloc(void*address, int newsize)Nonevoid()37. A bit field can hold more than a ___________bit.NonefloatDoublesingle38. a option is used to open a file forNonetranforming modeappending modereading and writing mode.39. The usual arithmetic conversions are implicitly performed to cast their values to a ______.Nonedata typevariablecommon type40. _____ are not allowed between the macro name and open parenthesis.valuesconstantspacesNone41. _________________function releases a block of memory block specified by address.Nonevoid free ()void ()void free(void *address)42. The variables defined with a predefined width are called ____.Nonedata fieldsbyte fieldsbit fields43. scanf() function reads the input from the standard input stream ________.stdoutNonestderrstdin44. A ____________ can't be an automatic variableglobal variablelocal variablelogical variableNone45. C preprocessor is just a _______ substitution tool.variableNonedatatext46. The ____________________ conversion are not performed for the assignment operators, norfor the logical operators .usual arithmeticdata typeNoneVariable type47. The command line arguments are handled using ______________ agrumentscalloc ()Nonerealloc()main () function48. The _________ header file which provides the functions and macros to implement thefunctionality of variable arguments.stderr.hstdarg.hstdfile.hNone49. printf () function writes the output to the standard output stream _________.stderrstdoutstdinNone50. The _________ functions display the string you pass to it, followed by a colon, a space andthen the textual representation of the current errno value.Noneperror()qerror()cerror()Please fill in the comment box below. Time is Up!