Codeforlife python worksheet 2 - Variables, Input and Casting

Codeforlife python worksheet 2 - Variables, Input and Casting

8th Grade

26 Qs

quiz-placeholder

Similar activities

Conditional Formatting - Excel

Conditional Formatting - Excel

7th - 8th Grade

22 Qs

Organise Your Computer

Organise Your Computer

8th Grade

21 Qs

Artificial Intelligence Quiz1

Artificial Intelligence Quiz1

4th - 8th Grade

26 Qs

Prueba de Word

Prueba de Word

8th Grade

21 Qs

BK 8

BK 8

8th Grade

21 Qs

Computer exam *elvel schol*

Computer exam *elvel schol*

8th Grade

22 Qs

Word Processing Terminology

Word Processing Terminology

8th Grade

23 Qs

CPA MS-Office Hotkeys Quiz

CPA MS-Office Hotkeys Quiz

8th Grade - Professional Development

21 Qs

Codeforlife python worksheet 2 - Variables, Input and Casting

Codeforlife python worksheet 2 - Variables, Input and Casting

Assessment

Quiz

Computers

8th Grade

Practice Problem

Medium

Created by

I Robinson

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

26 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the technical name we give to an area of memory which we can store something in using a label? HINT: Var_____

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When we run an input() function in python, what sort of data type does it always return?

string

integer

real

boolean

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the technical word for converting one data type into another in Python? HINT: Cas____

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If we wanted to convert "3" into an integer, what do we need to replace the blank with

___("3")

int

float

bool

str

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is this style of writing variables called? my_height = 6

snake case

slug case

snail case

camel case

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What's wrong with this code?

print("Hello", name)

name = input("Enter your name: ")

There is a missing bracket

Name should be converted to an integer

The lines are the wrong way around

Input has been spelled incorrectly

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What's wrong with this code?

COUNTRY = input("Enter a country name:")

print("I'd like to go to", country)

Missing quotation marks

Missing a bracket

COUNTRY should be converted to an integer

COUNTRY and country are different variables

Create a free account and access millions of resources

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?