GAT Subject :: All Aptitude Test ::

Hassan
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. Chrysamoeba exists in which of the following forms?
A. nonmotile coccoid
B. filamentous
C. amoeboid
D. nonmotile coccoid

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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