python flashcard

python flashcard

Assessment

Flashcard

Computers

12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

20 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is a correct syntax to output "Hello World" in Python?

Back

print("Hello World")

2.

FLASHCARD QUESTION

Front

How do you create a variable with the numeric value 5?

Back

x=int(5) and x=5

3.

FLASHCARD QUESTION

Front

What is the correct syntax to output the type of a variable or object in Python?

Back

print(type(x))

4.

FLASHCARD QUESTION

Front

What is a correct syntax to return the first character in a string? Options: x=sub."Hello"[0], x="Hello"[0], x=sub("hello",(0,1)

Back

x="Hello"[0]

5.

FLASHCARD QUESTION

Front

What is python named after?

Back

Television show called Monty Python

6.

FLASHCARD QUESTION

Front

What does the print function do in python?

Back

It displays something like a string or integer.

7.

FLASHCARD QUESTION

Front

What symbol do you use to make a comment in Python?

Back

#

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?