Milestone Exkul SMP SMA - Q5_2022_Basic Python Syntax

Milestone Exkul SMP SMA - Q5_2022_Basic Python Syntax

6th - 8th Grade

15 Qs

quiz-placeholder

Similar activities

Python basic commands

Python basic commands

8th Grade

20 Qs

Python Variables

Python Variables

6th Grade

10 Qs

Python

Python

7th Grade

10 Qs

Python Assessment

Python Assessment

7th Grade

20 Qs

Python Review

Python Review

7th - 8th Grade

17 Qs

Python_2R

Python_2R

KG - Professional Development

20 Qs

6-сынып python

6-сынып python

6th Grade

20 Qs

Python basics

Python basics

7th - 10th Grade

18 Qs

Milestone Exkul SMP SMA - Q5_2022_Basic Python Syntax

Milestone Exkul SMP SMA - Q5_2022_Basic Python Syntax

Assessment

Quiz

Computers

6th - 8th Grade

Medium

Created by

KKT Perbu

Used 4+ times

FREE Resource

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"

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?