wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Quiz on Processes in Distributed System

Total questions: 60

Worksheet time: 35mins

Name
Class
Date
1.

What is the main role of processes in distributed systems?

a)

D. Mimicking interfaces

b)

C. Providing a building block for managing tasks

c)

B. Handling external events

d)

A. Managing multiple threads efficiently

2.

What is the purpose of thread context switching in distributed systems?

a)

D. To handle external events

b)

A. To save the state of the current process

c)

B. To manage multiple threads within a process

d)

C. To efficiently switch between threads

3.

What is the benefit of using threads in a distributed system to avoid needless blocking?

a)

A. Avoiding idle CPU time

b)

C. Avoiding process switching

c)

D. Handling external events

d)

B. Exploiting parallelism

4.

What is the main trade-off of threads sharing the same address space in a distributed system?

a)

A. Increased efficiency

b)

B. Reduced errors

c)

C. Potential data corruption

d)

D. Improved performance

5.

What is the Thread-Level Parallelism (TLP) range for a typical web browser?

a)

D. 2.5 - 3.0

b)

C. 1.5 - 2.5

c)

B. 1.0 - 1.5

d)

A. 0.5 - 1.0

6.

What is the purpose of virtualization in distributed systems?

a)

A. Enhancing hardware performance

b)

D. Increasing network latency

c)

B. Simplifying code migration

d)

C. Isolating components

7.

What is the main principle of virtualization?

a)

B. Abstracting physical resources

b)

C. Enhancing portability

c)

A. Mimicking hardware interfaces

d)

D. Simplifying code migration

8.

What is the benefit of using a dispatcher/worker model in server environments?

a)

D. Reducing parallelism

b)

B. Handling blocking system calls

c)

C. Increasing network latency

d)

A. Maximizing idle time

9.

What are the three key types of cloud services typically offered by cloud providers?

a)

A) Infrastructure-as-a-Service, Platform-as-a-Service, Software-as-a-Service

b)

B) Data-as-a-Service, Network-as-a-Service, Application-as-a-Service

c)

D) Platform-as-a-Service, Software-as-a-Service, Network-as-a-Service

d)

C) Storage-as-a-Service, Security-as-a-Service, Database-as-a-Service

10.

Which type of server handles one request at a time before moving on to the next request?

a)

A) Concurrent Server

b)

B) Stateless Server

c)

C) Iterative Server

d)

D) Stateful Server

11.

What is the primary limitation of an iterative server?

a)

C) High resource consumption

b)

B) Lack of security features

c)

D) Slow response time

d)

A) Inability to handle multiple requests simultaneously

12.

In the context of server clusters, what is the purpose of TCP handoff?

a)

A) To establish secure connections

b)

B) To distribute the load evenly among servers

c)

C) To handle urgent data requests

d)

D) To improve server performance

13.

What is the key consideration when spreading servers across the Internet?

a)

A) Load balancing

b)

C) Administrative challenges

c)

D) Network latency

d)

B) Data encryption

14.

What is the purpose of the object adapter in object servers?

a)

D) To improve server scalability

b)

C) To handle urgent requests

c)

B) To implement a specific activation policy

d)

A) To manage client connections

15.

What is the significance of using load balancing in distributed systems?

a)

A. Maximizing server utilization

b)

C. Minimizing network latency

c)

D. Reducing server security risks

d)

B. Enhancing data encryption

16.

What is the primary purpose of a stateless server in a distributed system?

a)

C) Storing client session data

b)

B) Managing multiple requests simultaneously

c)

D) Ensuring data consistency

d)

A) Handling each request independently

17.

Why is fault tolerance important in distributed systems?

a)

A. To increase network latency

b)

D. To reduce server performance

c)

B. To handle unexpected failures

d)

C. To limit data encryption

18.

What is the primary purpose of using a dispatcher/worker model in server environments?

a)

A. Maximizing parallelism

b)

B. Handling non-blocking system calls

c)

C. Minimizing network latency

d)

D. Improving server scalability

19.

What is the main advantage of utilizing load balancing in distributed systems?

a)

A. Enhancing server security

b)

B. Minimizing data encryption

c)

C. Maximizing server utilization

d)

D. Reducing network latency

20.

What is the basic idea behind threads in a distributed system?

a)

Threads are physical processors

b)

Threads are software processors that execute a series of instructions

c)

Threads are used for blocking I/O operations

d)

Threads are used for process switching

21.

What is the minimal collection of values stored in registers and memory used for the execution of a series of instructions in a thread context?

a)

Processor context

b)

Thread context

c)

MMU register values

d)

Process context

22.

Why are threads used in a multithreaded process?

a)

To avoid process switching

b)

To structure large applications as a collection of processes

c)

To avoid blocking I/O operations

d)

To exploit parallelism

23.

What is a direct cost of a context switch?

a)

Executing code of the handler

b)

Accessing block D

c)

Messing up the cache

d)

Actual switch and executing code of the handler

24.

What is the main issue when deciding whether an OS kernel should provide threads?

a)

Performance gain vs. increased complexity

b)

Complexity of the kernel

c)

Support for user-level threads

d)

Efficiency of thread operations

25.

What is the principle operation of user and kernel threads combined?

a)

Kernel schedules another kernel thread with a runnable user thread

b)

User thread does system call, kernel thread blocks

c)

User thread calls a blocking user-level operation

d)

Kernel thread remains idle when no user threads to schedule

26.

How does a multithreaded web client hide network latencies?

a)

By reacting to next request while previous one is being replied

b)

By avoiding process switching

c)

By exploiting parallelism

d)

By switching CPU to another thread

27.

What is the principle of virtualization based on?

a)

Isolation of components

b)

Ease of portability

c)

Hardware changes

d)

Mimicking interfaces

28.

What is the main reason for using containers in distributed systems?

a)

Load distribution

b)

Privacy and security

c)

Flexibility in code migration

d)

Performance of migrating virtual machines

29.

What is the main problem when migrating code in heterogeneous systems?

a)

Hardware compatibility

b)

Lack of virtualization

c)

Data transfer speed

d)

Dependency on local hardware and OS

30.

What is the difference between weak and strong mobility in code migration?

a)

Weak mobility moves code and data segment, strong mobility moves entire object

b)

Weak mobility moves only code segment, strong mobility moves code and data segment

c)

Weak mobility moves code and data segment, strong mobility moves execution state

d)

Weak mobility moves execution state, strong mobility moves code and data segment

31.

What is the common approach for request dispatching in server clusters?

a)

Moving the entire object

b)

TCP handoff

c)

Stopping the current virtual machine

d)

Use of DNS

32.

What is the purpose of a cache in a Content Delivery Network (CDN)?

a)

To reduce administrative problems

b)

To store passive data only

c)

To hold application code and data

d)

To improve server performance

33.

What is the main reason for migrating code in distributed systems?

a)

Performance of migrating virtual machines

b)

Privacy and security

c)

Load distribution

d)

Flexibility in code migration

34.

What is the primary purpose of using load balancing in server clusters?

a)

Ensuring data privacy

b)

Improving server performance

c)

Enhancing network security

d)

Optimizing resource utilization

35.

What is the common approach for request dispatching in server clusters?

a)

Moving the entire object

b)

TCP handoff

c)

Stopping the current virtual machine

d)

Use of DNS

36.

What is the main challenge when migrating code in heterogeneous systems?

a)

Hardware compatibility

b)

Lack of virtualization

c)

Data transfer speed

d)

Dependency on local hardware and OS

37.

What distinguishes weak mobility from strong mobility in code migration?

a)

Weak mobility moves code and data segment, strong mobility moves entire object

b)

Weak mobility moves only code segment, strong mobility moves code and data segment

c)

Weak mobility moves code and data segment, strong mobility moves execution state

d)

Weak mobility moves execution state, strong mobility moves code and data segment

38.

What is the key factor to consider when migrating code in heterogeneous systems?

a)

Hardware compatibility

b)

Lack of virtualization

c)

Data transfer speed

d)

Dependency on local hardware and OS

39.

What is the fundamental concept behind virtualization in code migration?

a)

Isolation of components

b)

Ease of portability

c)

Hardware changes

d)

Mimicking interfaces

40.

When deciding whether an OS kernel should provide threads, what is the primary consideration?

a)

Performance gain vs. increased complexity

b)

Complexity of the kernel

c)

Support for user-level threads

d)

Efficiency of thread operations

41.

Why is load balancing essential in a corporate network setup?

a)

Ensuring data privacy

b)

Improving server performance

c)

Enhancing network security

d)

Optimizing resource utilization

42.

The process context in a distributed system primarily contains:

a)

Source code and compiled binaries of the program

b)

The execution state such as registers, program counter, and memory mapping

c)

Only the variables and constants used in the program

d)

Network configuration details for inter-process communication

43.

Why is context switching considered “costly” in distributed systems?

a)

Because it requires rewriting the program code before each execution

b)

Because it permanently deletes the process context each time

c)

Because it involves saving and restoring process state, which consumes CPU cycles

d)

Because it requires communication with remote servers on every switch

44.

Which statement correctly describes user-level threads?

a)

They are managed in user space and are faster to create but block if one thread blocks

b)

They allow true parallelism on multicore systems

c)

They are managed by the OS kernel and provide full preemption

d)

They require hardware virtualization support

45.

Why does multithreading improve responsiveness at the client side?

a)

Because it requires rewriting the program code before each execution

b)

Because it involves saving and restoring process state, which consumes CPU cycles

c)

Because it permanently deletes the process context each time

d)

Because it requires communication with remote servers on every switch

46.

A server that handles thousands of client requests simultaneously most likely relies on:

a)

Single-threaded event loops only

b)

Forking a new process per request

c)

Multithreading with thread pools

d)

Static scheduling of one request at a time

47.

Which of the following is TRUE about containers compared to virtual machines?

a)

Containers run their own OS kernel separate from the host

b)

Containers are slower to start but provide stronger isolation

c)

Containers cannot run multiple applications at once

d)

Containers share the host kernel, making them more lightweight

48.

Which statement best describes strong mobility?

a)

Code and current execution state are transferred, allowing continuation

b)

Code is moved but starts execution from the beginning

c)

Code migration is restricted to homogeneous environments only

d)

Code migration is always faster than VM migration

49.

Which scenario best illustrates code migration in a distributed system?

a)

Copying a user’s entire virtual machine image to a new server

b)

Sending executable code to a remote server to run close to the data

c)

Backing up files from one server to another

d)

Moving a database from HDD to SSD storage

50.

What is the main challenge of maintaining stateful servers across the Internet?

a)

They cannot handle more than one client

b)

They always lose state when restarted

c)

They cannot be migrated to the cloud

d)

They need to synchronize state consistently across failures and network partitions

51.

Why does VM migration sometimes cause downtime in cloud systems?

a)

Because the VM must recompile its source code during migration

b)

Because memory pages and process states must be copied and synchronized

c)

Because the VM cannot operate on heterogeneous hardware

d)

Because containers are always faster and require no migration

52.

Threads managed entirely in user space are called (a)   threads.

53.

The technique of running multiple isolated operating systems on one machine is called (a)   .

54.

Moving an entire virtual machine across hosts is known as VM (a)   .

55.

Servers that keep session information are called (a)   servers.

56.

Containers share the host’s (a)   .

57.

The brief interruption experienced during VM migration is (a)   time

58.

Context switching is most problematic in (a)   -sensitive systems.

59.

A web server that handles many requests without keeping session data is (a)   .

60.

Migrating code to IoT devices reduces (a)   overhead.