Search Header Logo

Python Fundamentals Explorer

Authored by Joshua Carr

Science

6th Grade

Used 2+ times

Python Fundamentals Explorer
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to assign the value 10 to a variable named 'age'?

age == 10

age = 10

10 = age

age: 10

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

"Hello, World!"

7.5

True

100

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you calculate the remainder of 15 divided by 4 in Python?

15 / 4

15 // 4

15 % 4

15 * 4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following conditional statement if x = 5? ```python if x > 10: print("Greater") else: print("Smaller") ```

Greater

Smaller

Error

No output

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

print()

input()

scanf()

read()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? ```python def greet(name): return "Hello, " + name print(greet("Alice")) ```

greet("Alice")

Hello, Alice

Alice

"Hello, " + name

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid variable name in Python?

my_var

1st_var

var_3

_var

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?