FCPC - COMPORG - Midterm Exam

FCPC - COMPORG - Midterm Exam

Assessment

Quiz

Created by

ALVIN CERTEZA

Computers

University

1 plays

Hard

Student preview

quiz-placeholder

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the role of the Code Segment (CS) register in x86 assembly?

Holds the address of the next instruction

Points to the current instruction

Manages the program counter

Points to the code segment, including the instructions

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which register is commonly used as an index register for array operations in x86 assembly?

EAX

ECX

EDX

EBX

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In x86 assembly, what is the purpose of the Stack Segment (SS) register?

Points to the top of the stack

Holds the address of the next instruction

Points to the stack segment, including the stack space

Manages the program counter

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which register is commonly used for input/output operations in x86 assembly on Linux?

EAX

EBX

ECX

EDX

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The Data Segment (DS) register in x86 assembly is used to point to:

The current instruction

The data segment, including variables and constants

The stack segment

The code segment

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which system call is used for opening a file in Linux?

open()

read()

write()

close()

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the purpose of the MOV instruction in assembly language?

Perform arithmetic operations

Move data between registers or memory locations

Control program flow

Invoke system calls

Explore all questions with a free account

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?