wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

assemblyLanguageChap3

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is the precedence level of a unary plus operator?

a)

1

b)

2

c)

3

d)

4

2.

Calculate how many bytes for var1 if var1 is defined as

var1 BYTE 10, 10 dup (5), 20

a)

3 bytes

b)

7 bytes

c)

12 bytes

d)

70 bytes

3.

Calculate how many bytes for var2 if var2 is defined as

var2 BYTE 10 DUP ("Hi")

a)

2 bytes

b)

10 bytes

c)

20 bytes

d)

40 bytes

4.

Which of these are not identifier?

a)

myVAR

b)

_myVAR

c)

@myVAR

d)

&myVAR

5.

inc var1

Operand involved in this statement is:

a)

integer constant

b)

constant expression

c)

memory

d)

register

6.

add a, b

b can be any of the followings except:

a)

register

b)

constant

c)

memory

d)

reserved word

7.

Calculate the size of the array as follow:

list WORD 1234h, 2345h, 3456h

a)

ListSize = ($- list)/2

b)

ListSize = $- (list/2)

c)

ListSize = ($- list)/4

d)

ListSize = $- (list/4)

8.

Referring to the Assemble Link Execute cycle, which file is not generated from Step 2 to Step 4?

a)

executable file

b)

object file

c)

link library file

d)

map file

9.

Which of these are not directives?

a)

.data

b)

.code

c)

.stack

d)

.count

10.

Referring to the assemble-link execute cycle, which file is generated after step 2?

a)

.asm

b)

.exe

c)

.obj

d)

.map