Search Header Logo

Milestone Exkul SMP SMA - Q5_2022_Basic Python Syntax

Authored by KKT Perbu

Computers

6th - 8th Grade

Used 4+ times

Milestone Exkul SMP SMA - Q5_2022_Basic Python Syntax
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What symbol is used for commenting out code in Python?

#

%

&

*

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

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

my-variable

1variable

my_variable

my variable

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which statement is used to display output in Python?

print()

input()

scan()

read()

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the result of the following Python code?

x = 3

y = 5

print(x+y)

8

15

"8"

"15"

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is not a Python data type?

float

string

boolean

print

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the correct way to declare a Python list?

list = [1, 2, 3]

list = (1, 2, 3)

list = {1, 2, 3}

list = "1, 2, 3"

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the output of the following code?

x = "hello"

print(x[1])

"h"

"e"

"l"

"o"

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?