Free programming fundamentals check

Measure your programming foundations.

Check core concepts, code reading, data structures, debugging, algorithms, and computational thinking. You will receive an indicative P1-P4 result.

10 min
Typical time
15
Questions
P1-P4
Level range
Question 1 of 15 0 answered
1 Concepts

What is an algorithm?

2 Data

What is a variable used for?

3 Data

Which pair contains Boolean values?

4 Control flow

Which construct is designed to repeat instructions?

5 Functions

Why are functions useful?

6 Data

In most programming languages, what is the index of the first item in a list?

7 Code reading
PYTHON
x = 4
x = x + 3
print(x)

What does this code print?

8 Control flow

When does the body of a basic if statement run?

9 Debugging

What is the best first step when a program produces an unexpected result?

10 Data structures

Which structure is designed to associate keys with values?

11 Functions

What does a return statement usually do?

12 Code reading
PYTHON
for n in range(3):
    print(n)

Which values are printed?

13 Algorithms

What must be true before standard binary search can be used correctly?

14 Algorithms

Why does a recursive function need a base case?

15 Code reading
PYTHON
count = 0
for a in range(2):
    for b in range(3):
        count = count + 1
print(count)

What does this code print?