12th class (Fsc) computer unit 8 MCQs
26. The extension of object file is:
a. .obj
b. .c
c. .h
d. .txt
27. Which file contains the program after translation into machine language?
a. Source file
b. Object file
c. Exe file
d. None
28. Which of the following key is used to compile a program?
a. Ctrl+s
b. Alt+f9
c. Alt+f5
d. Ctrl+f9
29. Which of the following key is used to load a program in memory to run?
a. Ctrl+s
b. Alt+f9
c. Alt+f5
d. Ctrl+f9
30. The process of linking library files with object code is known as:
a. Linking
b. Compiler
c. Saving
d. Executing
31. The processing of running an executable file is known as:
a. Executing
b. Debugging
c. Saving
d. Compiling
32. The “exe” file is produced by:
a. Compiler
b. Linker
c. Interpreter
d. Loader
33. Preprocessor directives are commands for:
a. C preprocessor
b. Microprocessor
c. Loader
d. Language processor
34. The expression in define directive:
a. Cannot be changed but can be redefine
b. Can only be changed at the end of the program
c. Cannot be assigned a value
d. Cannot be changed
35. Void occupies how many bytes in memory?
a. Two
b. Zero
c. Four
d. One
36. Which of the following is used to donate preprocessor directives?
a. #
b. %
c. @
d. $
37. Header files in C contain:
a. Header information of C programs
b. Compiler commands
c. Operators for files
d. Library functions
38. Which header file contains information about standard input/output functions?
a. String.h
b. Stdio.h
c. Math.h
d. Conio.h
39. The name of header file is written between:
a. <>
b. [ ]
c. << >>
d. ( )
40. The extension of the header file is:
a. .hf
b. .c
c. .h
d. .txt
41. A table is a two dimensional structure that consists of:
a. Rows and columns
b. X and Y coordinates
c. Intersection of data
d. Matrix elements
42. Stdio.h stands for:
a. Simple input output
b. Standard input output
c. String input output
d. Symbolic input output
43. C-Language programs are divided into units called:
a. Function
b. Section
c. Debug
d. Syntax
45. Every C program must have:
a. main function
b. scanf function
c. print function
d. getche function
46. What does the following code print on screen? Printf(“hello”):
a. HELLO
b. Hello
c. Nothing
d. hello
47. A statement that starts with a # is called a:
a. Comment
b. Preprocessor directive
c. None
d. Keyword
48. The basic structure of C program consists of:
a. Program body
b. Preprocessor directive
c. Main() function
d. All
49. Which of the following symbol is used to denote a pre-processor statement?
a. Main()
b. # include <stdio.h>
c. All
d. Using name space std
50. Which of the following syntax is used to include header file?
a. #
b. %
c. @
d. $