WorksheetsComputer Science Challenge for Grade 10
Total questions: 10
Worksheet time: 5mins
What is an algorithm?
A random guess about a problem.
A recipe for cooking a dish.
An algorithm is a step-by-step procedure for solving a problem.
A collection of data points without a process.
Explain the difference between a compiler and an interpreter.
A compiler executes code directly, while an interpreter does not.
A compiler is used for scripting languages, while an interpreter is used for compiled languages.
A compiler translates the entire code at once, while an interpreter translates code line-by-line during execution.
A compiler translates code line-by-line, while an interpreter translates the entire code at once.
What is the purpose of flowcharts in programming?
The purpose of flowcharts in programming is to visually represent the flow of control and data in a program.
To create a detailed code documentation.
To replace the need for actual coding.
To serve as a debugging tool for syntax errors.
Define the term 'IP address'.
A physical device that connects multiple networks.
A type of software used for managing network traffic.
An IP address is a unique numerical label assigned to each device on a network, used for identifying and locating the device.
A method for encrypting data on a network.
What are the main components of a computer network?
Devices, transmission media, and network protocols.
Power supply, cooling systems, and hardware components.
Software applications, user interfaces, and databases.
Routers, switches, and firewalls.
What is the function of a router in a network?
To store data packets for later retrieval.
To amplify the signal strength in a network.
The function of a router in a network is to direct data packets between different networks.
To provide a physical connection between devices.
Describe the concept of client-server architecture.
Client-server architecture is a decentralized model where clients operate independently.
Client-server architecture is a model where all processing is done on the client side.
Client-server architecture is a model where clients request services from centralized servers that provide resources and processing.
Client-server architecture eliminates the need for a server entirely.
What is the difference between TCP and UDP?
TCP is reliable and connection-oriented; UDP is faster and connectionless.
TCP is faster and connectionless; UDP is reliable and connection-oriented.
UDP guarantees delivery of packets; TCP does not.
TCP and UDP are both connection-oriented protocols.
Explain what a firewall does in network security.
A firewall monitors and controls network traffic to protect against unauthorized access and cyber threats.
A firewall is used to store data securely.
A firewall is a type of antivirus software.
A firewall only speeds up network connections.
What is the significance of data encapsulation in programming?
Data encapsulation reduces code complexity by eliminating functions.
Data encapsulation enhances security, modularity, and maintainability in programming.
Data encapsulation is primarily used for optimizing performance.
Data encapsulation allows direct access to all data members.
