computer MCQs
12th • Chapter 08
50 Questions TextBook
1
The C programming language was developed in which year?
2
Who developed the C programming language?
3
C was developed at which laboratories?
C
AT & T Bell Laboratories 4
C was derived from which earlier programming language?
5
The B language, which provided the basis for C, was developed by whom?
6
A well-defined set of instructions given to the computer is called a?
7
What does ANSI stand for?
A
American National Software InstituteB
American National Standards InstituteC
Associated National Standards InstituteD
American Nodal Standard Institute 8
What is the name of the Borland International's implementation of a compiler for C?
9
What does IDE stand for?
A
Integrated Development EnvironmentB
Internal Drive ElectronicsD
Intelligent Development Entity 10
In the Turbo C++ IDE, what is the key combination to open the File menu?
11
Which option in the Turbo C++ IDE is used to create a new file?
12
What key is the shortcut for saving a program in Turbo C++?
13
What is the default extension assigned by Turbo C++ when saving a file?
14
For a pure C program, what extension is suggested to be used when saving?
15
The process of translating a source program into an object program is called?
16
What is the key combination to compile a program in Turbo C++?
17
A program written in a high-level language like C is called a?
18
A C compiler translates a source program into a file with what extension?
19
Which program combines the object program with other necessary library files?
20
The linker produces a final executable file with which extension?
21
Which program places the executable file into memory for execution?
22
What is the key combination to execute (run) a program in Turbo C++?
23
To view the program's output screen in Turbo C++, what is the key combination?
24
Which menu is used to set the output and source directories in Turbo C++?
25
Commands that give instructions to the C preprocessor are called?
C
Preprocessor Directives 26
A preprocessor directive always begins with which symbol?
27
The #include <stdio.h> directive gives the program access to which functions?
A
Standard mathematical functionsB
Standard input and output functionsC
String manipulation functionsD
Memory allocation functions 28
Which directive is used to define a constant macro?
29
In a C program, where does the execution begin?
30
What encloses the body of a function in C?
31
The 'void' keyword before 'main' indicates that the function returns what?
32
What are the braces {} that indicate the beginning and end of a function body called?
33
Every statement in a C program must terminate with what?
34
What is the process of finding and removing errors (bugs) from a program called?
35
Which type of error occurs when the program violates grammar rules of the C language?
36
Which type of error is detected by the compiler?
37
Directing the computer to perform an illegal operation, like dividing by zero, causes what type of error?
38
Which type of error occurs when a program follows a faulty algorithm?
39
Which type of error is the most difficult to detect?
40
Which of the following is a low-level language?
41
What is the native language of the computer, consisting of strings of 0s and 1s?
42
In assembly language, English-like words that replace machine language instructions are called?
43
What is the name for the set of grammar rules for writing programs in a high-level language?
44
High-level languages provide machine independence. What does this mean?
A
Programs run only on one machineB
Programs need a specific processorC
Programs can be executed on many different types of computersD
Programs do not need a compiler 45
In the 'Hello World' example, which function was used to display output on the screen?
46
The header file `math.h` contains information about what?
B
Common mathematical functionsC
File handling functions 47
Which file is produced by the linker?
48
The short-key for compiling a program is?
49
The B language was developed in which period?
50
What does a loader do?
B
It places the executable file in memoryC
It translates the source codeD
It finds and removes errors