C interview preparation Quiz 3 Welcome to your Fresher Interview Preparation - C language Skills - 3 Name Email Phone Number 1. The variables defined with a predefined width are called ____.data fieldsbyte fieldsbit fieldsNone2. #define is a _________ which is also used to define the aliases for various data types.B-directiveC-directiveD-directiveNone3. #define can be used to define _______ for values.Nonealiasdiasbias4. r+ is used to open a text file forappendingreading and writingNonetransforming5. The command line arguments are handled using ______________ agrumentsmain () functioncalloc ()realloc()None6. int getchar(void) reads only single __________ at a time.doubleIntegercharacterNone7. header file is a file with _______ which contains C function declarations and macrodefinitions to be shared between several source files.extension .hNoneextension .cextension .b8. A ____________ can't be an automatic variablelogical variablelocal variableNoneglobal variable9. ____________ function re-allocates memory extending it upto newsize.Nonevoid*()void()void*realloc(void*address, int newsize)10. The ________ within a macro definition combines two arguments.arithmetic operatortoken-pasting operator (##)Nonemultiplication operator11. _________________function releases a block of memory block specified by address.void ()Nonevoid free(void *address)void free ()12. int putchar(int c) puts only single ______ at a time.NonedoubleIntegercharacter13. The usual arithmetic conversions are implicitly performed to cast their values to a ______.common typevariableNonedata type14. #define statements are processed by the ________________.InterpreterCompilerpre-processorNone15. The fclose() function returns _________ on success.threezerooneNone16. _______________ function allocates an array of num elements each of which size in byteswill be size.void*calloc(int num,int size)void*()void*calloc()None17. Type casting is a way to convert __________ from one data type to another data typeNonevaluevariablefunctions18. The defined operator is used in constant expressions to determine if an identifier is definedusing _______.#constantNone#defined#define19. The _________ functions which returns a pointer to the textual representation of the currenterrno value.qstrerror()werror()Nonestrerror()20. __________ is a pointer array which points to each argument passed to the program.argvargdargcNone21. fopen () is used to open an _______.directoryNoneobjectsfile22. A bit field can hold more than a ___________bit.NonefloatDoublesingle23. ____________ is the process of repeating items in a self-similar way.recursionNonere-addressreference24. The _________ header file which provides the functions and macros to implement thefunctionality of variable arguments.stdarg.hstderr.hNonestdfile.h25. A value of __________ indicates that there is no error in the program.12None026. The ____________________ conversion are not performed for the assignment operators, norfor the logical operators .data typeVariable typeusual arithmeticNone27. _________ refers to the number of arguments passed.argvargdNoneargc28. if a header file happens to be included twice, the compiler will process its contents twice andit will result in an _______.macroNoneconstanterror29. a option is used to open a file fortranforming modereading and writing mode.appending modeNone30. w option is used to open a file forreading and writingNonereadingwriting31. __________ can appear only with in the looping control and switch statement.variableNonebreakTrick32. By default every local variable of the function is ___________systematicNonelogicalautomatic33. scanf() function reads the input from the standard input stream ________.Nonestderrstdoutstdin34. printf () function writes the output to the standard output stream _________.stdinNonestdoutstderr35. To close a file , use the _____________.close()closef()Nonefclose()36. The _________ functions display the string you pass to it, followed by a colon, a space andthen the textual representation of the current errno value.cerror()Noneperror()qerror()37. r option is used to open a file forNonewriting purposereading and writingreading purpose38. C programming treats all the devices as ________.Nonefilesdirectoryvalues39. It is a good practice to set errno to _______ at the time of initializing a program.20None140. The stringsize or number-sign operator ('#') when used with a macro definition convertsa macro parameter into a ________.variableNonestring constantcharacter constant41. _________ is the process by which values of integer type “smaller” than int or unsigned intare converted either to int or unsigned int.NonecharacterInteger promotionvariable42. when you are not in need of memory anymore then you should release that memory by callingthe function _______.qtree()free()tree()None43. _____________ functions are very useful to solve many mathematical problems such as calculating the factorial of a number.NonesymbolRecursiveHash44. The EOF is a constant defined in the _______stdio.hstderr.hstdin.h45. ____________ function allocates an array of num bytes and leave them uninitialized.Nonevoid*malloc(int num)void ()void*()46. The ___________ is used to continue a macro that is too long for a single line.value continuation operator.Nonemacro continuation operator.address continuation operator.47. C preprocessor is just a _______ substitution tool.variabledataNonetext48. We can increase or decrease the size of an allocated memory block by calling the functionNonemalloc()calloc()realloc()49. All preprocessor commands begin with a ___________symbol.variableNonedigithash50. _____ are not allowed between the macro name and open parenthesis.NoneconstantvaluesspacesPlease fill in the comment box below. Time is Up!