C Fill in the Blanks |Fill in the blanks with Answers in C Programming

1. C is a ________________ programming language.

Answer: Procedural

2. C programming language was developed by ___________.

Answer: Dennis Ritchie

3. Father of C language _____.

Answer: Dennis Ritchie

4. C programming was developed at _________.

Answer: Bell Laboratories

5. C was developed in _____.

Answer: 1972

6. stdio.h is header files for _______________.

Answer: Standard Input Output (I/O)

7. Execution of a C program starts from _______.

Answer: main().

8. Every function body begins with _____ and ends with _____.

Answer: { (left brace) , } (right brace)

9. Every C program begins execution at the function ___.

Answer: main()

10. Every C Program should contain _____________ function.

Answer: main()

11. Every statement in a C program has to end with _____.

Answer: semi-colon.

12. _________ is the extension of C source file.

Answer: .C

13. The C source file is processed by the _________.

Answer: Compiler

14. A single line comment in C language source code can begin with ________.

Answer: //

15. The escape sequence \n represents the __________ character, which causes the cursor to position to the beginning of the next line on the screen.

Answer: newline

16. C is a ____ sensitive language.

Answer: case

17. __________ is also called as reserved word.

Answer: Keywords

18. All keywords must be written in __________

Answer: lower case

19. _____ keywords are there in C language.

Answer: 32

20. The documentation section in a C program consists of a set of __________ lines.

Answer: comment

21. Header file ___________ should be included for input/output functions in C.

Answer: stdio.h

22. In C language, programmers can create custom header files that must end with a ___________

Answer:    .h extension

23. The_________ standard library function displays information on the screen.

Answer: printf()

24. _______ is used to take input from the user.

Answer: scanf()

25. C provides __________ to input functions.

Answer: scanf()

26. The_________ Standard Library function is used to obtain data from the keyboard.

Answer: scanf()

27. The scanf() is a predefined function in _________ header file.

Answer: stdio.h

28. Used to clear the output screen ___________

Answer: clrscr()

29. To indicate address location the ______ operator is used.

Answer: &

30. An ampersand (&) before the name of a variable denotes the ___________ of the variable.

Answer: address

31. ____________ is used to store a value.

Answer: variables

32. ________ is a storage location, which stores a value or information.

Answer: Variable

33. A variable name in the C language may consist of letters, numbers and ______

Answer: underscore (_)

34. _______ data type is used to represent a single character in C.

Answer: char

35. A printf format control string must be enclosed in __________

Answer: double quotation marks (“)

 

36.  The format specifier_________ is used in a scanf format control string to indicate that an integer will be input and in a printf format control string to indicate that an integer will be output.

Answer: %d

 

37.  In C language, the ____________ format specifier is used to read a single character from the standard input.

Answer: %c

 

38. A floating-point value always contains a __________.

Answer: decimal point

39. A float requires _____ bytes in memory.

Ans: 4

40. A string constant in a C program is a sequence of __________ enclosed in double quotes. (“ ”)

Answer: character

41. Long int format specifier ____________

Answer: %ld

42. In C programming, ‘++’ is __________________operator.

Answer: increment

43. ___________ is used to increment the value of a variable in an expression by 1.

Answer: increment operator, ++

44. _______ symbol is used for the ‘modulo’ operator in C.

Answer: %

45. ______ operator gives remainder after division.

Answer: modulus operator (%)

46. _______ operator is used to compare two variables.

Answer: = =

47. C provides ______________ as a convenient alternative to the traditional ‘if-else’ for two way selection.

Answer: Conditional operator

48. The_________ statement is used to make decisions.

Answer: if

49. Multiple values of the same variable can be tested using ___________

Answer: switch

50. In the switch statement, the _________ statement must be used for each case other than the last.

Answer: break

51. For loop is ________ loop.

Answer: entry controlled

52. The _____ statement ends the loop immediately when it is encountered.

Answer: break

53. The ___________ statement is used to skip the rest of the statements in a loop and continue with the next iteration.

Answer: continue

54. _______ is  exit-controlled loop.

Answer: do-while

55. The do-while loop is useful when we want the statement inside the loop to be executed _____________

Answer: at least once

56. Array index always starts from _________.

Answer: zero (0)

57. The _________ brackets is used to specify the size of the array.

Answer: Square brackets [ ]

58. strcpy() function defined in  ________

Answer: string.h

59. All strings end in the __________character.

Answer: null character (\0)

 

60. \0 is a ____ character.

Answer: null

Leave a Comment