CPU cores

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

CPU cores

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. A quad-core CPU has how many cores?
A 2 cores
B 4 cores
2. What is a CPU core?
A One processing unit inside a CPU
B A slot on the motherboard where RAM is plugged in
3. Which CPU can work on the most separate tasks at the same time?
A Dual-core
B Octa-core
4. You stream music, browse the web and download a file all at once. Which CPU copes best?
A A CPU with more cores, because each core can work on a different task
B A CPU with only one core, because it can do all tasks at exactly the same moment
5. A dual-core CPU is the same as a CPU with 2 GHz clock speed.
A False: dual-core means 2 cores, while GHz measures clock speed
B True: dual means 2 and GHz also means 2

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1quad-core CPU Adual-core CPU
2octa-core CPU BPrograms that only use one core cannot use the extra cores, so they do not get faster.
3A CPU with 2 cores that can run two separate tasks at the same time CA CPU with 8 cores, so it can handle even more tasks at once than a quad-core
4Some programs are written to use only one core, so extra cores sit idle and do not speed them up DA CPU with 4 cores, so it can work on 4 separate tasks at the same time
5A dual-core CPU has 4 cores Esingle-threaded program
6More cores always make every program run faster FDual means 2, not 4. A dual-core CPU has 2 cores. A quad-core CPU has 4.

Definitions

CPU core

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
A ____ is one processing unit in a CPU.
2.
A quad-core CPU has _ cores.
3.
____-core CPU = 8 cores
4.
More cores can run tasks in ________.
5.
A single-threaded program uses ___ core.

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A cpu <- "quad-core"
B cores <- 4
C tasks_at_once <- 1
D print(tasks_at_once)
Question 2
A cpu <- "octa-core"
B cores <- 8
C tasks <- 6
D IF tasks >= cores THEN
E print("All run at once")
F ENDIF
Question 3
A cores <- 4
B cpu_name <- "dual-core"
C print(cpu_name + " " + cores)
Question 4
A cores <- 2
B IF cores <= 1 THEN
C print("Tasks run together")
D ENDIF
Question 5
A program <- "old game"
B used <- 1
C cpu_cores <- 8
D idle <- cpu_cores + used
E print(idle)

Answer Key

CPU cores
Section A: Quick Questions
Q1
B — 4 cores
Q2
A — One processing unit inside a CPU
Q3
B — Octa-core
Q4
A — A CPU with more cores, because each core can work on a different task
Q5
A — False: dual-core means 2 cores, while GHz measures clock speed
Section B: Match the Pairs
Q1
quad-core CPU → A CPU with 4 cores, so it can work on 4 separate tasks at the same time
Q2
octa-core CPU → A CPU with 8 cores, so it can handle even more tasks at once than a quad-core
Q3
A CPU with 2 cores that can run two separate tasks at the same time → dual-core CPU
Q4
Some programs are written to use only one core, so extra cores sit idle and do not speed them up → single-threaded program
Q5
A dual-core CPU has 4 cores → Dual means 2, not 4. A dual-core CPU has 2 cores. A quad-core CPU has 4.
Q6
More cores always make every program run faster → Programs that only use one core cannot use the extra cores, so they do not get faster.
Section C: Definitions
Q1
CPU core — One processing unit inside a CPU. A dual-core, quad-core or octa-core CPU has 2, 4 or 8 cores, so it can work on separate tasks at the same time.
Section D: Fill in the Blanks
Q1
A core is one processing unit in a CPU.
Q2
A quad-core CPU has 4 cores.
Q3
octa-core CPU = 8 cores
Q4
More cores can run tasks in parallel.
Q5
A single-threaded program uses one core.
Section E: Spot the Error
Q1
C — A quad-core CPU can work on as many tasks at once as it has cores. The line should be tasks_at_once <- cores, which gives 4.
Q2
D — All tasks can run at the same time only when there are no more tasks than cores. The test should be tasks <= cores (6 <= 8).
Q3
A — A dual-core CPU has 2 cores, not 4. The line should be cores <- 2.
Q4
B — Tasks can only run together (in parallel) when there are 2 or more cores. The test should be cores >= 2, otherwise the message never shows for a 2-core CPU.
Q5
D — Idle cores are the cores the program is NOT using, so you subtract. It should be idle <- cpu_cores - used, which gives 7.