2.2.1 Lesson 2 Datatypes Casting and Arithmetic

KS4 Computer Science - Year 11 learning resources

2.2.1 Lesson 2 Datatypes Casting and Arithmetic

Slide 1 of 26

Work through the lesson activities in your own copy.

Download Datatypes Casting and Arithmetic workbook
Slide 1

Use arrow keys or click to navigate

Datatypes Casting and Arithmetic Quiz
Open self-marking quiz

Knowledge check

2.2.1 Lesson 2 Datatypes Casting and Arithmetic Quiz

Complete all four sections, then submit to see your score. 0 / 16 answered.

1. Multiple choice

Choose one answer for each question.

1. What type does input() return before you convert it?
2. What does 17 // 5 evaluate to?
3. Which function converts text into a decimal number?
4. What does the % operator find?

2. True or false

Decide whether each statement is true or false.

1. The + operator can join two strings together.
2. int(4.8) keeps the decimal part of the number.
3. The / operator produces ordinary division in Python.
4. A variable must always keep the same data type.

3. Matching terms

Match each term to its meaning.

str()
int()
float()
%

4. Fill in the blanks

Type the missing word or number.

Answer every question before submitting.