NEC licence exam preparation, made clearer.Practice questions, syllabus guides, and timed mocks for Nepal engineers.New study resources are added regularly.NEC licence exam preparation, made clearer.Practice questions, syllabus guides, and timed mocks for Nepal engineers.New study resources are added regularly.
A programmer, by mistake, writes an instruction to divide instead of multiply. Such an error can be detected by a/an:
A.
Compiler
B.
Compiler or interpreter both
C.
Interpreter
D.
Neither compiler nor interpreter
·
Question 5
Which is not true about ‘syntax’ and ‘semantics’ parts of a computer language?
A.
Syntax is generally checked by the programmer
B.
Semantics is the responsibility of the programmer
C.
Semantics is checked mechanically by a computer
D.
Both (B) and (C)
·
Question 6
A series of statements explaining how the data is to be processed is called:
A.
Instruction
B.
Program
C.
Compiler
D.
Interpreter
·
Question 7
The computer language generally translated to pseudo code is:
A.
Assembly
B.
Pascal
C.
Machine
D.
PL/I
·
Question 8
Application programs used with microcomputers are generally written by:
A.
The users themselves
B.
Hardware suppliers
C.
A team of experts known as ‘third parties’
D.
IBM
·
Question 9
What is true about machine language?
A.
It is understood by the computer
B.
It varies from one model of computer to another
C.
It may always be represented by binary numbers
D.
All of the above are true
·
Question 10
Object program is:
A.
A program written in machine language
B.
A program to be translated into machine language
C.
The translation of a high-level language into machine language
D.
None of the above
·
Question 11
What is true about assembly language?
A.
It uses symbolic codes
B.
It does not vary from one type of computer to another
C.
It uses binary numbers
D.
None of the above
·
Question 12
The process of transferring data intended for a peripheral device into a disk (or intermediate store) so that it can be transferred to the peripheral at a more convenient time or in bulk is known as:
A.
Multiprogramming
B.
Caching
C.
Spooling
D.
Virtual programming
·
Question 13
A form of code that uses more than one process and processor, possibly of different types, and that may on occasion have more than one process or processor active at the same time is known as:
A.
Multiprogramming
B.
Broadcasting
C.
Multithreading
D.
Time sharing
·
Question 14
Situations where two or more processes are reading or writing some shared data and the final result depends on who runs precisely when are called:
A.
Race conditions
B.
Mutual exclusion
C.
Critical sections
D.
Message passing
·
Question 15
Part of a program where the shared memory is accessed and which should be executed indivisibly is called:
A.
Semaphores
B.
Critical section
C.
Directory
D.
Mutual exclusion
·
Question 16
A relationship between processes such that each has some part (critical section) which must not be executed while the critical section of another is being executed is known as:
A.
Semaphore
B.
Multiprogramming
C.
Mutual exclusion
D.
Multitasking
·
Question 17
Which of the following operating systems use write-through caches?
A.
UNIX
B.
ULTRIX
C.
DOS
D.
XENIX
·
Question 18
A disk scheduling algorithm in an operating system causes the disk arm to move back and forth across the disk surface in order to service all requests in its path. This is a:
A.
First come first served
B.
SCAN
C.
Shortest Seek Time First (SSTF)
D.
Eschenbach scheme
·
Question 19
A system program that sets up an executable program in main memory ready for execution is:
A.
Assembler
B.
Loader
C.
Linker
D.
Text editor
·
Question 20
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.
Cross compiler
C.
One-pass compiler
D.
Multi-pass compiler
·
Question 21
An instruction in a programming language that is replaced by a sequence of instructions prior to assembly or compiling is known as:
A.
Procedure name
B.
Label
C.
Macro
D.
Literal
·
Question 22
Which of the following translator programs converts assembly language program to object program?
A.
Assembler
B.
Macro processor
C.
Compiler
D.
Linker
·
Question 23
Which of the following system programs 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.
Microprocessor
C.
Load-and-go assembler
D.
Compiler
·
Question 24
System programs such as compilers are designed so that they are:
A.
Reentrant
B.
Serially usable
C.
Non-reusable
D.
Recursive
·
Question 25
Memory:
A.
Is a device that performs a sequence of operations specified by instructions in memory
B.
Is the device where information is stored
C.
Is a sequence of instructions
D.
Is typically characterized by interactive processing and time-slicing of the CPU’s time to allow quick response to each user
·
Question 26
A program:
A.
Is a device that performs a sequence of operations specified by instructions in memory
B.
Is the device where information is stored
C.
Is a sequence of instructions
D.
Is typically characterized by interactive processing and time-slicing of the CPU’s time to allow quick response to each user
·
Question 27
A processor:
A.
Is a device that performs a sequence of operations specified by instructions in memory
B.
Is the device where information is stored
C.
Is a sequence of instructions
D.
Is typically characterized by interactive processing and time-slicing of the CPU’s time to allow quick response to each user
·
Question 28
An assembler is:
A.
A program that places programs into memory and prepares them for execution
B.
A program that automates the translation of assembly language into machine language
C.
A program that accepts a program written in a high-level language and produces an object program
D.
A program that appears to execute a source program as if it were machine language
·
Question 29
An interpreter is:
A.
A program that places programs into memory and prepares them for execution
B.
A program that automates the translation of assembly language into machine language
C.
A program that accepts a program written in a high-level language and produces an object program
D.
A program that appears to execute a source program as if it were machine language
·
Question 30
A compiler is:
A.
A program that places programs into memory and prepares them for execution
B.
A program that automates the translation of assembly language into machine language
C.
A program that accepts a program written in a high-level language and produces an object program
D.
A program that appears to execute a source program as if it were machine language
·
Question 31
A loader is:
A.
A program that places programs into memory and prepares them for execution
B.
A program that automates the translation of assembly language into machine language
C.
A program that accepts a program written in a high-level language and produces an object program
D.
A program that appears to execute a source program as if it were machine language
·
Question 32
Virtual Memory
A.
Is a method of memory allocation by which the program is subdivided into equal portions, or pages, and core is subdivided into equal portions or blocks
B.
Consists of those addresses that may be generated by a processor during execution of a computation
C.
Is a method of allocating processor time
D.
Allows multiple programs to reside in separate areas of core at the time
·
Question 33
Paging
A.
Is a method of memory allocation by which the program is subdivided into equal portions or pages and core is subdivided into equal portions or blocks
B.
Consists of those addresses that may be generated by a processor during execution of a computation
C.
Is a method of allocating processor time
D.
Allows multiple programs to reside in separate areas of core at the time
·
Question 34
Multiprogramming
A.
Is a method of memory allocation by which the program is subdivided into equal portions or pages and core is subdivided into equal portions or blocks
B.
Consists of those addresses that may be generated by a processor during execution of a computation
C.
Is a method of allocating processor time
D.
Allows multiple programs to reside in separate areas of core at the time
·
Question 35
The Memory Buffer Register (MBR)
A.
Is a hardware memory device which denotes the location of the current instruction being executed
B.
Is a group of electrical circuits (hardware) that performs the intent of instructions fetched from memory
C.
Contains the address of the memory location that is to be read from or stored into
D.
Contains a copy of the designated memory location specified by the MAR after a “read” or the new contents of the memory prior to a “write”
·
Question 36
The Memory Address Register (MAR)
A.
Is a hardware memory device which denotes the location of the current instruction being executed
B.
Is a group of electrical circuits (hardware) that performs the intent of instructions fetched from memory
C.
Contains the address of the memory location that is to be read from or stored into
D.
Contains a copy of the designated memory location specified by the MAR after a “read” or the new contents of the memory prior to a “write”
·
Question 37
The Instruction Register (IR)
A.
Is a hardware memory device which denotes the location of the current instruction being executed
B.
Is a group of electrical circuits (hardware) that performs the intent of instructions fetched from memory
C.
Contains the address of the memory location that is to be read from or stored into
D.
Contains a copy of the designated memory location specified by the MAR after a “read” or the new contents of the memory prior to a “write”
·
Question 38
Advantage(s) of using assembly language rather than machine language is (are):
A.
It is mnemonic and easy to read
B.
Addresses are symbolic, not absolute
C.
Introduction of data to the program is easier
D.
All of the above
·
Question 39
Pass 1 of an assembler:
A.
Assigns addresses to all statements in the program
B.
Saves the values assigned to all labels for use in Pass 2
C.
Performs some processing of assembler directives
D.
All of the above
·
Question 40
Pass 2 of an assembler:
A.
Assembles instructions and generates data
B.
Performs processing of assembler directives not done during Pass 1
C.
Writes the object program and the assembly listing
D.
All of the above
·
Question 41
The System/370 assembler language:
A.
Allows the programmer to write base registers and displacements explicitly in the source program
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.
Is a term that refers to the control programs of an operating system
·
Question 42
A base register table:
A.
Allows the programmer to write base registers and displacements explicitly in the source program
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.
Is a term that refers to the control programs of an operating system
·
Question 43
Addressing structure:
A.
Defines the fundamental method of determining effective operand addresses
B.
Are variations in the use of fundamental addressing structures, or some associated actions which are related to addressing
C.
Performs indicated operations on two fast registers of the machine and leaves the result in one of the registers
D.
All of the above
·
Question 44
Addressing modes:
A.
Defines the fundamental method of determining effective operand addresses
B.
Are variations in the use of fundamental addressing structures, or some associated actions which are related to addressing
C.
Performs indicated operations on two fast registers of the machine and leaves the result in one of the registers
D.
All of the above
·
Question 45
The Register-to-Register (RR) instructions:
A.
Have both their operands in the main store
B.
Perform an operation on a register operand and an operand located in the main store, generally leaving the result in the register
C.
Perform indicated operations on two fast registers of the machine and leave the result in one of the registers
D.
All of the above
·
Question 46
The Register-to-Storage (RS) instructions:
A.
Have both their operands in the main store
B.
Perform an operation on a register operand and an operand located in the main store, generally leaving the result in the register
C.
Perform indicated operations on two fast registers of the machine and leave the result in one of the registers
D.
All of the above
·
Question 47
The Storage-to-Storage (SS) instructions:
A.
Have both their operands in the main store
B.
Perform an operation on a register operand and an operand located in the main store, generally leaving the result in the register
C.
Perform indicated operations on two fast registers of the machine and leave the result in one of the registers
D.
All of the above
·
Question 48
Which of the following are Language Processors?
A.
Assemblers
B.
Interpreters
C.
Compilers
D.
All of the above
·
Question 49
The specific tasks Storage Manager performs are:
A.
Allocation/deallocation of storage to programs
B.
Protection of the storage area allocated to a program from illegal access by other programs in the system
C.
The status of each program
D.
Both (A) and (B)
·
Question 50
The process manager (or processor 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