Computer Science :: All Aptitude Test ::

1.The extension file that is must for a file to be accepted by the LINK as a valid object file is
A. .OBJ file
B. .EXE file
C. .MASM file
D. .OBJ file

2. What is the content of Stack Pointer?
A. Address of the current instruction
B. Address of the next instruction
C. Address of the top element of the stack
D. Address of the current instruction

3. In a two pass assembler the object code generation is done during the?
A. Second pass
B. First pass
C. Zeroeth pass
D. Second pass

4. In a two-pass assembler, the task of the Pass II is to
A. eparate the symbol, mnemonic opcode and operand fields
B. build the symbol table
C. construct intermediate code
D. eparate the symbol, mnemonic opcode and operand fields

5.Which of the following are language processors?
A. assembler
B. compilers
C. interpreter
D. assembler

6.Assembly language is easier to understand as to compared to machine language program because:
A. Offers mnemonics
B. Symbolic names for addressing
C. Offers opcodes and operands
D. Offers mnemonics

7.System programs such as compiler are designed as that they are:
A. re-enterable
B. non-reusable
C. serially usable
D. re-enterable

8.Programming language in which there is a very strong correspondence between the language and the architecture's machine code instructions is termed as:
A. Machine language
B. Assembly language
C. high level language
D. Machine language

9.Assembly language programs are written using
A. Hex code
B. Mnenonics
C. ASCII code
D. Hex code

10.Binder performs the functions of:
A. Allocation
B. Relocation
C. linking
D. Allocation

11.The instruction format ‘register to register’ has a length of:
A. 2 bytes
B. 1 byte
C. 3 bytes
D. 2 bytes

12. Number of machine cycles required for RET instruction in 8085 microprocessor is:
A. 1
B. 2
C. 3
D. 1

13. Context free language can be recognized by:
A. finite state automation
B. linear bounded automation
C. non-deterministic
D. finite state automation

14.Translator for low level programming language were termed as
A. Assembler
B. Compilers
C. Linker
D. Assembler

15. For execution of an interrupt applied at INTR, number of states required by 8085 Microprocessor are
A. 4
B. 6
C. 12
D. 4

16. In which addressing mode the operand is given explicitly in the instruction ?
A. Absolute mode
B. Immediate mode
C. Indirect mode
D. Absolute mode

17.An assembly program contains:
A. Imperative statements and assembler directives
B. Imperative and declarative statement
C. Imperative and declarative statement as well as assembler directive
D. Imperative statements and assembler directives

18.Assembly language uses:
A. hex code
B. binary code
C. mnemonics
D. hex code

19.Operation code field is present in :
A. programming language instruction
B. assembly language instruction
C. machine language instruction
D. programming language instruction

20.Operation code field is present in :
A. programming language instruction
B. assembly language instruction
C. machine language instruction
D. programming language instruction

21.The instruction “JUMP” belongs to:
A. sequential control flow instructions
B. control transfer instructions
C. branch instructions
D. sequential control flow instructions

22.Instructions performing actions in assembly language are called
A. imperative statements
B. declarative statements
C. directive statements
D. imperative statements

23.The instruction DEC N inform the assembler to:
A. Decrement the content of N
B. Decrement the data addressed by N
C. Convert signed decimal number to binary
D. Decrement the content of N

24.To overcome the problems of the assembler in dealing with branching code we use:
A. Interpreter
B. Debugger
C. Op-Assembler
D. Interpreter

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

26.The purpose of the ORIGIN directive is:
A. To indicate the starting position in memory, where the program block is to be stored
B. To indicate the starting of the computation code
C. To indicate the purpose of the code
D. To indicate the starting position in memory, where the program block is to be stored

27.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

28.Assembly language:
A. uses alphabetic codes in place of binary numbers used in machine language
B. is the easiest language to write programs
C. need not be translated into machine language
D. uses alphabetic codes in place of binary numbers used in machine language

29.In Assembly language programming, minimum number of operands required for an instruction is/are:
A. One
B. Two
C. Both b and c
D. One

30.Advantage of using assembly language rather than machine language is that:
A. it is mneomonic and easy to read
B. addresses any symbolic not absolute
C. introduction of data to program is easier
D. it is mneomonic and easy to read


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