Search Header Logo

MICROASM

Authored by Mel Bautista

Computers

Professional Development

Used 1+ times

MICROASM
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a system call in assembly language?

To define variables

To interact with the operating system

To compile the program

To display an error message

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which instruction is commonly used to invoke a system call in 32-bit Linux Assembly?

call os

sys_call

int 0x80

jmp kernel

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In x86 Assembly, what is placed in the EAX register before int 0x80?

Memory address of data

System call number

Error code

File name

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which register is used to pass the first argument of a system call (like file descriptor in sys_write)?

EAX

ECX

EDX

EBX

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following instruction do? mov eax, 1

Assigns 1 to the AX register

Prepares to call sys_exit

Prints number 1

Calls interrupt handler 1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to define a constant value in assembly?

const num = 5

num: .equ 5

num db 5

define num 5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following declares a byte-sized variable in NASM?

db 10

dw 10

dd 10

resb 10

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?