CSCI 1010 – Mock Midterm Exam (Q&A)
Section A: Definitions & Concepts
1. A part of a program that can be evaluated to produce a value is called:
A. Statement
B. Expression
C. Algorithm
D. Syntax
2. A hardware device that stores data for processing is:
A. CPU
B. Memory
C. Compiler
D. Bytecode
3. A set of steps used to solve a computational problem is:
A. Syntax
B. Expression
C. Algorithm
D. Loop
4. A structure that selects one action from multiple possibilities:
A. Loop
B. Statement
C. Branching statement
D. Byte
5. A structure that repeats actions until a condition is met:
A. Branch
B. Loop
C. Expression
D. Compiler
, 6. A single binary digit (0 or 1) is called:
A. Byte
B. Bit
C. Code
D. Signal
7. The component that executes program instructions:
A. RAM
B. CPU
C. Disk
D. Compiler
8. A complete instruction in a program is a:
A. Statement
B. Expression
C. Syntax
D. Byte
9. The smallest addressable memory unit:
A. Bit
B. Byte
C. Word
D. Block
10. Java programs are compiled into:
A. Machine code
B. Bytecode
C. Assembly
D. Binary scripts
11. A program written in a high-level language is:
A. Object code
B. Source code
C. Bytecode
D. Machine code
Section A: Definitions & Concepts
1. A part of a program that can be evaluated to produce a value is called:
A. Statement
B. Expression
C. Algorithm
D. Syntax
2. A hardware device that stores data for processing is:
A. CPU
B. Memory
C. Compiler
D. Bytecode
3. A set of steps used to solve a computational problem is:
A. Syntax
B. Expression
C. Algorithm
D. Loop
4. A structure that selects one action from multiple possibilities:
A. Loop
B. Statement
C. Branching statement
D. Byte
5. A structure that repeats actions until a condition is met:
A. Branch
B. Loop
C. Expression
D. Compiler
, 6. A single binary digit (0 or 1) is called:
A. Byte
B. Bit
C. Code
D. Signal
7. The component that executes program instructions:
A. RAM
B. CPU
C. Disk
D. Compiler
8. A complete instruction in a program is a:
A. Statement
B. Expression
C. Syntax
D. Byte
9. The smallest addressable memory unit:
A. Bit
B. Byte
C. Word
D. Block
10. Java programs are compiled into:
A. Machine code
B. Bytecode
C. Assembly
D. Binary scripts
11. A program written in a high-level language is:
A. Object code
B. Source code
C. Bytecode
D. Machine code