wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CSA Final (csa_13-27)

Total questions: 102

Worksheet time: 51mins

Name
Class
Date
1.

Choose the physical characteristic(s) of disk systems

a)

Head Mechanism

b)

Platters

c)

Disk Size

d)

Sides

e)

Disk system implementstion

2.

Choose the components of SSD

a)

Controller

b)

Addressing

c)

Data buffer/cache

d)

Data size

e)

Memory hierarchy

3.

Choose the legal name(s) in assembly

a)

@variable_name

b)

variable?

c)

variable&name

d)

variable name

e)

1variable

4.

In two-operand instruction, the first operand is source and the second operand is destination

a)

true

b)

false

5.

An instruction may have one or more operands

a)

true

b)

false

6.

In assembly language you can express data only in binary and decimal

a)

true

b)

false

7.

Which symbol you should use to leave the variable uninitialized

(a)  

8.

In assembly language, you can skip the name of variable

a)

true

b)

false

9.

Choose the correct syntax of variable declaration in assembly

a)

variable_name type initial_valuee

b)

type variable_name initial_vaule

c)

variable_name type initial_value

d)

type initial_value variable_name

10.

Choose the definition of code segment in assembly

a)

Contains a program's instructions

b)

A block of memory to store a stack

c)

All variable definitions

11.

Choose the definition of data segment in assembly

a)

All variable definitions

b)

A block of memory to store a stack

c)

Contains a program's instructions

12.

Choose the definition of stack segment in assembly

a)

A block of memory to store a stack

b)

All variable definitions

c)

Contains a program's instructions

13.

There is no memory allocated for constants in assembly language

a)

true

b)

false

14.

Which keyword you should use in order to define a constant in assembly language

a)
EQU
b)

DD

c)

CONST

d)

EQ

e)

DW

15.

In assembly statement name and comment are mandatory

a)

true

b)

false

16.

There are 3 approaches of deadlock avoidance

a)

true

b)

false

17.

There are 2 policies of deadlock prevention

a)

true

b)

false

18.

Choose the correct approach for the following definition "involves recognizing when deadlock has occurred, and trying to recover"

a)

Deadlock detection and recovery

b)

Deadlock avoidance

c)

Deadlock prevention

19.

Choose the correct approach for the following definition "involves making dynamic choices that guarantee prevention"

a)

Deadlock avoidance

b)

Deadlock prevention

c)

Deadlock detection and recovery

20.

Choose the correct approach for the following definition "adopting a static policy that disallows one of the four conditions above"

a)

Deadlock prevention

b)

Deadlock detection and recovery

c)

Deadlock avoidance

21.

There are 4 approaches of dealing with deadlock

a)

true

b)

false

22.

Choose the correct answer for the following definition "A closed chain of processes exists, such that each process is blocked waiting for a resource held by another process in the set"

a)
Circular wait
b)

Mutual exclusion

c)

No preemption

d)

Hold and wait

23.

Choose the correct answer for the following definition: "No process can be forced to release a resource"

a)
No preemption
b)

Mutual exclusion

c)

Hold and wait

d)

Circular wait

24.

Choose the correct answer for the following definition "A process may hold some resources while waiting for others"

a)
Hold and wait
b)

Circular wait

c)

No pre-emption

d)

Mutual exclusion

25.

Choose the correct answer for the following definition "Only one process may use a resource at one time"

a)

Circular wait

b)

No preemption

c)

Mutual exclusion

d)

Hold and wait

26.

What is the deadlock?

a)

Permanent blocking of a set of processes that either compete for global resources or communicate with each other

b)

Interleaving of processes in time to give the appearance of simultaneous execution

c)

When one process is inside a critical section of code, oth-
er processes must be prevented from entering that section o Processes "communicate" via global counters that are initialized to a positive integer and that can be accessed only through two atomic operations

27.

Deadlock occurs when each process in the set is blocked awaiting an event that can be triggered only by another blocked process in the set

a)

true

b)

false

28.

In which of the following approaches there is no shared data?

a)
Message passing
b)

Mutual exclusion

c)

Monitors

d)

Semaphores

29.

Choose the correct answer for the following definition "Synchronization between processes is defined by the blocking policy attached to the sending and receiving of messages"

a)
Message passing
b)

Mutual exclusion

c)

Monitors

d)

Semaphores

30.

Monitors are similar to classes in java and has methods and fields

a)

true

b)

false

31.

In atomic operations semSignal(x) and semWait(x), what is the 'x'?

a)

The number of processes that can execute critical section

b)

The number of processes

c)

The number of monitors

d)

No correct answer

32.

When using semaphores, processes communicate using messages

a)

true

b)

false

33.

We can implement mutex through the OS or using programming languages

a)

true

b)

false

34.

Choose the correct answer for the following definition "When one process is inside a critical section of code, other processes must be prevented from entering that section"

a)

Mutual exclusion

b)

Semaphores

c)

Monitors

d)

Message passing

e)

Critical section

35.

Moore's law: "The cost of a chip has remained virtually unchanged during this period of rapid growth in density. This means that the cost of computer logic and memory circuitry has increasing at a dramatic rate"

a)

true

b)

false

36.

What is a Latency?

a)

is time for a single access - Main memory latency is usually >> than processor cycle time

b)

is the number of accesses per unit time - If m instructions are loads/stores, 1 + m memory accesses per instruction, CPI = 1 requires at least 1 + m memory accesses per cycle

c)

is amount of data that can be in flight at the same time (Little's Law)

37.

Least Recently Used (LRU):

a)

cache state must be updated on every access

b)

Used in highly associative caches

c)

FIFO with exception for most recently used block(s)

38.

Reduce Miss Rate: Large Cache Size. Empirical Rule of Thumb:

a)

If cache size is doubled, miss rate usually drops by about 2

b)

Direct-mapped cache of size N has about the same miss rate as a two-way set- associative cache of size N/2

c)

None of them

39.

Reduce Miss Rate: High Associativity. Empirical Rule of Thumb:

a)

Direct-mapped cache of size N has about the same miss rate as a two-way set- associative cache of size N/2

b)

If cache size is doubled, miss rate usually drops by about 2

c)

None of them

40.

Exploit temporal locality:

a)

by remembering the contents of recently accessed locations

b)

by fetching blocks of data around recently accessed locations

c)

None of them

41.

Exploit spatial locality:

a)

by fetching blocks of data around recently accessed locations

b)

by remembering the contents of recently accessed locations

c)

None of them

42.

What is the access time?

a)

Time between when a read is requested and when the desired word arrives

b)

The minimum time between requests to memory.

c)

Describes the technology inside the memory chips and those innovative, internal organizations

d)

None of them

43.

What is the cycle time?

a)

The minimum time between requests to memory.

b)

Time between when a read is requested and when the desired word arrives

c)

The maximum time between requests to memory.

d)

None of them

44.

What is kernel process?

a)

Provide at least two modes, indicating whether the running process is a user process or an operating system process

b)

Provide at least five modes, indicating whether the running process is a user process or an operating system process

c)

Provide a portion of the processor state that a user process can use but not write

d)

None of them

45.

How many physical characteristics of disk systems are there?

a)

4

b)

5

c)

2

d)

3

e)

6

46.

How many categories of process management are there?

a)

3

b)

2

c)

4

d)

5

e)

1

47.

According to Moore's law, has the cost of a chip remained virtually unchanged during the period of rapid growth in density?

a)

False

b)

True

48.

Concurrency offers genuine simultaneous execution

a)

True

b)

False

49.

How many approaches of mutex implementation are there?

a)

3

b)

4

c)

2

d)

5

e)

1

50.

Name field of assembly statement is not case sensitive

a)

True

b)

False

51.

Compulsory -

a)

first-reference to a block, occur even with infinite cache

b)

misses that occur because of collisions due to less than full associativity (loop over 3 cache lines)

c)

cache is too small to hold all data needed by program, occur even under perfect replacement policy (loop over 5 cache lines)

52.

Parallelism is interleaving of processes in time to give the appearance of simultaneous execution

a)

True

b)

False

53.

SSD stands for

a)

Solid State Drive

b)

Solid State Driver

c)

Speed State Drive

d)

Speed State Driver

54.

The basic element of a semiconductor memory is:

a)

Memory cell

b)

Cache memory

c)

RAM

d)

DRAM

55.

The use of the _______ defines the third generation of computers.

a)

Small and medium-scale integration

b)

Transistor

c)

Vacuum tube

d)

Large-scale integration

e)

Very-large-scale integration

56.

The use of the _______ defines the first generation of computers.

a)

Vacuum tube

b)

Transistor

c)

Small and medium-scale integration

57.

Processor can simultaneously work on multiple instructions. What is this technique called?

a)

Pipelining

b)

Branch prediction

c)

Data flow analysis

d)

Speculative execution

e)

None of the above

58.

The RAID scheme consists of 7 levels

a)

True

b)

False

59.

In concurrency optimal allocation of resources is difficult

a)

True

b)

False

60.

ENIAC stands for:

a)

Electronic Numerical Integrator and Computer

b)

Electronic Nuclear Integrator and Computer

c)

Encapsulation Numerical Integrator and Commerce

d)

Encapsulation Numerical Integrator and Computer

e)

Electronic Numerical Integer and Computer

61.

Memory is organized into units of data, called records; access must be made in a specific linear sequence

a)

Sequential access

b)

Word

c)

Addressable units

d)

Unit of transfer

e)

Direct access

62.

How many deadlock recovery algorithms are there?

a)

4

b)

3

c)

2

d)

5

e)

1

63.

In concurrency, locating programming errors can't be difficult, because the contexts in which errors occur cannot always be reproduced easily

a)

True

b)

False

64.

RAID stands for

a)

Redundant Array Independent Disk

b)

Random Access Integral Disk

c)

Redundant Access Integral Disk

d)

Random Array Independent Disk

e)

Redundant Access Independent Disk

65.

Employed to hold temporarily the right-hand instruction from a word in memory

a)

Instruction buffer register (IBR)

b)

Memory buffer register (MBR)

c)

Memory address register (MAR)

d)

Instruction register (IR)

e)

Program counter (PC)

66.

SSD is over 10 times faster than the spinning disks in HDD

a)

True

b)

False

67.

Choose the correct answer for the following definition "multiple processes on a system with multiple processors"

a)

Multiprocessing

b)

Multiprogramming

c)

Distributed processing

68.

How many policy conditions for deadlock to be possible are there?

a)

3

b)

4

c)

2

d)

5

e)

1

69.

SSDs are more susceptible to physical shock and vibration

a)

True

b)

False

70.

Cache HIT:

a)

No Write Allocate, Write Allocate

b)

Write Through, Write Back

71.

The use of the _______ defines the second generation of computers.

a)

Transistor

b)

Vacuum tube

c)

Small and medium-scale integration

72.

Contains a word to be stored in memory or sent to the I/O unit, or is used to receive a word from memory or from the I/O unit

a)

Memory buffer register (MBR)

b)

Memory address register (MAR)

c)

Instruction register (IR)

d)

Instruction buffer register (IBR)

e)

Program counter (PC)

73.

Contains the address of the next instruction pair to be fetched from memory

a)

Program counter (PC)

b)

Memory buffer register (MBR)

c)

Memory address register (MAR)

d)

Instruction register (IR)

e)

Instruction buffer register (IBR)

74.

the correct answer for the following definition "When one process is inside a critical section of code, other processes must be prevented from entering that section"

a)

Mutual exclusion

b)

Semaphores

c)

Monitors

d)

Message passing

e)

Critical section

75.

For random-access memory, this is the time it takes to perform a read or write operation

a)

Access time

b)

Memory cycle time

c)

Transfer rate

d)

Performance

e)

All of the above

76.

A processor is driven by a clock with a constant frequency f or, equivalently, a constant cycle time t, where t = 1/f:

a)

Instruction execution rate

b)

Instruction execution cycle

c)

Instruction execution time

d)

Instruction execution period

77.

Choose the correct answer for the following definition "multiple processes on multiple systems"

a)

Distributed processing

b)

Multiprogramming

c)

Multiprocessing

78.

Choose the correct answer for the following definition "multiple processes on a system with a single processor"

a)

Multiprogramming

b)

Multiprocessing

c)

Distributed processing

79.

What does RAID stand for?

a)

Random Array of Independent Disks

b)

Redundant Array of Independent Disks

c)

Redundant Array of Interoperable Disks

d)

Random Access to Independent Disks

80.

What occurs at Instruction fetches when we speak about Common And Predictable Memory Reference Patterns?

a)

n loop iterations

b)

subroutine call

c)

vector access

81.

Choose the component of SSD for the following definition: provides SSD device level interfacing and firmware execution

a)

Controller

b)

Addressing

c)

Data buffer/cache

d)

Error correction

e)

Flash memory components

82.

The time between pulses called?

a)

Cycle time

b)

Clock speed

83.

Specifies the address in memory of the word to be written from or read into the MBR

a)

Memory address register (MAR)

b)

Memory buffer register (MBR)

c)

Instruction register (IR)

d)

Instruction buffer register (IBR)

e)

Program counter (PC)

84.

Contains the 8-bit opcode instruction being executed

a)

Instruction register (IR)

b)

Memory buffer register (MBR)

c)

Memory address register (MAR)

d)

Instruction buffer register (IBR)

e)

Program counter (PC)

85.

In concurrency, sharing global resources safely is difficult

a)

True

b)

False

86.

Measures such as MIPS and MFLOPS have proven adequate to evaluating the performance of processors.

a)

False

b)

True

87.

The "natural" unit of organization of memory

a)

Word

b)

Sequential access

c)

Addressable units

d)

Unit of transfer

e)

Direct access

88.

Average Memory Access Time is equal to?

a)

Hit Time + ( Miss Rate * Miss Penalty )

b)

Hit Time * ( Miss Rate + Miss Penalty )

c)

Hit Time - ( Miss Rate + Miss Penalty )

d)

Hit Time / ( Miss Rate - Miss Penalty )

89.

Operations performed by a processor, such as fetching an instruction, decoding the instruction, performing an arithmetic operation, and so on, are governed by:

a)

a system clock

b)

a system processor

c)

a clock processor

d)

a processor

e)

a clock

90.

What does Moore's law state about the reduction in power and cooling requirements?

a)

True

b)

False

91.

What is a Bandwidth?

a)

a is the number of accesses per unit time - If m instructions are loads/stores, 1 + m memory accesses per instruction, CPI = 1 requires at least 1 + m memory accesses per cycle

b)

is time for a single access - Main memory latency is usually >> than processor cycle time

c)

is amount of data that can be in flight at the same time (Little's Law)

92.

SSDs are susceptible to mechanical wear

a)

True

b)

False

93.

The formula of 'Iron Law' of Processor Performance:

a)

time/program = instruction/program * (cycles/instruction) * time/cycle

b)

time/program = instruction/program * (cycles/instruction) + time/cycle

c)

time/program = instruction/program + (cycles/instruction) * time/cycle

94.

Typically all operations performed by a processor begin with the:

a)

pulse of the clock

b)

pulse of the processor

c)

it begins by itself

d)

both of clock and processor pulse

e)

none of the above

95.

If we talk about storage systems an interaction or transaction with a computer is divided for first what is an "System response time" - ?

a)

The time between when the user enters the command and the complete response is displayed

b)

The time for the user to enter the command

c)

The time from the reception of the response until the user begins to enter the next

96.

What is Computer Architecture?

a)

is the design of the abstraction/implementation layers that allow us to execute information processing applications efficiently using manufacturing technologies

b)

is a group of computer systems and other computing hardware devices that are linked together through communication channels to facilitate communication and resource-sharing among a wide range of users

c)

the programs used to direct the operation of a computer, as well as documentation giving instructions on how to use them

97.

Algorithm for Cache MISS:

a)

Processor issues load request to cache -> Compare request address to cache tags and see if there is a match -> Read block of data from main memory -> Replace victim block in cache with new block -> return copy of data from cache

b)

Processor issues load request to cache -> Read block of data from main memory -> return copy of data from cache

c)

Processor issues load request to cache -> Replace victim block in cache with new block -> return copy of data from cache

98.

What does DDR stands for?

a)

Double data rate

b)

Dual data rate

c)

Double data reaction

d)

None of them

99.

What is a Bandwidth-Delay Product?

a)

is amount of data that can be in flight at the same time (Little's Law)

b)

is time for a single access - Main memory latency is usually >> than processor cycle time

c)

is the number of accesses per unit time - If m instructions are loads/stores, 1 + m memory accesses per instruction, CPI = 1 requires at least 1 + m memory accesses per cycle

100.

Cache MISS:

a)

No Write Allocate, Write Allocate

b)

Write Through, Write Back

101.

Cache Hit -

a)

Write Through - write both cache and memory, generally higher traffic but simpler to design

b)

write cache only, memory is written when evicted, dirty bit per block avoids unnecessary write backs, more complicated

c)

No Write Allocate - only write to main memory

102.

Algorithm for Cache HIT:

a)

Processor issues load request to cache -> Compare request address to cache tags and see if there is a match -> return copy of data from cache

b)

Processor issues load request to cache -> Replace victim block in cache with new block -> return copy of data from cache

c)

Processor issues load request to cache -> Read block of data from main memory -> return copy of data from cache