wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Microcomputer and Assembly Language Quiz

Total questions: 45

Worksheet time: 23mins

Name
Class
Date
1.

Susan is setting up a new home office and needs a reliable microcomputer for basic tasks such as word processing, internet browsing, and occasional video conferencing. Which type of microcomputer would be most suitable for Susan's needs?

a)

Mainframe computer

b)

Supercomputer

c)

Desktop computer

d)

Embedded system

2.

Susan is setting up a new home office and needs a reliable microcomputer for basic tasks such as word processing, internet browsing, and occasional video conferencing. Susan wants her microcomputer to have good performance for multitasking. Which component should she prioritize?

a)

Graphics Card

b)

Hard Drive Space

c)

RAM (Random Access Memory)

d)

Optical Drive

3.

Alice is developing a small embedded system for a temperature monitoring device. She needs to store the code that controls the device's operations. Which type of memory should Alice use to store the device's operational code?

a)

Data memory (RAM)

b)

Program memory (ROM)

c)

Cache memory

d)

Virtual memory

4.

Alice is developing a small embedded system for a temperature monitoring device. She needs to store the code that controls the device's operations. Alice wants the device's code to remain intact even when the power is turned off. Which characteristic of program memory is important for this requirement?

a)

Volatility

b)

Speed

c)

Non-volatility

d)

Capacity

5.

Bob is working on a project that processes a large amount of real-time data. He needs fast, temporary storage for this data. Which type of memory is best suited for Bob's need for fast, temporary data storage?

a)

Program memory (ROM)

b)

Data memory (RAM)

c)

Flash memory

d)

Hard disk drive

6.

Bob is working on a project that processes a large amount of real-time data. He needs fast, temporary storage for this data. Bob's application requires frequent read and write operations on the data memory. Which characteristic is most important for this memory type?

a)

Non-volatility

b)

High read/write speed

c)

Low power consumption

d)

Large storage capacity

7.

Emma is working on a firmware update for a smart device. She needs to ensure the update is stored permanently. Which type of memory should Emma use to store the firmware update so it remains after a power cycle?

a)

Data memory (RAM)

b)

Program memory (EEPROM)

c)

Cache memory

d)

Virtual memory

8.

Emma is working on a firmware update for a smart device. She needs to ensure the update is stored permanently. Emma needs to test the firmware update before permanently writing it to memory. Which type of memory should she use for testing?

a)

Data memory (RAM)

b)

Program memory (ROM)

c)

Flash memory

d)

Cache memory

9.

Jane is writing an assembly language program and needs to convert her source code into machine code. Which tool does Jane need to use to convert her assembly language source code into machine code?

a)

Linker

b)

Loader

c)

Assembler

d)

Debugger

10.

Jane is writing an assembly language program and needs to convert her source code into machine code. After assembling her code, Jane gets an object file. What is the purpose of this file?

a)

It is an executable file ready to run.

b)

It contains the source code with debug information.

c)

It contains machine code but is not yet linked.

d)

It is a backup of the source code.

11.

Bob has multiple object files and needs to combine them into a single executable. Which tool should Bob use to combine multiple object files into a single executable?

a)

Assembler

b)

Loader

c)

Debugger

d)

Linker

12.

Jane is writing an assembly language program and needs to convert her source code into machine code. Bob's program relies on external libraries. Which role does the linker play in this context?

a)

It converts the source code to machine code.

b)

It loads the program into memory.

c)

It resolves addresses and combines code from libraries with the program.

d)

It finds and fixes errors in the source code.

13.

Alice is preparing her program to run on her computer and needs to load it into memory. Which tool is responsible for loading the executable program into memory for execution?

a)

Assembler

b)

Linker

c)

Loader

d)

Debugger

14.

Alice is preparing her program to run on her computer and needs to load it into memory. The loader needs to know where to place the executable in memory. What information is essential for this process?

a)

Source code locations

b)

Machine code instructions

c)

Memory addresses

d)

Debug symbols

15.

Charlie is facing issues with his program and needs to find and fix errors. Which tool should Charlie use to step through his code and inspect variables to find errors?

a)

Assembler

b)

Linker

c)

Loader

d)

Debugger

16.

Charlie is facing issues with his program and needs to find and fix errors. Charlie wants to set breakpoints in his code to halt execution at specific points. Which feature of the debugger allows this?

a)

Memory mapping

b)

Symbol resolution

c)

Breakpoint setting

d)

Code optimization

17.

Dave wants to test his assembly language program on a different architecture than his development machine. Which tool allows Dave to emulate a different hardware architecture for testing his program?

a)

Assembler

b)

Linker

c)

Loader

d)

Emulator

18.

Dave wants to test his assembly language program on a different architecture than his development machine. Dave's program works on his emulator but fails on the actual hardware. What could be a possible reason?

a)

The assembler produced incorrect machine code.

b)

The linker did not properly resolve external libraries.

c)

The loader did not load the program correctly.

d)

The emulator might not perfectly mimic the actual hardware environment.

19.

Emma is optimizing her assembly code to improve execution speed. Which tool can Emma use to find the most time-consuming parts of her code?

a)

Assembler

b)

Profiler

c)

Loader

d)

Linker

20.

Emma is optimizing her assembly code to improve execution speed. Emma is using an assembler directive to define a constant value. What is the purpose of this directive?

a)

To allocate space for variables

b)

To include external libraries

c)

To specify a fixed value in the program

d)

To optimize the code

21.

Frank is managing a large project with multiple modules and needs to manage dependencies between them. Which tool should Frank use to ensure that all module dependencies are correctly resolved?

a)

Assembler

b)

Linker

c)

Loader

d)

Debugger

22.

Frank is managing a large project with multiple modules and needs to manage dependencies between them. Frank's project uses dynamic linking. What is the primary advantage of dynamic linking?

a)

Faster program execution

b)

Reduced memory usage

c)

Easier updates to shared libraries

d)

Simpler debugging

23.

Gina is debugging an assembly language program that crashes unexpectedly. Which feature of a debugger allows Gina to see the values of all registers at the point of the crash?

a)

Breakpoint setting

b)

Watchpoints

c)

Register inspection

d)

Code stepping

24.

Gina is debugging an assembly language program that crashes unexpectedly. Gina suspects a memory corruption issue. Which debugger feature can help her detect when specific memory locations are accessed or modified?

a)

Breakpoints

b)

Watchpoints

c)

Profiling

d)

Disassembly

25.

Henry needs to test his assembly language program in an environment that mimics a different operating system. Which tool should Henry use to create this testing environment?

a)

Assembler

b)

Linker

c)

Loader

d)

Emulator

26.

Henry needs to test his assembly language program in an environment that mimics a different operating system. Henry's program runs slower in the emulator than expected. What is a likely reason for this?

a)

The assembler produced inefficient code.

b)

The linker did not optimize the executable.

c)

The loader is not placing the program correctly in memory.

d)

Emulators generally have performance overhead compared to actual hardware.

27.

Irene is preparing her assembly language program for deployment and needs to ensure it runs correctly on different systems. Which tool can Irene use to simulate different hardware configurations?

a)

Assembler

b)

Linker

c)

Loader

d)

Emulator

28.

Irene is preparing her assembly language program for deployment and needs to ensure it runs correctly on different systems. Irene needs to make sure her program can load dynamically linked libraries at runtime. Which process is responsible for this task?

a)

Assembling

b)

Linking

c)

Loading

d)

Debugging

29.

Alex is writing an assembly language program and needs to define a constant value for the length of an array. Which assembler directive should Alex use to define a constant value?

a)

EQU

b)

DB

c)

ORG

d)

END

30.

Alex is writing an assembly language program and needs to define a constant value for the length of an array. Alex wants to ensure the constant value is named LENGTH. How should he write this directive?

a)

LENGTH DB 10

b)

LENGTH EQU 10

c)

LENGTH ORG 10

d)

LENGTH END 10

31.

Brian needs to allocate memory for a byte array in his assembly program. Which assembler directive should Brian use to allocate a block of memory for the byte array?

a)

EQU

b)

DB

c)

ORG

d)

DW

32.

Brian needs to allocate memory for a byte array in his assembly program. Brian wants to initialize an array with the values 1, 2, and 3. Which directive should he use?

a)

ARRAY DB 1, 2, 3

b)

ARRAY DW 1, 2, 3

c)

ARRAY EQU 1, 2, 3

d)

ARRAY ORG 1, 2, 3

33.

Cindy is working on an assembly program where she needs to specify the starting address of her code. Which assembler directive should Cindy use to set the starting address of her code?

a)

EQU

b)

DB

c)

ORG

d)

END

34.

Cindy is working on an assembly program where she needs to specify the starting address of her code. Cindy wants to start her code at address 1000h. How should she write this directive?

a)

ORG 1000h

b)

EQU 1000h

c)

DB 1000h

d)

DW 1000h

35.

David is defining a data section in his assembly program. Which directive is typically used to mark the beginning of a data section?

a)

CODE

b)

DATA

c)

ORG

d)

DB

36.

David is defining a data section in his assembly program. David wants to define a word (2 bytes) variable initialized to the value 1234h. Which directive should he use?

a)

DB 1234h

b)

DW 1234h

c)

EQU 1234h

d)

ORG 1234h

37.

Emma needs to include comments in her assembly code to make it more understandable. Which symbol is commonly used to start a comment in assembly language?

a)

;

b)

#

c)

//

d)

--

38.

Emma needs to include comments in her assembly code to make it more understandable. Emma wants to comment on the initialization of a register. How should she write this?

a)

MOV AX, 0x1234 // Initialize AX

b)

MOV AX, 0x1234 # Initialize AX

c)

MOV AX, 0x1234 ; Initialize AX

d)

MOV AX, 0x1234 -- Initialize AX

39.

Frank needs to define a label for a loop in his assembly program. Which assembler directive or syntax is used to define a label?

a)

LABEL:

b)

LABEL EQU

c)

LABEL ORG

d)

LABEL DB

40.

Frank needs to define a label for a loop in his assembly program. Frank wants to define a label called LOOP_START. How should he write this?

a)

LOOP_START EQU

b)

LOOP_START:

c)

LOOP_START ORG

d)

LOOP_START DB

41.

Jack is working on a program where he needs to reserve uninitialized memory space. Which assembler directive reserves a specified amount of uninitialized memory?

a)

DB

b)

DW

c)

RESB

d)

EQU

42.

Jack is working on a program where he needs to reserve uninitialized memory space. Jack wants to reserve 10 bytes of uninitialized memory. How should he write this directive?

a)

RESB 10

b)

DB 10

c)

DW 10

d)

EQU 10

43.

Alex is writing an assembly program that calls a procedure located in the same code segment. Which type of procedure call should Alex use for a procedure within the same code segment?

a)

Far call

b)

Near call

c)

Macro call

d)

External call

44.

Alex is writing an assembly program that calls a procedure located in the same code segment. What is a key characteristic of a near procedure call?

a)

It includes the segment address.

b)

It uses only the offset address.

c)

It can call procedures in other segments.

d)

It requires a larger instruction size.

45.

Alex is writing an assembly program that calls a procedure located in the different code segment. Which type of procedure call should Brian use for a procedure in a different code segment?

a)

Far call

b)

Near call

c)

Macro call

d)

Inline call