Explore topic-wise MCQs in Computer Science.

This section includes 72 Mcqs, each offering curated multiple-choice questions to sharpen your Computer Science knowledge and support exam preparation. Choose a topic below to get started.

1.

Loaders that allow for program relocation are called~!

A. relocating loaders
B. relative loaders
C. both (a) and (b)
D. None of the above
Answer» D. None of the above
2.

The task(s) of the Lexial analysis phase is/are:%!

A. to parse the source program into the basic elements or tokens of the language
B. to build a literal table and an identifier table
C. to build a uniform symbol table
D. All of the above
Answer» E.
3.

Which of the following program is not a utility?%!

A. Debugger
B. Editor
C. Spooler
D. All of the above
Answer» D. All of the above
4.

Assembler is%!

A. a program that automate the translation of assembly language into machine language
B. a program that accepts a program written in a high level language and produces an object program
C. a program that places programs into memory and prepares them for execution
D. is a program that appears to execute a source program as if it were machine language
Answer» B. a program that accepts a program written in a high level language and produces an object program
5.

Systems software is a program that directs the overall operation of the computer, facilitates its use and interacts with the users. What are the different types of this software?%!

A. Operating system
B. Languages
C. Utilities
D. All of the above
Answer» E.
6.

The macro processor must perform%!

A. recognize macro definitions and macro calls
B. save the macro definitions
C. expand macro calls and substitute arguments
D. All of the above
Answer» E.
7.

In an absolute loading scheme, which loader function is accomplished by loader?%!

A. Reallocation
B. Allocation
C. Linking
D. Loading
Answer» E.
8.

Convert the BRNE h#01E6, i assembly language instructions into hexadecimal machine language:%!

A. 0111EF
B. 9.00E+09
C. DA000F
D. 40
Answer» C. DA000F
9.

Bug means%!

A. A logical error in a program
B. A difficult syntax error in a program
C. Documenting programs using an efficient documentation tool
D. All of the above
Answer» B. A difficult syntax error in a program
10.

Indicate whether the statement LDA B is a statement, in%!

A. Machine language
B. Assembly language
C. High level language
D. All of the above
Answer» C. High level language
11.

When a computer is first turned on or restarted, a special type of absolute loader, called a ______ is executed%!

A. loader
B. linker
C. bootstrap loader
D. None of the above
Answer» D. None of the above
12.

In analyzing the compilation of PL/I program, the term "Lexical analysis" is associated with%!

A. recognition of basic syntactic constructs through reductions
B. recognition of basic elements and creation of uniform symbols
C. creation of more optional matrix
D. use of macro processor to produce more optimal assembly code
Answer» C. creation of more optional matrix
13.

*$_Bug means?

A. A logical error in a program
B. A difficult syntax error in a program
C. Documenting programs using an efficient documentation tool
D. All of the above
Answer» B. A difficult syntax error in a program
14.

*$_When a computer is first turned on or restarted, a special type of absolute loader, called a ______ is executed?

A. loader
B. linker
C. bootstrap loader
D. None of the above
Answer» D. None of the above
15.

*$_Indicate whether the statement LDA B is a statement, in?

A. Machine language
B. Assembly language
C. High level language
D. All of the above
Answer» C. High level language
16.

*$_A self-relocating program is one which?

A. cannot be made to execute in any area of storage other than the one designated for it at the time of its coding or translation
B. consists of a program and relevant information for its relocation
C. can itself perform the relocation of its address-sensitive portions
D. All of the above
Answer» D. All of the above
17.

*/*_The action of parsing the source program into the proper syntactic classes is known as?

A. syntax analysis
B. lexical analysis
C. interpretation analysis
D. general syntax analysis
Answer» C. interpretation analysis
18.

*/*_Which of the following might be used to convert high-level language instructions into machine language??

A. system software
B. applications software
C. an operating environment
D. an interpreter
Answer» E.
19.

*/*_Convert the ASCII/BEAR/assembly language pseudo-ops into hexadecimal machine language?

A. 0111EF
B. 03 16
C. F8
D. 42 65 61 72
Answer» E.
20.

*/*_An Interpreter is?

A. is a program that appears to execute a source program as if it were machine language
B. a program that automate the translation of assembly language into machine language
C. program that accepts a program written in a high level language and produces an object program
D. a program that places programs into memory and prepares them for execution
Answer» B. a program that automate the translation of assembly language into machine language
21.

*/*_A compiler is?

A. a program that places programs into memory and prepares them for execution
B. a program that automate the translation of assembly language into machine language
C. program that accepts a program written in a high level language and produces an object program
D. is a program that appears to execute a source program as if it were machine language
Answer» D. is a program that appears to execute a source program as if it were machine language
22.

*/*_Indicate which of the following is not true about 4GL??

A. 4GL does not support a high-level of screen interaction
B. Many database management system packages support 4GLs
C. A 4GL is a software tool which is written, possibly, in some third generation language
D. All of the above
Answer» B. Many database management system packages support 4GLs
23.

*/*_A loader is?

A. a program that places programs into memory and prepares them for execution
B. a program that automate the translation of assembly language into machine language
C. is a program that appears to execute a source program as if it were machine language
D. program that accepts a program written in a high level language and produces an object program
Answer» B. a program that automate the translation of assembly language into machine language
24.

*/*_An algorithm is best described as?

A. A computer language
B. A step by step procedure for solving a problem
C. A branch of mathematics
D. All of the above
Answer» C. A branch of mathematics
25.

*/*_Indicate which of the following is not true about an interpreter??

A. Interpreter generates an object program from the source program
B. Interpreter is a kind of translator
C. Interpreter analyses each source statement every time it is to be executed
D. All of the above
Answer» B. Interpreter is a kind of translator
26.

*/*_In analyzing the compilation of PL/I program, the term "Syntax analysis" is associated with?

A. recognition of basic syntactic constructs through reductions
B. recognition of basic elements and creation of uniform symbols
C. creation of more optional matrix
D. use of macro processor to produce more optimal assembly code
Answer» B. recognition of basic elements and creation of uniform symbols
27.

%_A loader is_%

A. a program that places programs into memory and prepares them for execution
B. a program that automate the translation of assembly language into machine language
C. is a program that appears to execute a source program as if it were machine language
D. program that accepts a program written in a high level language and produces an object program
Answer» B. a program that automate the translation of assembly language into machine language
28.

%_Indicate which of the following is not true about an interpreter?_%

A. Interpreter generates an object program from the source program
B. Interpreter is a kind of translator
C. Interpreter analyses each source statement every time it is to be executed
D. All of the above
Answer» B. Interpreter is a kind of translator
29.

%_An algorithm is best described as_%

A. A computer language
B. A step by step procedure for solving a problem
C. A branch of mathematics
D. All of the above
Answer» C. A branch of mathematics
30.

_ In which addressing mode, the effective address of the operand is generated by adding a constant value to the contents of register?$?

A. absolute mode
B. indirect mode
C. immediate mode
D. index mode
Answer» E.
31.

_ Indicate which of the following is not true about 4GL?$?

A. 4GL does not support a high-level of screen interaction
B. Many database management system packages support 4GLs
C. A 4GL is a software tool which is written, possibly, in some third generation language
D. All of the above
Answer» B. Many database management system packages support 4GLs
32.

_ An Interpreter is$?

A. is a program that appears to execute a source program as if it were machine language
B. a program that automate the translation of assembly language into machine language
C. program that accepts a program written in a high level language and produces an object program
D. a program that places programs into memory and prepares them for execution
Answer» B. a program that automate the translation of assembly language into machine language
33.

_ In analyzing the compilation of PL/I program, the term "Syntax analysis" is associated with$?

A. recognition of basic syntactic constructs through reductions
B. recognition of basic elements and creation of uniform symbols
C. creation of more optional matrix
D. use of macro processor to produce more optimal assembly code
Answer» B. recognition of basic elements and creation of uniform symbols
34.

_ The action of parsing the source program into the proper syntactic classes is known as$?

A. syntax analysis
B. lexical analysis
C. interpretation analysis
D. general syntax analysis
Answer» C. interpretation analysis
35.

_ Which of the following might be used to convert high-level language instructions into machine language?$?

A. system software
B. applications software
C. an operating environment
D. an interpreter
Answer» E.
36.

_ A compiler is$?

A. a program that places programs into memory and prepares them for execution
B. a program that automate the translation of assembly language into machine language
C. program that accepts a program written in a high level language and produces an object program
D. is a program that appears to execute a source program as if it were machine language
Answer» D. is a program that appears to execute a source program as if it were machine language
37.

_In what module, multiple instances of execution will yield the same result even if one instancy has not terminated before the next one has begun?$?

A. non-reusable module
B. serially reusable
C. reenterable module
D. recursive module
Answer» D. recursive module
38.

_Which table is a permanent databases that has an entry for each terminal symbol?$?

A. Terminal table
B. Literal table
C. Identifier table
D. Reductions
Answer» B. Literal table
39.

_The function(s) of the Storage Assignment is/are:$?

A. to assign storage to all variables referenced in the source program
B. to assign storage to all temporary locations that are necessary for intermediate results
C. to assign storage to literals, and to ensure that the storage is allocated and appropriate locations are initialized
D. All of the above
Answer» E.
40.

_The advantage(s) of incorporating the macro processor into pass 1 is/ are:$?

A. many functions do not have to be implemented twice
B. Functions are combined and it is not necessary to create intermediate files as output from the macro processor and input to the assembler
C. more flexibility is available to the programmer in which he/she may use all the features of the assembler in conjunction with macros
D. All of the above
Answer» E.
41.

_Assembly code data base is associated with$?

A. a permanent table which lists all key words and special symbols of the language in symbolic form
B. a permanent table of decision rules in the form of patterns for matching with the uniform symbol table to discover syntactic structure
C. consists of a full or partial list or the tokens as they appear in the program. Created by Lexical analysis and used for syntax analysis and interpretation
D. assembly language version of the program which is created by the code generation phase and is input to the assembly phase
Answer» E.
42.

_Multiprogramming was made possible by$?

A. input/output units that operate independently of the CPU
B. operating systems
C. both (a) and (b)
D. neither (a) nor (b)
Answer» D. neither (a) nor (b)
43.

_Job Control Language (JCL) statements are Used to$?

A. Read the input from the slow-speed card reader to the high-speed magnetic disk
B. Specify, to the operating system, the beginning and end of a job in a batch
C. Allocate the CPU to a job
D. All of the above
Answer» C. Allocate the CPU to a job
44.

_Advantage(s) of using assembly language rather than machine language is/are:$?

A. It is mnemonic and easy to read
B. Addresses any symbolic, not absolute
C. Introduction of data to program is easier
D. All of the above
Answer» E.
45.

_The advantage(s) inherent to using high level languages is/are:$?

A. Fewer people, less management and shorter transition in learning time
B. Improved debugging capability, and superior documentation
C. A greater degree of machine independence
D. All of the above
Answer» E.
46.

_A translator which reads an entire programme written in a high level language and converts it into machine language code is:$?

A. assembler
B. translator
C. compiler
D. system software
Answer» D. system software
47.

_A system program that combines the separately compiled modules of a program into a form suitable for execution$?

A. assembler
B. linking loader
C. cross compiler
D. load and go
Answer» C. cross compiler
48.

_Which of the following system program forgoes the production of object code to generate absolute machine code and load it into the physical main storage location from which it will be executed immediately upon completion of the assembly?$?

A. two pass assembler
B. load-and-go assembler
C. macroprocessor
D. compiler
Answer» C. macroprocessor
49.

The table created by lexical analysis to describe all literals used in the source program, is:$?

A. Terminal table
B. Literal table
C. Identifier table
D. Reductions
Answer» C. Identifier table
50.

Convert the .WORD d#790 assemblylanguage pseudo-ops into hexadecimal machine language:$?

A. 0111EF
B. 03 16
C. F8
D. 42 65 61 72
Answer» C. F8