EDPT (Electronic Data Processing Test) Quiz 2 — Questions and Answers
Question 1: In binary arithmetic, what is the result of 1011 + 0110?
- 10001 (Correct answer)
- 10010
- 10100
- 11001
Correct answer: 10001
1011 (11) + 0110 (6) = 10001 (17) in binary.
Question 2: Which data storage concept refers to the most recently used data being kept closest to the CPU?
- Virtual memory
- Cache memory (Correct answer)
- Secondary storage
- Register overflow
Correct answer: Cache memory
Cache memory stores recently or frequently accessed data near the CPU to reduce access latency.
Question 3: A program contains the instruction: IF X > 10 THEN Y = X * 2 ELSE Y = X + 5. If X = 10, what is Y?
- 20
- 15 (Correct answer)
- 10
- 25
Correct answer: 15
Since X = 10 is NOT greater than 10, the ELSE branch executes: Y = 10 + 5 = 15.
Question 4: What does the term 'throughput' measure in computing?
- The speed of a single instruction
- The amount of work completed in a given time period (Correct answer)
- The maximum data a bus can carry at once
- The number of cores in a CPU
Correct answer: The amount of work completed in a given time period
Throughput measures total work output (e.g., transactions or jobs completed) per unit of time.
Question 5: Which of the following best describes a compiler?
- A program that executes code one line at a time
- A program that translates entire source code into machine code before execution (Correct answer)
- Hardware that speeds up floating-point operations
- A utility that compresses files for storage
Correct answer: A program that translates entire source code into machine code before execution
A compiler translates the complete high-level source code into machine code prior to program execution.
Question 6: In a relational database, what is a 'foreign key'?
- A key imported from an external database
- An encrypted primary key
- A field in one table that references the primary key of another table (Correct answer)
- A key used only for sorting records
Correct answer: A field in one table that references the primary key of another table
A foreign key establishes a link between two tables by referencing the primary key of the related table.
Question 7: What is the decimal value of the hexadecimal number 2F?
- 29
- 41
- 47 (Correct answer)
- 37
Correct answer: 47
2F hex = (2 × 16) + (15 × 1) = 32 + 15 = 47 decimal.
In binary arithmetic, what is the result of 1011 + 0110?