Python

Python

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

Python

Python

1st - 10th Grade

10 Qs

Class VIII_Basic Python Programming Quiz

Class VIII_Basic Python Programming Quiz

8th Grade

10 Qs

ASK F2 -KOD ARAHAN (PYTHON)

ASK F2 -KOD ARAHAN (PYTHON)

1st Grade - University

15 Qs

Python Variables

Python Variables

6th Grade

10 Qs

KODEKIDDO HACK #MLH3

KODEKIDDO HACK #MLH3

4th Grade - University

10 Qs

Python Basics

Python Basics

6th - 12th Grade

9 Qs

python String and comment

python String and comment

3rd Grade - University

13 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

Python

Python

Assessment

Quiz

Computers

6th - 8th Grade

Medium

Created by

Tarun Vij

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

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

print("Hello World") 

echo("Hello World");

p("Hello World")

print("Hello World"):

2.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

Which one is NOT a legal variable name?

my-var 

my_var

_myvar

Myvar

3.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

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

x = 5

x = 5;

x = 5:

All of the above

4.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

What is the correct file extension for Python files?

.pyth

.pyt

.py

.pt

5.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

Which operator is used to multiply numbers?

X

x

*

xx

6.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

Which operator can be used to compare two values?

==

=

<>

><

7.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

How do you start writing an if statement in Python?

if x > y then:  

if x > y;

if x > y

if x > y:  

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?