Comp Systems Flashcards
What is the main function of the CPU?
To execute instructions and process data.
True or False: RAM is a type of non-volatile memory.
False
Fill in the blank: The _____ is the primary storage area for data in a computer system.
hard drive
What does ‘bit’ stand for?
Binary digit
What is the binary equivalent of the decimal number 10?
1010
Define ‘algorithm’.
A step-by-step procedure for solving a problem or performing a task.
What is the purpose of an operating system?
To manage computer hardware and software resources.
True or False: A ‘byte’ consists of 8 bits.
True
What is the hexadecimal representation of the decimal number 255?
FF
What type of data structure is a list?
A collection of ordered elements.
Fill in the blank: In programming, a _____ is a named storage location that holds a value.
variable
What does ‘syntax’ refer to in programming?
The set of rules that defines the combinations of symbols that are considered to be correctly structured programs.
Which of the following is a high-level programming language? (A) Assembly (B) Python (C) Machine Code
B) Python
What is a loop in programming?
A sequence of instructions that repeats until a certain condition is met.
True or False: Data can be represented in a computer using only binary code.
True
What is the purpose of a compiler?
To translate high-level programming code into machine code.
Fill in the blank: The _____ operator is used to compare two values.
comparison
What is meant by ‘data validation’?
The process of ensuring that data is accurate and acceptable before processing.
What does ‘debugging’ refer to?
The process of finding and fixing errors in a program.
Which of the following is NOT a type of software? (A) Operating System (B) Compiler (C) Hardware
C) Hardware
What is an array?
A collection of items stored at contiguous memory locations.
True or False: A function can return multiple values.
False
What is the purpose of a flowchart?
To visually represent the steps in a process or algorithm.
Fill in the blank: The _____ is the part of the computer that performs arithmetic and logical operations.
ALU (Arithmetic Logic Unit)
What is the difference between ‘hardware’ and ‘software’?
Hardware refers to the physical components of a computer, while software refers to the programs that run on the hardware.
What is a conditional statement?
A statement that executes a certain block of code based on whether a condition is true or false.
Which of the following is an example of an input device? (A) Monitor (B) Keyboard (C) Printer
B) Keyboard
What does ‘ASCII’ stand for?
American Standard Code for Information Interchange
True or False: A string is a type of data that can hold multiple characters.
True
What is the purpose of a database?
To store and manage data efficiently.
Fill in the blank: The _____ is the main circuit board in a computer that connects all components.
motherboard
What is a ‘syntax error’?
An error that occurs when the code does not follow the correct syntax of the programming language.
What does ‘iterative’ mean in programming?
Referring to a process that repeats a set of instructions multiple times.
Which data type would you use to represent a true/false value?
Boolean
What is the role of a network interface card (NIC)?
To connect a computer to a network.
What is the purpose of encryption?
To protect data by converting it into a secure format.
Fill in the blank: The _____ is the temporary storage area for data that the CPU is currently processing.
cache
What is a ‘class’ in object-oriented programming?
A blueprint for creating objects that defines properties and methods.
True or False: An algorithm must always be written in a programming language.
False
What is the purpose of comments in code?
To provide explanations or notes for other programmers or for future reference.
What does ‘API’ stand for?
Application Programming Interface
Fill in the blank: The _____ is the part of the computer that stores data permanently.
hard drive
What is the difference between ‘syntax’ and ‘runtime’ errors?
Syntax errors occur during code writing, while runtime errors occur during program execution.
What is the role of an algorithm in programming?
To provide a clear set of steps to solve a problem.
Which of the following is a type of loop? (A) For loop (B) If statement (C) Variable
A) For loop
What does ‘data type’ refer to?
The classification of data based on the type of value it holds.
Fill in the blank: An _____ allows users to interact with the computer through graphical elements.
GUI (Graphical User Interface)
What is a ‘debugger’?
A tool used to test and debug programs.
True or False: A variable must be declared before it can be used in a program.
True
What is the main purpose of a software update?
To improve functionality, fix bugs, or enhance security.