wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Assembly Language and MIPS Architecture Quiz

Total questions: 15

Worksheet time: 21mins

Name
Class
Date
1.

Which of the following is true about Computer Architecture?

a)

It deals with the physical arrangement of hardware components

b)

It focuses on the structure and behavior of a computer system

c)

It only refers to the software components of a system

d)

It has nothing to do with hardware performance

2.

Which of the following is a characteristic of machine language?

a)

Consists of binary code

b)

Requires less understanding of hardware

c)

Easier to read than assembly language

d)

Portable across different systems

3.

What is the primary function of an assembler?

a)

Combines object files with link libraries

b)

Converts assembly language programs into object files

c)

Allows you to trace the execution of a program

d)

Translates high-level programs to machine code

4.

Which section of an assembly program contains executable instructions?

a)

.DATA

b)

.TEXT

c)

.GLOBL

d)

.BYTE

5.

Which of the following is a feature of assembly language?

a)

Object-oriented programming

b)

Automatic memory management

c)

High-level readability

d)

Direct execution by hardware

6.

What is the purpose of the linker in program development?

a)

To define data and constants

b)

To debug the program

c)

To combine object files into a single executable

d)

To convert assembly language to machine code

7.

Which of the following statements about registers in MIPS32 architecture is true?

a)

Registers are not used in assembly language

b)

There are 16 general-purpose registers

c)

Registers are 64-bit wide

d)

Registers can be referred to by name or number

8.

What is the purpose of the syscall instruction in MIPS?

a)

To define data segments

b)

To obtain services from the operating system

c)

To combine object files

d)

To convert assembly to machine code

9.

Which of the following best describes the MIPS instruction set architecture?

a)

High-Level Instruction Set

b)

General Purpose Instruction Set

c)

Reduced Instruction Set Computer

d)

Complex Instruction Set Computer

10.

What does a mnemonic represent in assembly language?

a)

A memory address

b)

A high-level programming instruction

c)

A low-level machine instruction

d)

A variable name

11.

What is the purpose of .asciiz in MIPS assembly language?

a)

Stores an integer value

b)

Defines a null-terminated string

c)

Allocates memory for floating-point numbers

d)

Specifies an array of integers

12.

What will this MIPS assembly code print?

a)

Hello, MIPS!

b)

"Hello, MIPS!"

c)

Hello, MIPS!\n

d)

Syntax Error

13.

What will this program output? (3pts)

(a)  

14.

What does this MIWhat happens when this code runs?PS code print?

(a)  

15.



(a)