WorksheetsHdff hhh
Total questions: 76
Worksheet time: 38mins
What is the main function of a router in a computer network?
Forwarding data packets between computer networks
Playing music
Printing documents
Cooking dinner
What is the purpose of a firewall in internet security?
To play music
To cook dinner
To monitor and control network traffic
To water the plants
Which of the following is an example of internet hardware?
Toaster
Microwave
Router
Television
What is the role of DNS (Domain Name System) in internet communication?
DNS encrypts internet traffic
DNS controls website design
DNS translates domain names to IP addresses
DNS manages email communication
What is the purpose of a modem in internet connectivity?
To convert digital data into analog signals for transmission over a telephone line, and vice versa.
To convert analog data into digital signals for transmission over a telephone line, and vice versa.
To provide power to the internet connection.
To encrypt and decrypt data for secure transmission.
Which of the following is an example of internet software?
Music player
Cooking app
Web browser
Video game
What is the function of an IP address in internet communication?
To make the internet more colorful
To uniquely identify a device on the internet and facilitate communication between devices.
To control the speed of internet connection
To provide entertainment to users
What is the purpose of a network switch in a computer network?
To play music for the devices
To water the plants for the devices
To connect multiple devices within a local area network (LAN) and manage the traffic between them.
To cook food for the devices
What is the function of a web browser in internet usage?
To cook food
To drive a car
To send emails
To access and view websites on the internet.
What is the purpose of an Ethernet cable in internet connectivity?
To provide wireless internet access
To physically connect a device to a network for high-speed internet access
To improve internet speed
To charge the device
What is the function of a NOT gate?
It inverts the input signal
It outputs 1 only when both inputs are 1
It outputs 1 when at least one input is 1
It outputs 0 only when both inputs are 0
What is the output of an AND gate when both inputs are 1?
1
0
The same as the first input
The same as the second input
Which logic gate outputs 1 when at least one input is 1?
OR
AND
NOT
NAND
What is the function of a NAND gate?
It outputs the opposite of an AND gate
It outputs 1 only when both inputs are 1
It outputs 0 when at least one input is 1
It outputs the same as an OR gate
Which logic gate produces an output of 0 only when both inputs are 1?
NOR
XOR
AND
OR
What does an XOR (Exclusive OR) gate do?
It outputs 1 when the inputs are different
It outputs 1 when both inputs are the same
It inverts the input signal
It outputs 1 when at least one input is 1
Which logic gate outputs 0 when both inputs are 0 and 1 when both inputs are 1?
AND
XOR
OR
NOR
How many inputs does a NOT gate have?
1
2
3
Unlimited
What is the output of a NAND gate when both inputs are 1?
0
1
The same as an OR gate
The same as an AND gate
Which logic gate is represented by this truth table? A B Output 0 0 1 0 1 1 1 0 1 1 1 0
NAND
AND
OR
NOR
What is the first step in constructing a logic circuit from a problem statement?
Identify the required logic operations
Draw the circuit diagram immediately
Build the physical circuit first
Choose random logic gates
How can a truth table be used in constructing a logic expression?
It helps determine the conditions under which the output is 1
It provides a step-by-step guide for wiring circuits
It replaces the need for logic expressions
It contains only input values
What is the output of the following logic expression: A AND NOT B? (A = 1, B = 0)
1
0
The same as A
The same as B
Which logic gate is often used in error detection and parity checks?
XOR
AND
NOR
NAND
Which Boolean algebra rule states that A OR 1 = 1?
Identity Law
De Morgan’s Theorem
Associative Law
Involution Law
How can a logic circuit be simplified?
Using Boolean algebra rules
Adding more gates to increase efficiency
Increasing the number of inputs
Avoiding truth tables
What is the Boolean expression for a NOR gate?
NOT(A + B)
A + B
A * B
NOT(A * B)
Which method is used to verify the correctness of a constructed logic circuit?
Creating a truth table
Counting the number of logic gates
Checking the physical connections first
Guessing based on common logic patterns
If A = 1 and B = 0, what is the output of A XOR B?
1
0
The same as A
The same as B
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?
OR gate circuit
AND gate circuit
XOR gate circuit
NOT gate circuit
What is a network protocol?
A set of rules governing communication between computers.
A physical connection between computers.
A type of computer virus.
A method of storing files.
Why are protocols necessary for network communication?
They ensure that different devices can understand each other.
They increase internet speed.
They prevent all network errors.
They are only used in wireless communication.
Which protocol provides peer-to-peer file sharing?
BitTorrent
HTTP
FTP
IMAP
Which of the following is NOT one of the four layers of the TCP/IP model?
Data Link
Transport
Internet
Application
Which TCP/IP layer is responsible for establishing host-to-host communication?
Transport
Application
Internet
Link
Which layer of the TCP/IP model deals with IP addressing and routing?
Internet
Application
Transport
Link
Which protocol is primarily used for sending email?
SMTP
IMAP
FTP
HTTP
Which protocol is used to retrieve emails from a mail server while keeping them stored on the server?
IMAP
POP3
SMTP
HTTP
Which protocol transfers files over the internet?
FTP
SMTP
IMAP
HTTP
Which protocol is used for loading web pages?
HTTP
FTP
SMTP
POP3
What is the purpose of the TCP protocol?
It ensures reliable, ordered, and error-checked data transmission.
It provides an unreliable, connectionless data transfer method.
It encrypts all internet traffic.
It assigns IP addresses to devices.
Which protocol is used to retrieve emails but does NOT keep a copy on the server?
POP3
IMAP
SMTP
FTP
What is the function of the Application layer in the TCP/IP model?
It provides services such as email, web browsing, and file transfer.
It establishes end-to-end connections.
It routes data across networks.
It controls physical network devices.
Which protocol operates at the Internet layer of the TCP/IP model?
IP
TCP
HTTP
FTP
Which protocol is best for streaming media where speed is prioritized over reliability?
UDP
TCP
FTP
HTTP
Which protocol breaks data into packets and ensures they arrive correctly?
TCP
UDP
FTP
HTTP
What does FTP stand for?
File Transfer Protocol
Fast Transfer Process
File Tracking Program
File Transmission Path
Which protocol provides an unreliable, connectionless communication method?
UDP
TCP
FTP
IMAP
What is the main purpose of a protocol stack?
To organize communication functions into separate layers.
To increase network speed.
To prevent unauthorized access.
To encrypt all data transmissions.
Which TCP/IP layer is responsible for converting data into signals for transmission?
Link
Internet
Transport
Application
We can do more in a single instruction
CISC
RISC
One instruction generally requires only one clock cycle
CISC
RISC
The instruction set is longer - there are more possible instructions
CISC
RISC
More complicated hardware is required
CISC
RISC
The control unit is generally hard-wired rather than microprogrammed
CISC
RISC
Describe three advantages of using a RISC instruction set architecture instead of CISC.
Why are user-defined data types necessary in programming?
They allow programmers to create structured and meaningful representations of data.
They replace built-in data types entirely.
They reduce the need for variables in a program.
They prevent the use of arrays.
Which of the following is NOT a benefit of user-defined data types?
They make debugging impossible.
They improve code readability and maintainability.
They allow for data abstraction and encapsulation.
They help organize complex data structures.
Which of the following is a non-composite user-defined data type?
Enumerated type
Array
Record
Class
What is the purpose of an enumerated type?
It defines a variable that can hold a predefined set of values.
It allows variables to store floating-point numbers.
It dynamically allocates memory for objects.
It creates a class for object-oriented programming.
Which of the following is a valid enumerated type declaration in pseudocode?
TYPE Day = (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday)
ENUM Day = Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
DECLARE Day AS ENUM(Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday)
SET Day = Monday OR Tuesday OR Wednesday OR Thursday OR Friday OR Saturday OR Sunday
What is a pointer used for in programming?
It stores the memory address of another variable.
It stores multiple values of different types.
It creates an enumerated list of values.
It defines a user-defined function.
Which of the following statements about pointers is true?
A pointer holds the memory address of a variable.
A pointer is a composite data type.
A pointer always points to a constant value.
Pointers cannot be dereferenced.
Which of the following is a composite data type?
Record
Enumerated type
Pointer
Boolean
What is a record used for?
To store a collection of different data types under one identifier.
To store a single data type in a fixed-size array.
To reference another variable’s memory address.
To create a collection of similar values.
Which of the following is a correct definition of a record in pseudocode?
TYPE StudentRecord DECLARE Name : STRING DECLARE Age : INTEGER DECLARE Grade : CHAR END TYPE
RECORD StudentRecord Name : STRING Age : INTEGER Grade : CHAR END RECORD
TYPE StudentRecord(Name STRING, Age INTEGER, Grade CHAR)
SET StudentRecord = (Name, Age, Grade)
Which of the following is a characteristic of a class?
It defines both data (attributes) and behavior (methods).
It is only used for enumerations.
It is a simple variable type with no functions.
It cannot contain multiple data types.
What is the main difference between a record and a class?
A class can contain methods (functions), while a record only stores data.
A record can only hold integers, while a class can hold any data type.
A class cannot store data, only functions.
A record is used for object-oriented programming, while a class is not.
Which composite data type represents a collection of unique elements?
Set
Array
Pointer
Record
Which of the following statements is true about sets?
A set contains only unique values and does not allow duplicates.
A set can contain duplicate values.
A set is the same as an array.
A set can store elements of different data types in a single set.
Which user-defined type would be best suited to store the days of the week?
Enumerated type
Record
Pointer
Set
If a program needs to store detailed information about a student (name, age, and grade), which data type should be used?
Record
Pointer
Enumerated type
Boolean
Which of the following scenarios would be best suited for a pointer?
When managing dynamic memory allocation in a program.
When storing predefined constant values.
When defining a list of allowed colors in an application.
When creating a database of employee records.
Which of the following is the best user-defined type to represent a shape with properties like width, height, and color?
Class
Set
Pointer
Enumerated type
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 record structure
An enumerated type
A pointer
A Boolean value
Why is choosing the right user-defined data type important?
It ensures efficiency, readability, and maintainability of the program.
It makes the code unnecessarily complex.
It prevents the use of built-in data types.
It allows data to be stored in only one format.
