Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

MCQs on Distributed Computing

Total questions: 68

Worksheet time: 34mins

Name
Class
Date
1.

What is the primary advantage of distributed computing?

a)

Higher energy efficiency

b)

Improved scalability

c)

Single point of failure

d)

Requires fewer resources

2.

How does a distributed system achieve fault tolerance?

a)

By eliminating backup nodes

b)

Using a single central server

c)

Through data replication and load balancing

d)

By increasing the network latency

3.

In a client-server architecture, what is the role of the client?

a)

To process all incoming requests

b)

To initiate requests and receive responses

c)

To store all application data

d)

To manage load balancing

4.

Which architecture does Bitcoin use?

a)

Client-server

b)

Multitier

c)

Peer-to-peer (P2P)

d)

Event-driven

5.

What is an advantage of a microservices architecture?

a)

Easier scalability

b)

Centralized storage

c)

Single point of failure

d)

Monolithic structure

6.

Event-driven architectures primarily rely on:

a)

Request-response interactions

b)

On-demand code execution

c)

Message queues and event handlers

d)

Centralized databases

7.

Which of the following protocols ensures reliable data transmission?

a)

UDP

b)

TCP

c)

MQTT

d)

CoAP

8.

What is the main advantage of MQTT over HTTP?

a)

More secure connections

b)

Lower overhead

c)

Faster one-time data retrieval

d)

Uses RESTful APIs

9.

Remote Procedure Call (RPC) is commonly used in:

a)

Static web pages

b)

Microservices communication

c)

Batch processing systems

d)

File storage

10.

Push technologies such as WebSockets are useful for:

a)

Processing large batch files

b)

Real-time updates and notifications

c)

Increasing network latency

d)

Storing logs

11.

What is the key difference between parallelism and multithreading?

a)

Multithreading executes tasks in sequence

b)

Parallelism runs tasks on multiple cores, while multithreading shares resources

c)

Parallelism is slower than multithreading

d)

Multithreading requires multiple CPUs

12.

Deadlocks in multithreading occur when:

a)

Threads execute too fast

b)

Two or more threads are waiting for resources indefinitely

c)

The program terminates

d)

The CPU overheats

13.

Which technique helps in preventing deadlocks?

a)

Ignoring resource conflicts

b)

Assigning priorities and using timeouts

c)

Running all threads sequentially

d)

Increasing the number of CPU cores

14.

Which scheduling algorithm serves tasks in the order they arrive?

a)

Round-Robin

b)

Shortest Job First

c)

First-Come, First-Served (FCFS)

d)

Priority-based

15.

A dynamic load balancing system:

a)

Distributes tasks evenly without considering real-time load

b)

Adjusts task distribution based on server performance

c)

Assigns all tasks to a single node

d)

Is less efficient than static load balancing

16.

Which tool is commonly used for task queues in distributed computing?

a)

PostgreSQL

b)

RabbitMQ

c)

Wireshark

d)

Prometheus

17.

Apache Hadoop primarily uses which processing model?

a)

In-memory processing

b)

Event-driven computing

c)

Batch processing

d)

Asynchronous messaging

18.

What makes Apache Spark faster than Hadoop?

a)

Uses in-memory computing

b)

Does not require data replication

c)

Avoids the use of distributed nodes

d)

Uses only a single-threaded approach

19.

MapReduce consists of which three stages?

a)

Input → Process → Output

b)

Map → Shuffle → Reduce

c)

Load → Transform → Export

d)

Request → Response → Cache

20.

Which of the following is an example of real-time big data processing?

a)

Hadoop MapReduce

b)

Spark Streaming

c)

Batch jobs in SQL

d)

Data stored in CSV files

21.

In the scatter-gather-reduce model, what happens in the scatter phase?

a)

Data is collected from all nodes

b)

Data is distributed across multiple nodes

c)

Results are aggregated

d)

Load balancing is performed

22.

The reduce phase in distributed computing is used for:

a)

Splitting large datasets

b)

Aggregating collected data into a final result

c)

Distributing tasks evenly

d)

Data validation

23.

What is the role of Kafka in distributed systems?

a)

Task scheduling

b)

Message streaming and real-time data processing

c)

Load balancing

d)

Serverless computing

24.

Which monitoring tool is best suited for real-time metric collection?

a)

PostgreSQL

b)

Prometheus

c)

Hadoop

d)

Kafka

25.

Kafka’s acknowledgment levels (acks) help in:

a)

Controlling how many nodes confirm data writes

b)

Preventing all failures in a system

c)

Reducing data replication

d)

Increasing CPU processing power

26.

Which company heavily relies on distributed computing for its cloud services?

a)

Netflix

b)

Amazon AWS

c)

Instagram

d)

Spotify

27.

Which distributed computing technique is used in streaming services like Netflix?

a)

RESTful APIs

b)

Microservices

28.

puting for its cloud services?

a)

Netflix

b)

Amazon AWS

c)

Instagram

d)

Spotify

29.

Which distributed computing technique is used in streaming services like Netflix?

a)

RESTful APIs

b)

Microservices and caching

c)

Batch processing

d)

Time-sharing

30.

A system that uses distributed nodes to store and retrieve financial transactions is most likely:

a)

A microservice-based architecture

b)

A blockchain-based system

c)

A serverless computing model

d)

A multitier system

31.

The CAP theorem states that a distributed system can guarantee only two of these three properties:

a)

Fault tolerance, scalability, security

b)

Consistency, availability, partition tolerance

c)

Speed, reliability, cost-effectiveness

d)

Decentralization, efficiency, interoperability

32.

ACID properties in distributed databases ensure:

a)

Scalability

b)

High availability

c)

Data consistency and integrity

d)

Faster processing

33.

Write a Java program to create and start a thread using the Thread class.

a)

Using Thread class

b)

Using Runnable interface

c)

Using Executors.newSingleThreadExecutor()

d)

Using ForkJoinPool

34.

Modify the previous code to use the Runnable interface instead.

a)

Extending Thread

b)

Implementing Runnable

c)

Using Callable

d)

Using ThreadPoolExecutor

35.

Which of the following is NOT a way to prevent deadlocks?

a)

Using locks in a consistent order

b)

Implementing a timeout mechanism

c)

Using a single-threaded approach

d)

Using a resource hierarchy

36.

Which Java client is commonly used for Redis caching?

a)

Lettuce

b)

KafkaStreams

c)

RabbitMQ-Client

d)

gRPC-Java

37.

Which Python library is used for distributed training of ML models?

a)

Horovod

b)

SparkSQL

c)

Kafka-ML

d)

PaxosML

38.

What is the main advantage of distributed computing?

a)

Reduces the need for databases

b)

Increases single-system efficiency

c)

Improves scalability and fault tolerance

d)

Requires fewer computing resources

39.

Which of the following contributes to fault tolerance in distributed systems?

a)

Using a single point of failure

b)

Data replication and load balancing

c)

Reducing the number of nodes

d)

Avoiding network redundancy

40.

In a client-server architecture, what is the role of the client?

a)

To process requests from multiple servers

b)

To initiate requests and receive responses

c)

To store all system data

d)

To manage server load balancing

41.

Which architecture allows all nodes to act as both clients and servers?

a)

Client-server

b)

Peer-to-peer (P2P)

c)

Microservices

d)

Three-tier

42.

Which distributed system architecture divides applications into small independent services that communicate via APIs?

a)

Client-server

b)

Monolithic

c)

Microservices

d)

P2P

43.

Which protocol is connectionless and fast but does not guarantee message delivery?

a)

TCP

b)

UDP

c)

HTTP

d)

WebSockets

44.

What is a major advantage of using WebSockets over HTTP?

a)

It supports batch processing

b)

It allows a persistent connection

c)

It is a more secure protocol

d)

It does

45.

What is a major advantage of using WebSockets over HTTP?

a)

It supports batch processing

b)

It allows a persistent connection

c)

It is a more secure protocol

d)

It does not require authentication

46.

Which protocol is commonly used in IoT devices due to its efficiency for small data transmissions?

a)

TCP

b)

MQTT

c)

REST API

d)

UDP

47.

Which of the following statements is true about parallelism and multithreading?

a)

Multithreading runs tasks on multiple processors

b)

Parallelism executes tasks on different processor cores

c)

Parallelism can only be achieved using a single thread

d)

Multithreading is always faster than parallel processing

48.

What is a deadlock in multithreading?

a)

A situation where a process completes execution

b)

When a thread continuously runs without stopping

c)

When two threads wait for resources indefinitely

d)

When threads are executed sequentially

49.

Which technique can help prevent deadlocks?

a)

Allowing unlimited resource acquisition

b)

Using a single-threaded approach

c)

Implementing timeouts and resource ordering

d)

Running all tasks simultaneously

50.

Which scheduling algorithm processes tasks in the order they arrive?

a)

Round-Robin

b)

Shortest Job First

c)

First-Come, First-Served (FCFS)

d)

Priority Scheduling

51.

Which task queue system ensures sequential processing of messages in distributed systems?

a)

HTTP

b)

Apache Kafka

c)

TCP

d)

Load Balancer

52.

What is the main purpose of load balancing?

a)

To reduce the number of nodes in a system

b)

To distribute tasks evenly across multiple servers

c)

To eliminate the need for parallel processing

d)

To increase latency in the system

53.

Which distributed framework is used for processing Big Data using HDFS and MapReduce?

a)

Spark

b)

Apache Hadoop

c)

Kafka

d)

PostgreSQL

54.

Why is Apache Spark faster than Hadoop?

a)

It uses in-memory processing

b)

It does not require distributed computing

c)

It stores all data locally

d)

It does not support MapReduce

55.

Which file format is most efficient for storing large datasets in Big Data processing?

a)

CSV

b)

XML

c)

Parquet

d)

TXT

56.

What is the first stage in the Scatter-Gather-Reduce model?

a)

Gather

b)

Reduce

c)

Scatter

d)

Parallel

57.

Which phase in Scatter-Gather-Reduce is responsible for aggregating results from nodes?

a)

Scatter

b)

Reduce

c)

Gather

d)

Parallel

58.

What is the primary function of Apache Kafka?

a)

Load balancing

b)

Message queues and real-time data streaming

c)

Multithreading

d)

Data encryption

59.

Which monitoring tool is used to track real-time metrics in distributed computing?

a)

Kafka

b)

PostgreSQL

c)

Prometheus

d)

Hadoop

60.

How does Kafka ensure fault tolerance?

a)

By reducing network traffic

b)

By using data replication across multiple brokers

c)

By running on a single server

d)

By avoiding distributed storage

61.

Which company heavily relies on distributed computing for cloud services?

a)

Netflix

b)

Amazon AWS

c)

Facebook

d)

Spotify

62.

Which distributed computing technique helps in real-time video streaming?

a)

Multithreading

b)

Load Balancing

c)

Batch processing

d)

Static routing

63.

Which property in distributed databases ensures data consistency and reliability?

a)

CAP Theorem

b)

ACID

c)

BASE

d)

Eventual Consistency

64.

Which component ensures even distribution of processing tasks in cloud environments?

a)

Message queues

b)

Load balancer

c)

Data sharding

d)

Single-thread processing

65.

Which protocol is commonly used for microservice communication?

a)

TCP

b)

REST API

c)

WebSockets

d)

MQTT

66.

Which theorem states that a distributed system can provide only two out of three properties: Consistency, Availability, Partition Tolerance?

a)

ACID

b)

CAP Theorem

c)

BASE

d)

Paxos

67.

What is the main benefit of distributed computing in data processing?

a)

Tasks are divided among multiple nodes

b)

A single system processes all tasks

c)

Data is processed sequentially

d)

Network latency increases

68.

What ensures fault tolerance in distributed storage systems?

a)

Data replication

b)

Increasing network latency

c)

Reducing node count

d)

Using a single point of failure