Computer Science :: All Aptitude Test ::

1.The alternate way of writing the instruction, ADD #5, R1 is ?
A. ADD [5],[R1];
B. ADDI 5,R1;
C. ADDIME 5,[R1];
D. ADD [5],[R1];

2.Instructions which won’t appear in the object program are called as ?
A. Redundant instructions
B. Exceptions
C. Comments
D. Redundant instructions

3.The assembler directive EQU, when used in the instruction: Sum EQU 200 does ?
A. Finds the first occurrence of Sum and assigns value 200 to it
B. Replaces every occurrence of Sum with 200
C. Re-assigns the address of Sum by adding 200 to its original address
D. Finds the first occurrence of Sum and assigns value 200 to it

4.The directive used to perform initialization before the execution of the code is ?
A. Reserve
B. Store
C. Dataword
D. Reserve

5.Which directive is used to specify and assign the memory required for the block of code ?
A. Allocate
B. Assign
C. Set
D. Allocate

6.Which directive specifies the end of execution of a program ?
A. Terminate
B. Stop
C. Return
D. Terminate

7.The last statement of the source program should be ?
A. Stop
B. Return
C. OP
D. Stop

8.When dealing with the branching code the assembler ?
A. Replaces the target with its address
B. Does not replace until the test condition is satisfied
C. Finds the Branch offset and replaces the Branch target with it
D. Replaces the target with its address

9.The assembler stores all the names and their corresponding values in ?
A. Value map Set
B. Symbol Table
C. Special purpose Register
D. Value map Set

10.The assembler stores the object code in ?
A. Main memory
B. Cache
C. RAM
D. Main memory

11.The utility program used to bring the object code into memory for execution is ?
A. Fetcher
B. Linker
C. Loader
D. Fetcher

12.To overcome the problems of the assembler in dealing with branching code we use ?
A. Two-pass assembler
B. Op-Assembler
C. Debugger
D. Two-pass assembler

13.What is operating system ?
A. Link to interface the hardware and application programs
B. Collection of programs that manages hardware resources
C. System service provider to the application programs
D. Link to interface the hardware and application programs

14.To access the services of operating system, the interface is provided by the ?
A. API
B. System calls
C. Library
D. API

15.Which one of the following error will be handle by the operating system ?
A. Lack of paper in printer
B. Connection failure in the network
C. Power failure
D. Lack of paper in printer

16.What is the main function of the command interpreter ?
A. To provide the interface between the API and application program
B. To get and execute the next user-specified command
C. To handle the files in operating system
D. To provide the interface between the API and application program

17.By operating system, the resource management can be done via ?
A. Time and space division multiplexing
B. Time division multiplexing
C. Space division multiplexing
D. Time and space division multiplexing

18.If a process fails, most operating system write the error information to a ?
A. New file
B. Another running process
C. Log file
D. New file

19.Which facility dynamically adds probes to a running system, both in user processes and in the kernel ?
A. DAdd
B. DMap
C. DTrace
D. DAdd

20.Which one of the following is not a real time operating system ?
A. VxWorks
B. Windows CE
C. RTLinux
D. VxWorks

21.The OS X has ?
A. Hybrid kernel
B. Monolithic kernel
C. Microkernel
D. Hybrid kernel

22.The systems which allow only one process execution at a time, are called ?
A. Uni-programming systems
B. Uni-processing systems
C. Uni-tasking systems
D. Uni-programming systems

23.In operating system, each process has its own ?
A. Address space and global variables
B. Open files
C. Pending alarms, signals and signal handlers
D. Address space and global variables

24.In Unix, Which system call creates the new process ?
A. New
B. Create
C. Fork
D. New

25.A process can be terminated due to ?
A. Normal exit
B. Fatal error
C. Killed by another process
D. Normal exit

26.What is the ready state of a process ?
A. When process is using the CPU
B. When process is unable to run until some task has been completed
C. When process is scheduled to run after some execution
D. When process is using the CPU

27.What is inter-process communication ?
A. Communication between two threads of same process
B. Communication within the process
C. Communication between two process
D. Communication between two threads of same process

28.A set of processes is deadlock if ?
A. Each process is blocked and will remain so forever
B. Each process is terminated
C. All processes are trying to kill each other
D. Each process is blocked and will remain so forever

29.A process stack does not contain ?
A. PID of child process
B. Local variables
C. Function parameters
D. PID of child process

30.Which system call returns the process identifier of a terminated child ?
A. Wait
B. Exit
C. Fork
D. Wait


Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers