Search Header Logo

c3 2-4 Casting Variables - GCSE Quiz

Authored by Clare Ross

others

Used 2+ times

c3 2-4 Casting Variables - GCSE Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

All data entered by a user in a Python console window is what data type?

Integer
String
Float
Boolean

2.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

The process of changing one data type to another is called what?

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, what function do you need to use to cast to a floating-point number?

real()
float()
int()
str()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Look at the following code written in Python:

62
56
556
A TypeCast error will prevent it running.

5.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Media Image

Look at the following code written in Python:

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Look at the following code written in Python:

23
67
167
A TypeCast error will prevent it running.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Look at the following code written in Python:

27
18
918
A TypeCast error will prevent it running.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?