Python basics

Python basics

9th - 12th Grade

16 Qs

quiz-placeholder

Similar activities

Lua Review Corona SDK with Notepad++

Lua Review Corona SDK with Notepad++

10th - 12th Grade

15 Qs

Arduino

Arduino

7th - 9th Grade

15 Qs

Ôn tập học kỳ I

Ôn tập học kỳ I

9th - 12th Grade

20 Qs

Y10M2A2 - Selection

Y10M2A2 - Selection

6th - 10th Grade

15 Qs

Traffic Light Project Quiz

Traffic Light Project Quiz

9th Grade

17 Qs

Belajar Elemen 1 XI TKJ PSTS 23/24

Belajar Elemen 1 XI TKJ PSTS 23/24

11th Grade

20 Qs

History of Computers

History of Computers

6th - 12th Grade

15 Qs

Python Recap

Python Recap

7th Grade - University

20 Qs

Python basics

Python basics

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Suman Joshi

Used 824+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a correct syntax to output "Hello World" in Python?

echo("Hello World")

echo "Hello World"

print("Hello World")

PRINT("Hello World")

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you insert COMMENTS in Python code?

/*this is a comment

//this is a comment

#this is a comment

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is NOT a legal variable name?

my_var

myvar

_myvar

my-var

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct file extension for Python files?

.py

.pt

.pyt

.pyth

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, 'Hello', is the same as "Hello"

yes

no

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator can be used to compare two values?

=

<>

><

==

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a variable with the numeric value 5?

Both are correct

x=5

x=int(5)

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?

Discover more resources for Computers