Skip to content

Computer Science Practice (Interactive)

ILC — Computer Science Practice

10 auto-graded practice problems. Select an answer, submit, and review the explanation.


Hardware

easy

Which component of the CPU performs arithmetic operations (addition, subtraction, multiplication, division) and logical operations (AND, OR, NOT)?

medium

What is the purpose of virtual memory in a computer system?

Programming

easy

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

medium

Which programming concept describes a function that calls itself to solve a problem by breaking it into smaller, identical sub-problems?

Databases

easy

In a relational database, which SQL command is used to retrieve specific columns from a table, filtering rows based on a condition?

hard

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

easy

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?

medium

In symmetric encryption, which of the following statements is correct?

Algorithms

medium

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?