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 Assessment

Python Assessment

7th Grade

20 Qs

Информатика

Информатика

6th Grade

20 Qs

Python Basics

Python Basics

KG - University

16 Qs

Python

Python

7th - 8th Grade

13 Qs

UH Informatika Bab.VI

UH Informatika Bab.VI

8th Grade

20 Qs

Python

Python

7th Grade

10 Qs

Олимпиада 8 А класс

Олимпиада 8 А класс

8th Grade

20 Qs

Python Basic

Python Basic

6th - 8th Grade

10 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?