Python Basics Quiz 1

Python Basics Quiz 1

8th Grade

15 Qs

quiz-placeholder

Similar activities

CCEA Digital Technology Chapter 14 Multimedia Applications

CCEA Digital Technology Chapter 14 Multimedia Applications

11th Grade

20 Qs

Què en saps de GSuite?

Què en saps de GSuite?

University - Professional Development

10 Qs

UNIT 1.8 ELCE

UNIT 1.8 ELCE

10th Grade

14 Qs

Access - Lesson 14

Access - Lesson 14

9th - 12th Grade

10 Qs

ICT 10 : Introduction to Adobe Illustrator(CS5)

ICT 10 : Introduction to Adobe Illustrator(CS5)

10th Grade

10 Qs

مراجعة حاسب2 ثلاث وحدات

مراجعة حاسب2 ثلاث وحدات

11th Grade

16 Qs

Computer Science - X

Computer Science - X

8th - 10th Grade

20 Qs

4.6.4 Logic Gates

4.6.4 Logic Gates

10th Grade - Professional Development

15 Qs

Python Basics Quiz 1

Python Basics Quiz 1

Assessment

Quiz

Computers

8th Grade

Medium

Created by

Shaun Morrison

Used 5+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to print "Hello, World!"?

print("Hello, World!")

echo "Hello, World!"

printf("Hello, World!")

System.out.println("Hello, World!")

Answer explanation

The correct way to print "Hello, World!" in Python is using the print() function.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to assign the value 10 to a variable named number in Python?

number = 10

int number = 10

10 = number

number := 10

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code snippet?

Greater

3

5

No output

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following statements correctly uses `elif` in Python?

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code snippet?

High

Low

3

No output

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a comparison operator?

+

=

==

*

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will be the output of the following code snippet?

x is less than y

x is equal to y

x is greater than y

No output

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