Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Hdff hhh

Total questions: 76

Worksheet time: 38mins

Name
Class
Date
1.

What is the main function of a router in a computer network?

a)

Forwarding data packets between computer networks

b)

Playing music

c)

Printing documents

d)

Cooking dinner

2.

What is the purpose of a firewall in internet security?

a)

To play music

b)

To cook dinner

c)

To monitor and control network traffic

d)

To water the plants

3.

Which of the following is an example of internet hardware?

a)

Toaster

b)

Microwave

c)

Router

d)

Television

4.

What is the role of DNS (Domain Name System) in internet communication?

a)

DNS encrypts internet traffic

b)

DNS controls website design

c)

DNS translates domain names to IP addresses

d)

DNS manages email communication

5.

What is the purpose of a modem in internet connectivity?

a)

To convert digital data into analog signals for transmission over a telephone line, and vice versa.

b)

To convert analog data into digital signals for transmission over a telephone line, and vice versa.

c)

To provide power to the internet connection.

d)

To encrypt and decrypt data for secure transmission.

6.

Which of the following is an example of internet software?

a)

Music player

b)

Cooking app

c)

Web browser

d)

Video game

7.

What is the function of an IP address in internet communication?

a)

To make the internet more colorful

b)

To uniquely identify a device on the internet and facilitate communication between devices.

c)

To control the speed of internet connection

d)

To provide entertainment to users

8.

What is the purpose of a network switch in a computer network?

a)

To play music for the devices

b)

To water the plants for the devices

c)

To connect multiple devices within a local area network (LAN) and manage the traffic between them.

d)

To cook food for the devices

9.

What is the function of a web browser in internet usage?

a)

To cook food

b)

To drive a car

c)

To send emails

d)

To access and view websites on the internet.

10.

What is the purpose of an Ethernet cable in internet connectivity?

a)

To provide wireless internet access

b)

To physically connect a device to a network for high-speed internet access

c)

To improve internet speed

d)

To charge the device

11.

What is the function of a NOT gate?

a)

It inverts the input signal

b)

It outputs 1 only when both inputs are 1

c)

It outputs 1 when at least one input is 1

d)

It outputs 0 only when both inputs are 0

12.

What is the output of an AND gate when both inputs are 1?

a)

1

b)

0

c)

The same as the first input

d)

The same as the second input

13.

Which logic gate outputs 1 when at least one input is 1?

a)

OR

b)

AND

c)

NOT

d)

NAND

14.

What is the function of a NAND gate?

a)

It outputs the opposite of an AND gate

b)

It outputs 1 only when both inputs are 1

c)

It outputs 0 when at least one input is 1

d)

It outputs the same as an OR gate

15.

Which logic gate produces an output of 0 only when both inputs are 1?

a)

NOR

b)

XOR

c)

AND

d)

OR

16.

What does an XOR (Exclusive OR) gate do?

a)

It outputs 1 when the inputs are different

b)

It outputs 1 when both inputs are the same

c)

It inverts the input signal

d)

It outputs 1 when at least one input is 1

17.

Which logic gate outputs 0 when both inputs are 0 and 1 when both inputs are 1?

a)

AND

b)

XOR

c)

OR

d)

NOR

18.

How many inputs does a NOT gate have?

a)

1

b)

2

c)

3

d)

Unlimited

19.

What is the output of a NAND gate when both inputs are 1?

a)

0

b)

1

c)

The same as an OR gate

d)

The same as an AND gate

20.

Which logic gate is represented by this truth table? A B Output 0 0 1 0 1 1 1 0 1 1 1 0

a)

NAND

b)

AND

c)

OR

d)

NOR

21.

What is the first step in constructing a logic circuit from a problem statement?

a)

Identify the required logic operations

b)

Draw the circuit diagram immediately

c)

Build the physical circuit first

d)

Choose random logic gates

22.

How can a truth table be used in constructing a logic expression?

a)

It helps determine the conditions under which the output is 1

b)

It provides a step-by-step guide for wiring circuits

c)

It replaces the need for logic expressions

d)

It contains only input values

23.

What is the output of the following logic expression: A AND NOT B? (A = 1, B = 0)

a)

1

b)

0

c)

The same as A

d)

The same as B

24.

Which logic gate is often used in error detection and parity checks?

a)

XOR

b)

AND

c)

NOR

d)

NAND

25.

Which Boolean algebra rule states that A OR 1 = 1?

a)

Identity Law

b)

De Morgan’s Theorem

c)

Associative Law

d)

Involution Law

26.

How can a logic circuit be simplified?

a)

Using Boolean algebra rules

b)

Adding more gates to increase efficiency

c)

Increasing the number of inputs

d)

Avoiding truth tables

27.

What is the Boolean expression for a NOR gate?

a)

NOT(A + B)

b)

A + B

c)

A * B

d)

NOT(A * B)

28.

Which method is used to verify the correctness of a constructed logic circuit?

a)

Creating a truth table

b)

Counting the number of logic gates

c)

Checking the physical connections first

d)

Guessing based on common logic patterns

29.

If A = 1 and B = 0, what is the output of A XOR B?

a)

1

b)

0

c)

The same as A

d)

The same as B

30.

Which of the following logic circuits would be best for implementing a basic security system where an alarm is triggered if either of two sensors detect movement?

a)

OR gate circuit

b)

AND gate circuit

c)

XOR gate circuit

d)

NOT gate circuit

31.

What is a network protocol?

a)

A set of rules governing communication between computers.

b)

A physical connection between computers.

c)

A type of computer virus.

d)

A method of storing files.

32.

Why are protocols necessary for network communication?

a)

They ensure that different devices can understand each other.

b)

They increase internet speed.

c)

They prevent all network errors.

d)

They are only used in wireless communication.

33.

Which protocol provides peer-to-peer file sharing?

a)

BitTorrent

b)

HTTP

c)

FTP

d)

IMAP

34.

Which of the following is NOT one of the four layers of the TCP/IP model?

a)

Data Link

b)

Transport

c)

Internet

d)

Application

35.

Which TCP/IP layer is responsible for establishing host-to-host communication?

a)

Transport

b)

Application

c)

Internet

d)

Link

36.

Which layer of the TCP/IP model deals with IP addressing and routing?

a)

Internet

b)

Application

c)

Transport

d)

Link

37.

Which protocol is primarily used for sending email?

a)

SMTP

b)

IMAP

c)

FTP

d)

HTTP

38.

Which protocol is used to retrieve emails from a mail server while keeping them stored on the server?

a)

IMAP

b)

POP3

c)

SMTP

d)

HTTP

39.

Which protocol transfers files over the internet?

a)

FTP

b)

SMTP

c)

IMAP

d)

HTTP

40.

Which protocol is used for loading web pages?

a)

HTTP

b)

FTP

c)

SMTP

d)

POP3

41.

What is the purpose of the TCP protocol?

a)

It ensures reliable, ordered, and error-checked data transmission.

b)

It provides an unreliable, connectionless data transfer method.

c)

It encrypts all internet traffic.

d)

It assigns IP addresses to devices.

42.

Which protocol is used to retrieve emails but does NOT keep a copy on the server?

a)

POP3

b)

IMAP

c)

SMTP

d)

FTP

43.

What is the function of the Application layer in the TCP/IP model?

a)

It provides services such as email, web browsing, and file transfer.

b)

It establishes end-to-end connections.

c)

It routes data across networks.

d)

It controls physical network devices.

44.

Which protocol operates at the Internet layer of the TCP/IP model?

a)

IP

b)

TCP

c)

HTTP

d)

FTP

45.

Which protocol is best for streaming media where speed is prioritized over reliability?

a)

UDP

b)

TCP

c)

FTP

d)

HTTP

46.

Which protocol breaks data into packets and ensures they arrive correctly?

a)

TCP

b)

UDP

c)

FTP

d)

HTTP

47.

What does FTP stand for?

a)

File Transfer Protocol

b)

Fast Transfer Process

c)

File Tracking Program

d)

File Transmission Path

48.

Which protocol provides an unreliable, connectionless communication method?

a)

UDP

b)

TCP

c)

FTP

d)

IMAP

49.

What is the main purpose of a protocol stack?

a)

To organize communication functions into separate layers.

b)

To increase network speed.

c)

To prevent unauthorized access.

d)

To encrypt all data transmissions.

50.

Which TCP/IP layer is responsible for converting data into signals for transmission?

a)

Link

b)

Internet

c)

Transport

d)

Application

51.

We can do more in a single instruction

a)

CISC

b)

RISC

52.

One instruction generally requires only one clock cycle

a)

CISC

b)

RISC

53.

The instruction set is longer - there are more possible instructions

a)

CISC

b)

RISC

54.

More complicated hardware is required

a)

CISC

b)

RISC

55.

The control unit is generally hard-wired rather than microprogrammed

a)

CISC

b)

RISC

56.

Describe three advantages of using a RISC instruction set architecture instead of CISC.

4 lines
57.

Why are user-defined data types necessary in programming?

a)

They allow programmers to create structured and meaningful representations of data.

b)

They replace built-in data types entirely.

c)

They reduce the need for variables in a program.

d)

They prevent the use of arrays.

58.

Which of the following is NOT a benefit of user-defined data types?

a)

They make debugging impossible.

b)

They improve code readability and maintainability.

c)

They allow for data abstraction and encapsulation.

d)

They help organize complex data structures.

59.

Which of the following is a non-composite user-defined data type?

a)

Enumerated type

b)

Array

c)

Record

d)

Class

60.

What is the purpose of an enumerated type?

a)

It defines a variable that can hold a predefined set of values.

b)

It allows variables to store floating-point numbers.

c)

It dynamically allocates memory for objects.

d)

It creates a class for object-oriented programming.

61.

Which of the following is a valid enumerated type declaration in pseudocode?

a)

TYPE Day = (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday)

b)

ENUM Day = Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday

c)

DECLARE Day AS ENUM(Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday)

d)

SET Day = Monday OR Tuesday OR Wednesday OR Thursday OR Friday OR Saturday OR Sunday

62.

What is a pointer used for in programming?

a)

It stores the memory address of another variable.

b)

It stores multiple values of different types.

c)

It creates an enumerated list of values.

d)

It defines a user-defined function.

63.

Which of the following statements about pointers is true?

a)

A pointer holds the memory address of a variable.

b)

A pointer is a composite data type.

c)

A pointer always points to a constant value.

d)

Pointers cannot be dereferenced.

64.

Which of the following is a composite data type?

a)

Record

b)

Enumerated type

c)

Pointer

d)

Boolean

65.

What is a record used for?

a)

To store a collection of different data types under one identifier.

b)

To store a single data type in a fixed-size array.

c)

To reference another variable’s memory address.

d)

To create a collection of similar values.

66.

Which of the following is a correct definition of a record in pseudocode?

a)

TYPE StudentRecord DECLARE Name : STRING DECLARE Age : INTEGER DECLARE Grade : CHAR END TYPE

b)

RECORD StudentRecord Name : STRING Age : INTEGER Grade : CHAR END RECORD

c)

TYPE StudentRecord(Name STRING, Age INTEGER, Grade CHAR)

d)

SET StudentRecord = (Name, Age, Grade)

67.

Which of the following is a characteristic of a class?

a)

It defines both data (attributes) and behavior (methods).

b)

It is only used for enumerations.

c)

It is a simple variable type with no functions.

d)

It cannot contain multiple data types.

68.

What is the main difference between a record and a class?

a)

A class can contain methods (functions), while a record only stores data.

b)

A record can only hold integers, while a class can hold any data type.

c)

A class cannot store data, only functions.

d)

A record is used for object-oriented programming, while a class is not.

69.

Which composite data type represents a collection of unique elements?

a)

Set

b)

Array

c)

Pointer

d)

Record

70.

Which of the following statements is true about sets?

a)

A set contains only unique values and does not allow duplicates.

b)

A set can contain duplicate values.

c)

A set is the same as an array.

d)

A set can store elements of different data types in a single set.

71.

Which user-defined type would be best suited to store the days of the week?

a)

Enumerated type

b)

Record

c)

Pointer

d)

Set

72.

If a program needs to store detailed information about a student (name, age, and grade), which data type should be used?

a)

Record

b)

Pointer

c)

Enumerated type

d)

Boolean

73.

Which of the following scenarios would be best suited for a pointer?

a)

When managing dynamic memory allocation in a program.

b)

When storing predefined constant values.

c)

When defining a list of allowed colors in an application.

d)

When creating a database of employee records.

74.

Which of the following is the best user-defined type to represent a shape with properties like width, height, and color?

a)

Class

b)

Set

c)

Pointer

d)

Enumerated type

75.

A company wants to store a collection of customer records with attributes like name, phone number, and address. What is the most appropriate data type?

a)

A record structure

b)

An enumerated type

c)

A pointer

d)

A Boolean value

76.

Why is choosing the right user-defined data type important?

a)

It ensures efficiency, readability, and maintainability of the program.

b)

It makes the code unnecessarily complex.

c)

It prevents the use of built-in data types.

d)

It allows data to be stored in only one format.