12th class (Fsc) computer unit 8 MCQs
51. Which of the following syntax is used to include header file?
a. #include<nameof header file>
b. #include“name of the header file”
c. Both A & C
d. None of these
52. Stdio.h is part of:
a. Compiler
b. Comment section
c. Main function
d. C standard library
53. Conio stands for:
a. Common input output
b. Character input output
c. Complex input output
d. Console input output
54. Which of the following header file contains information about common mathematical functions?
a. Conio.h
b. Stdio.h
c. Math.h
d. None
55. This is a complete instruction that causes the computer to perform some action:
a. Keyword
b. Statement
c. Line
d. None
56. For every opening brace in a C program, there must be a:
a. Colon
b. Closing brace
c. Common
d. None
57. C programs are divided into units called:
a. Syntax
b. Functions
c. Debug
d. Section
58. Main is a:
a. Function
b. Compiler directive
c. Expression
d. Comment
59. Debug is the process of:
a. Identifying errors
b. Creating bugs in program
c. Removing errors
d. Identifying and removing errors
60. A program syntax error is detected by:
a. Loader
b. Linker
c. Debugger
d. Compiler
61. A program’s syntax errors is detected by:
a. Loader
b. Compiler
c. Debugger
d. Linker
62. The process of identifying and removing error in the programs is called:
a. Executing
b. Debugging
c. Linking
d. Processing
63. Division by zero (e.g., 5/0) is an example of:
a. Syntax error
b. Compiler error
c. Logical error
d. Runtime error
64. Which error occur when the program directs the computer to perform an illegal operation?
a. Syntax error
b. Runtime error
c. Conceptual error
d. Logical error
65. A set of rules that must be followed to develop a program is called:
a. Bug
b. Syntax
c. Debugging
d. Preprocessor
66. A type of error that occurs when an instruction violates the rules of writing programs is called:
a. Program error
b. Runtime error
c. Syntax error
d. Logical error
67. Which of the following reason causes the syntax error?
a. Missing any of the delimiters
b. Missing statement terminator
c. Using a variable without
d. All
68. Which of the following errors are not detected by compiler?
a. Library module
b. Syntax module
c. Object module
d. None
69. Which of the following does not contain machine language code?
a. Library module
b. Source module
c. Object module
d. None
70. A spelling error e.g. Typing intt instead of int) is an example of:
a. Logic error
b. Syntax error
c. Runtime error
d. None
71. Division by zero (e.g.2/0) is an example of:
a. Logic error
b. Compile error
c. None
d. Runtime error
72. The process of identifying and removing error in the programs is called:
a. Executing
b. Debugging
c. Processing
d. None
73. Which of the following is not an example of a program bug?
a. Syntax error
b. Run-time error
c. Logic error
d. Operator error
74. Mistakes that cause a running program to produce incorrect results are called:
a. Program error
b. Syntax error
c. Logic error
d. None
75. Which term is commonly used to refer to software or program errors:
a. Down
b. Crash
c. Bug
d. Short circuit