Python: Print Function, Data Types, and Variables

Python: Print Function, Data Types, and Variables

Assessment

Flashcard

Engineering

6th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

13 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the correct way to declare a string variable in Python? Options: string name = "Hello", str name = "Hello", name = "Hello", name = Hello

Back

name = "Hello"

2.

FLASHCARD QUESTION

Front

Which of the following is an integer in Python? 3.14, "42", 42, True

Back

42

3.

FLASHCARD QUESTION

Front

How do you correctly print the text "Hello, World!" in Python?

Back

print=("Hello, World!")

4.

FLASHCARD QUESTION

Front

Which of the following is a floating point number? 7, 7.0, "7.0", True

Back

7.0

5.

FLASHCARD QUESTION

Front

Which of the following is a correctly named variable in Python? 1st_variable, firstVariable, first-variable, first variable

Back

firstVariable

6.

FLASHCARD QUESTION

Front

What will be the output of the following code: print(3 + 4.5)?

Back

7.5

7.

FLASHCARD QUESTION

Front

What is the result of the expression 10 // 3 in Python?

Back

3

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?