Search Header Logo

ICT170 - Q5

Authored by Ivan Villarosa

Computers

University

Used 30+ times

ICT170 - Q5
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

15 mins • 1 pt

Which is easier to program in, C or Assembly language?

C

Assembly language

2.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

What is the purpose of the x86 Assembly language JMP instruction?

The JMP instruction directs program flow if ZF is set.

The JMP instruction directs program flow to the label if ZF is set

The JMP instruction directs program flow to the label.

The JMP instruction directs program flow if CF is set.

3.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

What is the purpose of the x86 Assembly language LOOP instruction?

LOOP Decrements ECX, if ECX doesn't equal 0 it branches to a label

LOOP Increments ECX, if ECX doesn't equal 1 it branches to a label

LOOP Decrements ECX, if ECX doesn't equal 2 it branches to a label

LOOP Increments ECX, if ECX doesn't equal 10 it branches to a label

4.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

What is the purpose of the x86 Assembly language CMP instruction?

The CMP instruction subtracts one operand from the other. The results are stored in the FLAGS register.

The CMP instruction adds two operands. The results are stored in the FLAGS register.

The CMP instruction Increments an operand.

The CMP instruction subtracts one operand from the other and jumps to a label.

5.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

What does the x86 Assembly language FLAG ZF represent?

The ZF flag is set to 1 if the difference between the two CMP operands is 0.

The ZF flag is set to 1 if the difference between the two CMP operands is 100.

The ZF flag is set to 1 if the difference between the two CMP operands is 1.

The ZF flag is set to 0 if the difference between the two CMP operands is 0.

6.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

What does the x86 Assembly language JZ do?

branches only if ZF is set

branches only if ZF is unset

branches only is JO is set

branches only is JO is unset

7.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

What is the value of the ZF and CF FLAGS after “CMP 0 0”?

ZF is 2 and CF is 2.

ZF is 1 and CF is 1.

ZF is 0 and CF is 0.

ZF is 1 and CF is 0.

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?