Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

sekrit2

Total questions: 67

Worksheet time: 38mins

Name
Class
Date
1.

MOV CX, 03

wew : MOV AH, 02h

MOV DL 49

INT 21H

LOOP wew

Select All items that are correct 

a)

The assembly code will print number 1 three times

b)

The assembly code will print letter i three times

c)

The assembly code will loop three times based on the value of CX

d)

The assembly code will allow users to enter only number 1 three times

2.

Define a byte-sized data item

a)

Db

b)

Dw

c)

Dd

d)

Dq

3.

Define a word sized data item

a)

Db

b)

Dw

c)

Dd

d)

Dq

4.

Define a double word sized data item

a)

Db

b)

Dw

c)

Dd

d)

Dq

5.

Define a quad word sized data item

a)

Db

b)

Dw

c)

Dd

d)

Dq

6.

Which has 8 bit size?

Select all possible answers

a)

AH

b)

DL

c)

[BX]

d)

CX

7.

MOV AH, 01H

a)

Accept character input until A is entered

b)

Invoke an interrupt function using the specified interrupt number

c)

Compare AL register value with the ASCII value of A

d)

Jump to label wew if the previous comparison is not equal

8.

INT 21H

a)

Accept character input until A is entered

b)

Invoke an interrupt function using the specified interrupt number

c)

Compare AL register value with the ASCII value of A

d)

Jump to label wew if the previous comparison is not equal

9.

CMP AL, 41H

a)

Accept character input until A is entered

b)

Invoke an interrupt function using the specified interrupt number

c)

Compare AL register value with the ASCII value of A

d)

Jump to label wew if the previous comparison is not equal

10.

JNE wew

a)

Accept character input until A is entered

b)

Invoke an interrupt function using the specified interrupt number

c)

Compare AL register value with the ASCII value of A

d)

Jump to label wew if the previous comparison is not equal

11.

How many cycles does a processor take to execute 2 billion instructions with a CPI of 2.5?

a)

5 X 10 ^ 6

b)

5 X 10 ^ 9

c)

4 X 10 ^ 6

d)

4 X 10 ^ 9

12.

CPU

a)

Central Processing Unit

b)

Stores data and instructions

c)

Handles communication with external devices

d)

Connects and allows communication between all computer components

13.

Memory

a)

Central Processing Unit

b)

Stores data and instructions

c)

Handles communication with external devices

d)

Connects and allows communication between all computer components

14.

Input/Output

a)

Central Processing Unit

b)

Stores data and instructions

c)

Handles communication with external devices

d)

Connects and allows communication between all computer components

15.

Motherboard

a)

Central Processing Unit

b)

Stores data and instructions

c)

Handles communication with external devices

d)

Connects and allows communication between all computer components

16.

Which directive has the highest storage capacity

a)

da

b)

dq

c)

dw

d)

db

17.

Given that a memory address can hold a character:

Assuming a sequence of characters being stored starting at address 200. In the given sequence here. ‘s’ is stored at address 200, ‘f’ is stored at address 201 and so on. This is of course following the concept of memory address being represented by hex values.

sfdgetzuqiw0298456$

What address holds a character with hex value of 7A?

(a)  

18.

Given that a memory address can hold a character:

Assuming a sequence of characters being stored starting at address 200. In the given sequence here. ‘s’ is stored at address 200, ‘f’ is stored at address 201 and so on. This is of course following the concept of memory address being represented by hex values.

sfdgetzuqiw0298456$

What is the final address of the last character?

(a)  

19.

Which is NOT TRUE?

a)

None of the above

b)

In MOV AH, 02, requested output is stored in DX

c)

In MOV AH, 01, requested input is stored in AL

d)

In MOV AH, 09, requested string output is stored in DX

20.

Which of the following is/are INVALID

SELECT ALL POSSIBLE ANSWERS

a)

MOV [BX], [202H]

b)

MOV [CX], 41H

c)

MOV CX, AL

d)

MOV AL, [201H]

21.

Memory Addressability

a)

Contents of Memory are addressable by location

b)

Execution is sequential

c)

Data and instructions are within the shared memory

22.

Sequential Execution

a)

Contents of Memory are addressable by location

b)

Execution is sequential

c)

Data and instructions are within the shared memory

23.

Shared Memory Repositories

a)

Contents of Memory are addressable by location

b)

Execution is sequential

c)

Data and instructions are within the shared memory

24.

EAX has 32 bits storage size

a)

TRUE

b)

FALSE

25.

The (a)   instruction in assembly language is used to move data from one location to another within a computer’s memory

26.

Which of the ff is/are VALID?

SELECT ALL POSSIBLE ANSWERS

a)

Int 20 grants an interrupt request

b)

The lower bit accumulator of AX is used to store and determine the Interrupt request

c)

Only one request is granted by a single invoke of int 21

d)

Interrupt Requests are stored and can be remembered when invoked by INT 21

27.

Which concepts is/are supported by Von Neumann Architecture?

SELECT ALL POSSIBLE

a)

Contents of memory are addressable by location

b)

Data and instruction are stored separately to different repositories

c)

Data and instruction are within the shared memory repositories

d)

Execution is sequential

28.

Which is not a component of a computer system in top level?

a)

I/O Module

b)

IR

c)

None of the Above

d)

PC

29.

What is the speedup if a program is 80% parrallelizable on 4 processors?

Calculate the speedup for a program with P = 0.8 and N = 4.

a)

3.5

b)

4.5

c)

2.5

d)

6.5

30.

Maximum Speedup

A program is 90% parallelizable. What is the maximum speedup achievable?

a)

6

b)

4

c)

10

d)

2

31.

It is composed of the bits of opcode and address

a)

memory

b)

instruction

c)

Program Counter

d)

Instruction Register

32.

Which is NOT TRUE about ASSEMBLY LANGUAGE?

a)

the language your computer can speak directly

b)

used for direct hardware manipulation

c)

provides a shorthand coding that can be assembled to work as close in machine level code

d)

None of the above

33.

The (a)   register in X86 assembly language is commonly used for arithmetic operations.

34.

Speedup Calculation

If a program is 70% parallelizable and runs on 8 processors, calculate the speedup

a)

2.58

b)

1.58

c)

0.58

d)

3.58

35.

The (a)   translates assembly language code into machine code that can be executed by the CPU

36.

If a program is 50% parallelizable, what is the maximum possible speed-up?

Use P = 0.5 to calculate the theoretical maximum speed-up.

a)

2

b)

0

c)

4

d)

6

37.

Which of the ff is TRUE about CMP

a)

CMP can be used used in LOOP instructions

b)

CMP works with just JMP to set condition

c)

CMP allows comparison of Registers only

d)

CMP flags the jumps instructions like JE and JNE to validate if condition is met

38.

What is the parallelizable fraction if the speedup on 4 processors is 3?

a)

8/9 or 89%

b)

2/9 or 29%

c)

5/9 or 59%

d)

7/9 or 79%

39.

Cache Memory

a)

Stores frequently accessed data for faster retrieval

b)

Stores both data and instructions for the CPU

c)

Extends the available memory by using secondary storage

d)

Stores data and instructions directly accessible by the CPU

40.

Main Memory

a)

Stores frequently accessed data for faster retrieval

b)

Stores both data and instructions for the CPU

c)

Extends the available memory by using secondary storage

d)

Stores data and instructions directly accessible by the CPU

41.

Virtual Memory

a)

Stores frequently accessed data for faster retrieval

b)

Stores both data and instructions for the CPU

c)

Extends the available memory by using secondary storage

d)

Stores data and instructions directly accessible by the CPU

42.

Register

a)

Stores frequently accessed data for faster retrieval

b)

Stores both data and instructions for the CPU

c)

Extends the available memory by using secondary storage

d)

Stores data and instructions directly accessible by the CPU

43.

CALCULATING CPI

A processor completes 1 billion instructions in 4 seconds with a clock speed of 2 GHz. What is the CPI.

a)

8

b)

12

c)

8.5

d)

10

44.

EXECUTION TIME WITH CPI

A Processor with a clock speed of a 4 GHz and a CPI of 3 executes 500 million instructions. What is the execution time?

a)

0.225 seconds

b)

0.375 seconds

c)

0.314 seconds

d)

0.235 seconds

45.

What is the speedup if a program has no parallelizable portion of (P = 0)

Calculate the speedup when P = 0.

a)

0

b)

1

c)

-1

d)

-2

46.

Instructions

a)

Composed of the bits of opcodes and address

b)

Specifies the operation to be performed

c)

Specifies a location in memory

d)

Binary representation of assembly language instructions

47.

Opcode

a)

Composed of the bits of opcodes and address

b)

Specifies the operation to be performed

c)

Specifies a location in memory

d)

Binary representation of assembly language instructions

48.

Memory Address

a)

Composed of the bits of opcodes and address

b)

Specifies the operation to be performed

c)

Specifies a location in memory

d)

Binary representation of assembly language instructions

49.

Machine Code

a)

Composed of the bits of opcodes and address

b)

Specifies the operation to be performed

c)

Specifies a location in memory

d)

Binary representation of assembly language instructions

50.

MOV DL, AX is a valid movement of data

a)

TRUE

b)

FALSE

51.

AX

a)

Main Accumulator

b)

Use for index of Memory Address

c)

Performs counts specially with Looping

d)

An output register

52.

BX

a)

Main Accumulator

b)

Use for index of Memory Address

c)

Performs counts specially with Looping

d)

An output register

53.

CX

a)

Main Accumulator

b)

Use for index of Memory Address

c)

Performs counts specially with Looping

d)

An output register

54.

DX

a)

Main Accumulator

b)

Use for index of Memory Address

c)

Performs counts specially with Looping

d)

An output register

55.

What is does this assembly code implies ?

MOV AH, 02H

MOV DL, [20BH]

INT 21H

a)

None of the above

b)

A character stored in memory address 20B will be printed

c)

A series of characters stored starting at memory address 20B will be printed

d)

A character with hex value of 20B will be printed

56.

Clock Rate from CPI

If a program with 5 billion instructions has a CPI of 2 and takes 5 second to execute, what is the clock speed of the processor?

a)

4.3 GHz

b)

2 GHz

c)

2.2 GHz

d)

1 GHz

57.

Given:

MOV AH, 01

INT 21

INC AL

INC AL

INC AL

MOV AH, 02

MOV DL, AL

INT 21

INT 20

What is the the if the user entered 1?

a)

1

b)

None of the above

c)

A

d)

3

58.

After the CPU generated an opcode, the next stage in the process is the (a)   where the CPU retrieves the opcode from memory

59.

MOV CX, 03 wew: MOV AH, 02H MOV D, 49 INT 21H LOOP wew

a)

The assembler code will loop three times based on the value of CX. The assembly code will print the number 1 three times

b)

A character stored in memory address 208 will be printed

c)

A string message pointed by the memory address message will be displayed

60.

MOV AH, 02H MOV DL, [20BH] INT 21H

a)

The assembler code will loop three times based on the value of CX. The assembly code will print the number 1 three times

b)

A character stored in memory address 208 will be printed

c)

A string message pointed by the memory address message will be displayed

61.

MOV AH, 09H LEA DX, [msg] INT 21H

a)

The assembler code will loop three times based on the value of CX. The assembly code will print the number 1 three times

b)

A character stored in memory address 208 will be printed

c)

A string message pointed by the memory address message will be displayed

62.

In cache memory, If the address delivered from the CPU is not yet stored, what will most likely happen?

a)

Main Memory will be accessed and a line from cache will be allocated

b)

Address will be ignored and no line will be allocated in the cache

c)

CPU will directly receive it back and perform instruction from main memory

d)

The cache memory will not be accessible

63.

Number of Processors

How many processors are needed to achieve a speedup of 6 if the program is 80% parallelizable?

a)

0.0111

b)

0.0316

c)

0.0211

d)

0.0333

64.

What does the ff Assembly code implies?

wew: MOV AH, 01H

INT 21H

CMP AL, 41H

JNE wew

a)

continuously accept characters input for as long as it is not A

b)

continuously accept characters input for as long as it is A

c)

continuously prints the character A

d)

continuously accept characters input for as long as it is NOT 1

65.

INT 21 terminates the request

a)

TRUE

b)

FALSE

66.

Instruction Count from CPI

A program runs on a 3 GHz processor for 6 seconds with a CPI of 3. How many instructions are executed?

a)

5 X 10 ^ 4

b)

2 X 10 ^ 4

c)

6 X 10 ^ 9

d)

4 X 10 ^ 6

67.

A program is 90% parallelizable. How many processors are needed to achieve a speedup of 8?

Solve for N when P = 0.9 and S = 8

a)

38

b)

36

c)

32

d)

30