Based on past papers Flashcards
(28 cards)
What is the purpose of a FOR loop?
A FOR loop repeats a block of code a specific number of times based on a counter.
What is a WHILE loop?
A WHILE loop repeats a block of code as long as a condition remains true.
How do you use a variable in a program?
A variable stores data that can be changed or accessed during program execution.
What is the purpose of a subroutine?
A subroutine is a set of instructions that perform a task and can be reused throughout the program.
How does an IF statement work?
An IF statement checks if a condition is true and executes a block of code if it is.
What is a constant?
A constant is a value that remains unchanged during the execution of the program.
What is an IP address?
An IP address is a unique identifier assigned to each device on a network.
What is the difference between IPv4 and IPv6?
IPv4 uses 32-bit addresses (e.g., 192.168.1.1), whereas IPv6 uses 128-bit addresses for a larger address space.
What is the role of DNS?
The Domain Name System (DNS) translates domain names (e.g., www.example.com) into IP addresses.
What is the difference between TCP and UDP?
TCP is a reliable, connection-based protocol, while UDP is faster but does not guarantee delivery of data.
What is the purpose of a router?
A router directs data packets between networks, often determining the best path to forward them.
What is a MAC address?
A Media Access Control (MAC) address is a unique identifier assigned to network interfaces for communication on a local network.
How do you convert hexadecimal A2 to binary?
Hexadecimal A2 is binary 10100010.
What is the binary equivalent of the denary number 37?
Binary 37 is 100101.
How is a character represented in ASCII?
Each character is assigned a unique 7- or 8-bit code, such as ‘A’ = 65.
What is the purpose of the Unicode standard?
Unicode assigns a unique code point to characters from different writing systems, supporting many languages.
How is an image stored as binary?
An image is stored as a series of pixels, each pixel represented by binary values for color, e.g., RGB values.
What is a firewall?
A firewall is a network security system that monitors and controls incoming and outgoing network traffic.
What is encryption?
Encryption is the process of converting data into a coded form to prevent unauthorized access.
What is malware?
Malware is malicious software designed to harm or exploit systems or networks.
What is phishing?
Phishing is a fraudulent attempt to obtain sensitive information, typically through deceptive emails.
What is a Trojan horse?
A Trojan horse is a type of malware that disguises itself as a legitimate program but performs harmful actions.
What is a DoS attack?
A Denial of Service (DoS) attack is an attempt to disrupt or overwhelm a service, making it unavailable to users.
What is intellectual property?
Intellectual property refers to legal rights that protect creations of the mind, such as inventions, designs, and software.