Python Basics 2

Python Basics 2

Assessment

Flashcard

Computers

9th Grade

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

25 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the purpose of a variable in Python?

Back

To store data

2.

FLASHCARD QUESTION

Front

Which code correctly shows making a variable and setting it equal to a string? Options: string_1 = "hello", string 1 = "hello", string_1 == "hello", string_1 = hello

Back

string_1 = "hello"

3.

FLASHCARD QUESTION

Front

What is the correct way to make a Python program show text on the screen? Options: display("Hello"), "Hello", print("Hello"), show("Hello")

Back

print("Hello")

4.

FLASHCARD QUESTION

Front

What function is used to show text on the screen and let the user enter some text?

Back

input()

5.

FLASHCARD QUESTION

Front

What is the purpose of the if statement in Python?

Back

To make decisions in the code

6.

FLASHCARD QUESTION

Front

Which of the following is the correct way to concatenate (combine) two strings in Python?
Options: "Hello" .concat("World"), "Hello" add "World", "Hello" && "World", "Hello" + "World"

Back

"Hello" + "World"

7.

FLASHCARD QUESTION

Front

What type of data does the input() function return (create)?

Back

A string

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?