Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Microcomputer and Programming Quiz

Total questions: 46

Worksheet time: 23mins

Name
Class
Date
1.

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

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

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

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

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.

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.

Which tool should Bob use to combine multiple object files into a single executable?

a)

Assembler

b)

Loader

c)

Debugger

d)

Linker

12.

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.

Which tool is responsible for loading the executable program into memory for execution?

a)

Assembler

b)

Linker

c)

Loader

d)

Debugger

14.

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.

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

Which tool allows Dave to emulate a different hardware architecture for testing his program?

a)

Assembler

b)

Linker

c)

Loader

d)

Emulator

18.

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.

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

Which tool should Frank use to ensure that all module dependencies are correctly resolved?

a)

Assembler

b)

Lin

22.

Which tool should Frank use to ensure that all module dependencies are correctly resolved?

a)

Assembler

b)

Linker

c)

Loader

d)

Debugger

23.

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

24.

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

25.

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

26.

Which tool should Henry use to create this testing environment?

a)

Assembler

b)

Linker

c)

Loader

d)

Emulator

27.

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.

28.

Which tool can Irene use to simulate different hardware configurations?

a)

Assembler

b)

Linker

c)

Loader

d)

Emulator

29.

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

30.

Which assembler directive should Alex use to define a constant value?

a)

EQU

b)

DB

c)

ORG

d)

END

31.

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

32.

Which assembler directive should Brian use to allocate a block of memory for the byte array?

a)

EQU

b)

DB

c)

ORG

d)

DW

33.

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

34.

Which assembler directive should Cindy use to set the starting address of her code?

a)

EQU

b)

DB

c)

ORG

d)

END

35.

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

36.

Which directive is typically used to mark the beginning of a data section?

a)

CODE

b)

DATA

c)

ORG

d)

DB

37.

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

38.

Which symbol is commonly used to start a comment in assembly language?

a)

;

b)

#

c)

//

d)

--

39.

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

40.

Which assembler directive or syntax is used to define a label?

a)

LABEL:

b)

LABEL EQU

c)

LABEL ORG

d)

LABEL DB

41.

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

42.

Which assembler directive reserves a specified amount of uninitialized memory?

a)

DB

b)

DW

c)

RESB

d)

EQU

43.

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

44.

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

45.

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.

46.

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