ICT170 - Q5

ICT170 - Q5

Assessment

Quiz

Computers

University

Medium

Created by

Ivan Villarosa

Used 30+ times

FREE Resource

Student preview

quiz-placeholder

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.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?