EDPT (Electronic Data Processing Test) Quiz 3 — Questions and Answers
Question 1: A loop executes the body while a counter is less than 5, starting at 0 and incrementing by 1 each time. How many times does the loop body execute?
- 4
- 5 (Correct answer)
- 6
- 0
Correct answer: 5
The counter takes values 0, 1, 2, 3, 4 — five iterations before reaching 5 and stopping.
Question 2: Which type of network topology connects every device directly to every other device?
- Star
- Ring
- Bus
- Mesh (Correct answer)
Correct answer: Mesh
A full mesh topology provides a direct connection between every pair of nodes in the network.
Question 3: What does RAM stand for in computing?
- Read-Access Memory
- Random Access Memory (Correct answer)
- Rapid Application Memory
- Readable Array Module
Correct answer: Random Access Memory
RAM stands for Random Access Memory, the primary volatile working memory of a computer.
Question 4: An array contains the values [4, 9, 2, 7, 1]. After one pass of a bubble sort (comparing adjacent elements and swapping if out of order), what is the last element?
- 1
- 4
- 9 (Correct answer)
- 7
Correct answer: 9
Bubble sort 'bubbles' the largest value to the end; after one pass, 9 moves to the last position.
Question 5: Which of the following is a characteristic of a stack data structure?
- First In, First Out (FIFO)
- Last In, First Out (LIFO) (Correct answer)
- Random access to any element
- Elements sorted automatically
Correct answer: Last In, First Out (LIFO)
A stack follows Last In, First Out (LIFO) order — the most recently added element is removed first.
Question 6: In Boolean logic, what is the result of NOT (TRUE AND FALSE)?
- TRUE (Correct answer)
- FALSE
- UNDEFINED
- NULL
Correct answer: TRUE
TRUE AND FALSE = FALSE; NOT FALSE = TRUE.
Question 7: What is the primary purpose of an operating system's scheduler?
- To manage user account permissions
- To allocate CPU time among competing processes (Correct answer)
- To compress files on disk
- To translate assembly code to machine code
Correct answer: To allocate CPU time among competing processes
The scheduler determines which process gets CPU time and for how long, enabling multitasking.
A loop executes the body while a counter is less than 5, starting at 0 and incrementing by 1 each time.
How many times does the loop body execute?