

MCQOPTIONS
Saved Bookmarks
This section includes 60 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. |
Which of the following system program forgoes the production of objectcodetogenerateabsolute machine code and load it into the physical main storage location from which it will be executed immediately upon completion of the assembly? |
A. | wo pass assembler |
B. | oad-and-go assembler |
C. | acroprocessor |
D. | ompiler |
Answer» C. acroprocessor | |
2. |
ConverttheASLAassembly languageinstructionsinto hexadecimal machine language: |
A. | 111EF |
B. | 0 |
C. | A000F |
D. | 0 |
Answer» E. | |
3. |
Systems software is a program that directs the overall operation of the computer,facilitatesitsuseand interacts with the users. What are the different types of this software? |
A. | perating system |
B. | anguages |
C. | tilities |
D. | ll of the above |
Answer» E. | |
4. |
Loadersthatallowforprogram relocation are called |
A. | elocating loaders |
B. | elative loaders |
C. | oth (a) and (b) |
D. | one of the above |
Answer» D. one of the above | |
5. |
When a computer is first turned on orrestarted,aspecialtypeof absolute loader, called a ______ is executed |
A. | oader |
B. | inker |
C. | ootstrap loader |
D. | one of the above |
Answer» D. one of the above | |
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 which way(s) can a macro processor for assembly language be implemented? |
A. | independent two-pass processor |
B. | independent one-pass processor |
C. | processor incorporated into pass of a standard two-pass assembler |
D. | All of the above |
Answer» E. | |
8. |
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 | |
9. |
Convert the 080D4E machine language instructions into assembly language, assuming that they were not generated by pseudo-ops: |
A. | ASRA |
B. | LOADA h#OD4E, i |
C. | STOREA h#014B, d |
D. | ADDA h#01FE, i |
Answer» C. STOREA h#014B, d | |
10. |
In an absolute loading scheme, which loader function is accomplished by loader? |
A. | Reallocation |
B. | Allocation |
C. | Linking |
D. | Loading |
Answer» E. | |
11. |
Convert the .BYTE h#F8 assembly language pseudo-ops into hexadecimal machine language: |
A. | 0111EF |
B. | 03 16 |
C. | F8 |
D. | 42 65 61 72 |
Answer» D. 42 65 61 72 | |
12. |
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 | |
13. |
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 | |
14. |
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 | |
15. |
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 | |
16. |
The function(s) of the Syntax phase is/ are: |
A. | to recognize the major constructs of the language and to call the appropriate action routines that will generate the intermediate form or matrix for these constructs |
B. | to build a literal table and an identifier table |
C. | to build a uniform symbol table |
D. | to parse the source program into the basic elements or tokens of the language |
Answer» B. to build a literal table and an identifier table | |
17. |
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 | |
18. |
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. | |
19. |
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 | |
20. |
Convert the 48 machine language instructions into assembly language, assuming that they were not generated by pseudo-ops: |
A. | ASRA |
B. | LOADA h#OD4E, i |
C. | STOREA h#014B, d |
D. | ADDA h#01FE, i |
Answer» B. LOADA h#OD4E, i | |
21. |
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. | |
22. |
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 | |
23. |
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 | |
24. |
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 | |
25. |
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. | |
26. |
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 | |
27. |
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 | |
28. |
The Process Manager has to keep track of: |
A. | the status of each program |
B. | the priority of each program |
C. | the information management support to a programmer using the system |
D. | both (a) and (b) |
Answer» E. | |
29. |
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 | |
30. |
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 | |
31. |
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 | |
32. |
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. | |
33. |
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 | |
34. |
Convert the ASLA assembly language instructions into hexadecimal machine language: |
A. | 0111EF |
B. | 9000000000 |
C. | DA000F |
D. | 40 |
Answer» E. | |
35. |
A relocate program form is the 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» C. can itself perform the relocation of its address-sensitive portions | |
36. |
Which of the following systems software does the job of merging the records from two flies into one? |
A. | Documentation system |
B. | Utility program |
C. | Networking software |
D. | Security software |
Answer» C. Networking software | |
37. |
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. | |
38. |
A compiler for a high-level language that runs on one machine and produces code for a different machine is called |
A. | optimizing compiler |
B. | one pass compiler |
C. | cross compiler |
D. | multipass compiler |
Answer» D. multipass compiler | |
39. |
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 | |
40. |
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. | |
41. |
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) | |
42. |
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. | |
43. |
A base register table |
A. | is a term that refers to the control programs of an operating system |
B. | is used to remember which of the general-purpose registers are currently available as base registers, and what base addresses they contain |
C. | allows multiple programs to reside in separate areas of core at the same time |
D. | allows the programmer to write base registers and displacements explicitly in the source program |
Answer» C. allows multiple programs to reside in separate areas of core at the same time | |
44. |
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 | |
45. |
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. | |
46. |
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 | |
47. |
Convert the BRNE h#01E6, i assembly language instructions into hexadecimal machine language: |
A. | 0111EF |
B. | 9000000000 |
C. | DA000F |
D. | 40 |
Answer» C. DA000F | |
48. |
In an absolute loading scheme, which loader function is accomplished by assembler |
A. | Reallocation |
B. | Allocation |
C. | Linking |
D. | Loading |
Answer» B. Allocation | |
49. |
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. | |
50. |
Terminal Table |
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 of the tokens as they appear in the program. Created by Lexical analysis and used for syntax analysis and interpretation |
D. | contains all constants in the program |
Answer» B. a permanent table of decision rules in the form of patterns for matching with the uniform symbol table to discover syntactic structure | |