Python Casting & Data Types

Python Casting & Data Types

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

8 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which of the following is the correct way to ask for someone's first name and store in the variable name? Options: name = print("Enter your first name "), name = input("Enter your first name "), name = input(print("Enter your first name "))

Back

name = input("Enter your first name ")

2.

FLASHCARD QUESTION

Front

Which of the following is the correct way to ask for an integer and store it in the variable num? Options: num = input("Enter an integer "), num = int(input("Enter an integer ")), num = float(input("Enter an integer "))

Back

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

3.

FLASHCARD QUESTION

Front

Evaluate the following:
9 // 2

Back

4

4.

FLASHCARD QUESTION

Front

Evaluate the following: 7 % 4

Back

3

5.

FLASHCARD QUESTION

Front

Evaluate the following:
(3 + 12) / 2

Back

7.5

6.

FLASHCARD QUESTION

Front

Evaluate the following:
(2 + 3) * 4 + 3 ** 2

Back

29

7.

FLASHCARD QUESTION

Front

Evaluate the following: 16 / 4

Back

4.0

8.

FLASHCARD QUESTION

Front

Evaluate the following:
15 // 3

Back

5