Search Header Logo

Understanding Python Basics Quiz

Authored by Dean Groom

Computers

6th Grade

Used 25+ times

Understanding Python Basics Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct variable name in Python?

1stVariable

first_variable

first-variable

first variable

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is used to store a sequence of characters in Python?

int

float

str

bool

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to take input from the user in Python?

print()

input()

read()

scan()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

7

7.5

34.5

3.45

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a data type in Python?

list

tuple

array

dict

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code: `print("Hello" + " " + "World")`?

HelloWorld

Hello World

Hello, World

"Hello World"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a floating-point number?

42

42.0

"42"

True

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?