You are on page 1of 9

Sample Paper

FINALTERM EXAMINATION
Fall 2022
CS401 - Computer Architecture and Assembly Language programming

Time: 90 min
Marks: 60

[ 40 sample MCQs each of Marks 01]

Question No: 1 (Marks: 01) - Please choose the correct option


1. What is Assembly language?
 High-level programming language
 Low-level programming language.
 Machine language.
 Object-oriented programming language

2. What is the purpose of an Assembly language?


 To provide a more human-readable representation of machine code.
 To write programs for high-level programming languages Machine
language.
 To provide a graphical interface for programming
 To write web applications

3. Which of the following is a feature of Assembly language?


 Abstraction
 Portability
 Direct access to hardware resources
 Complex data structures

4. What is the basic unit of an Assembly language program?


 Instruction
 Procedure
 Statement
 Function

5. What is the basic unit of an Assembly language program?


 Instruction
 Procedure
 Statement
 Function

6. How does Assembly language differ from machine code?


 Assembly language uses symbolic names for instructions and data, while
machine code uses numeric codes
 Assembly language is portable, while machine code is not
 Assembly language is faster than machine code
 Assembly language is more secure than machine code

7. What is an Assembly language label?


 A symbolic name for a memory location
 A symbolic name for a register
 A symbolic name for a constant value
 A symbolic name for a function

8. What is an Assembly language directive?


 An instruction that defines the layout of memory.
 An instruction that defines the layout of a data structure
 An instruction that defines the behavior of the Assembly language
program
 An instruction that defines the layout of a user interface

9. What is the purpose of an Assembly language pseudo-instruction?


 To provide a more convenient way to perform common operations
 To provide a way to perform operations that are not supported by the
underlying hardware
 To provide a way to write Assembly language programs in a high-level
programming language
 To provide a way to write Assembly language programs in a web-based
programming language

10. What is the role of the assembler in Assembly language programming?


 To convert Assembly language instructions into machine code
 To provide a user interface for writing Assembly language programs
 To provide a debugging environment for Assembly language programs
 To provide a way to write Assembly language programs in a high-level
programming language

11. What is the main advantage of using Assembly language over machine code?
 Improved readability and maintainability
 Improved performance
 Improved security
 Improved compatibility
12. How does Assembly language help in writing low-level code?
 Assembly language provides a symbolic representation of machine
instructions
 Assembly language provides a more user-friendly interface for writing
machine code
 Assembly language provides a more powerful set of instructions than
machine code
 Assembly language provides a way to write machine code in a high-level
programming language

13. What is the purpose of an Assembly language macro?


 To define a sequence of Assembly language instructions that can be
reused
 To define a variable in Assembly language
 To define a function in Assembly language
 To define a data structure in Assembly language

14. What is the difference between a register and a memory location in Assembly
language?

 Registers are a limited set of fast storage locations within the CPU, while
memory locations are larger, slower storage locations in external memory
 Registers are larger, slower storage locations in external memory, while
memory locations are a limited set of fast storage locations within the CPU
 Registers and memory locations are the same thing
 Registers are used for data storage, while memory locations are used for
code storage

15. ALU Stands for


 Arithmetical and Logical unit
 Arithmetic and Logic Unit
 Authentic and Logic Unit
 Arithmetic and logical unit

16. Size of data bus in IAPX88 is


 8 bit
 16 bit
 32 bit
 64 bit

17. Which of the followings is a index register


 BX
 SI
 SP
 SS

18. Maximum memory IAPX88 can access is


 1 KB
 10 KB
 100 kb
 1 MB
19. Which of the following instructions is an example of direct addressing
 mov ax,[num1]
 mov ax,[bx]
 mov ax,0x123
 mov ax,123

20. Which of following cannot be used to store the address of data


 BX
 BP
 SP
 Stack

21. Which of following is an example of Based Register Indirect + Offset


 mov [bx+300],ax
 mov [si+300],ax
 mov [ax+300],ax
 mov [di+300],ax

22. Which of following jumps check sign flag


 JS
 JP
 JNO
 JE

23. Which jump is used to jump from one segment to other segments
 Near
 Far
 Short
 Any jump can be used for this purpose

24. In _________ the most significant bit is copied to the carry flag and is inserted from
the right, causing every bit to move one position to the left
 ROL
 SHR
 ROR
 SHL

25. ADC has _______ operands


 1
 2
 3
 4
26. Which of following instruction provides non-destructive subtraction
 TEST
 AND
 SUB
 DEC

27. With call instruction ____ is decremented by 2


 IP
 BP
 SP
 Stack

28. The interpretation of any character is performed by


 Monitor
 VGA
 LED
 LAN

29. Top of the stack is pointed by


 DS
 SS
 ES
 CS

30. The default association of BP is with


 BP
 SP
 Stack
 IP

31. For 32 bit division in DIV instruction, 16 bit quotient is stored in


 AX
 BX
 CX
 DX

32. Which operating system was the Intel 8088 processor used in initially?

 MS-DOS
 Windows 1.0
 Apple Mac OS
 Linux
33. LDS stands for
 Load Data Segment
 Laid Data Segment
 Load Direct Segment
 Load Data Stack

34. What type of computer architecture is optimized for reducing the number of
instructions in the instruction set and the cycle time?

 Von Neumann architecture


 CISC architecture
 RISC architecture
 Big Endian memory organization

35. MOVS has _________ forms


 1
 2
 3
 4

36. What is the name given to the model for a stored-program computer consisting of a
CPU, main memory, and input/output devices?
 RISC architecture
 Big Endian memory organization
 Von Neumann architecture
 CISC architecture

37. Which memory organization stores the least significant byte at the lowest memory
address?

 RISC architecture
 Big Endian memory organization
 Von Neumann architecture
 Little Endian

38. What is the technique used in computer architecture to increase the instruction
throughput by dividing the instruction execution into multiple stages?
 Von Neumann architecture
 CISC architecture
 Pipelining
 RISC architecture

39. What type of computer architecture provides a large number of instructions, often
with multiple operations within a single instruction?
 RISC architecture
 Little Endian memory organization
 CISC architecture
 Von Neumann architecture

40. What was the clock speed of the Intel 8088 processor?
 4.77 MHz
 8 MHz
 10 MHz
 12 MHz

….……………………………………………………………………………………….…

[Next, provide 06 sample questions each of Marks 03]

Question No: 41 (Marks: 03)


1. What is the difference between an instruction mnemonic and its opcode?

Answer

Question No: 42 (Marks: 03)

2. How MOV instruction is different from MOVS.

Answer

Question No: 43 (Marks: 03)

3. Write and assembly language code on physical and logical addresses in


assembly language using an example

Answer

Question No: 44 (Marks: 03)


4. What is the role of the BIOS in string printing in assembly language?

Answer

Question No: 45 (Marks: 03)

5. What is the purpose of clearing the screen in assembly language?

Answer

Question No: 46 (Marks: 03)

6. What is Von Neumann architecture?

Answer

[Next, provide 04 sample questions each of Marks 05]

Question No: 47 (Marks: 05)


1. Write instructions that perform the following operations.
a. Copy BL into AL
b. Copy CX into AX
c. Store 0x12 into AX
d. Store 0x1234 into DX
e. Copy Al into B`X
Answer

Question No: 48 (Marks: 05)


2- What is pipelining in computer architecture?

Answer

Question No: 49 (Marks: 05)


3- Write and assembly language code on physical and logical addresses in
assembly language using an example.
Answer

Question No: 50 (Marks: 05)


4- Write and assembly language code to print a table of 10.

Answer

You might also like