Python Casting & Data Types

Python Casting & Data Types

9th - 12th Grade

11 Qs

quiz-placeholder

Similar activities

Unit 1 Post Test: Basic Python

Unit 1 Post Test: Basic Python

9th - 12th Grade

10 Qs

Grade 12-Python selection&iteration

Grade 12-Python selection&iteration

11th - 12th Grade

15 Qs

GCSE Computer Science - Programming Keywords

GCSE Computer Science - Programming Keywords

9th - 12th Grade

15 Qs

Python Introduction Quiz

Python Introduction Quiz

8th - 9th Grade

12 Qs

Exit Ticket 1/17

Exit Ticket 1/17

9th - 12th Grade

12 Qs

JavaScript Quiz

JavaScript Quiz

9th - 10th Grade

15 Qs

Functions With Return Values U1M2 Python

Functions With Return Values U1M2 Python

9th - 12th Grade

12 Qs

Exploring Python: Input and Output Essentials

Exploring Python: Input and Output Essentials

9th Grade - University

10 Qs

Python Casting & Data Types

Python Casting & Data Types

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Richard Ghiorse

Used 8+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to ask for someone's first name and store in the variable name?

name = print("Enter your first name ")

name = input("Enter your first name ")

name = input(print("Enter your first name "))

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to ask for an integer and store it in the variable num?

num = input("Enter an integer ")

num = int(input("Enter an integer "))

num = float(input("Enter an integer "))

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Evaluate the following:

9 // 2

4

4.5

1

5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Evaluate the following:

7 % 4

1

3

0.75

1.75

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Evaluate the following:

(3 + 12) / 2

7

7.5

9

9.0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Evaluate the following:

  • (2 + 3) * 4 + 3 ** 2

29

23

26

20

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Evaluate the following:

16 / 4

4

4.0

0

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?