Computer Science Practice (Interactive)
ILC — Computer Science Practice
10 auto-graded practice problems. Select an answer, submit, and review the explanation.
Hardware
Which component of the CPU performs arithmetic operations (addition, subtraction, multiplication, division) and logical operations (AND, OR, NOT)?
What is the purpose of virtual memory in a computer system?
Programming
What is the output of the following pseudocode after the loop completes? x = 1 FOR i = 1 TO 4 x = x \* i NEXT i OUTPUT x
Which programming concept describes a function that calls itself to solve a problem by breaking it into smaller, identical sub-problems?
Databases
In a relational database, which SQL command is used to retrieve specific columns from a table, filtering rows based on a condition?
Which normal form requires that every non-key attribute in a table must be fully functionally dependent on the entire primary key, not just part of it?
Networks
Which network topology connects all devices to a single central device (hub, switch, or router), and is the most common topology for small-to-medium LANs?
In symmetric encryption, which of the following statements is correct?
Algorithms
A sorting algorithm has a worst-case time complexity of O(n^2). For an input of 1,000 elements, approximately how many operations might be performed in the worst case?