Python 3

Python 3

9th Grade

17 Qs

quiz-placeholder

Similar activities

Conditional Construct by Swarn

Conditional Construct by Swarn

9th - 10th Grade

12 Qs

SOFTWARE 7I

SOFTWARE 7I

7th Grade - University

20 Qs

while loop and logical operators

while loop and logical operators

9th Grade

20 Qs

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

9.2 knowledge check

9.2 knowledge check

9th Grade

14 Qs

8.12 C++ Test on Classes

8.12 C++ Test on Classes

9th - 12th Grade

15 Qs

แบบทดสอบก่อนเรียน (Pre-Test) เทคโนโลยีวิทยาการคำนวณ ม.3

แบบทดสอบก่อนเรียน (Pre-Test) เทคโนโลยีวิทยาการคำนวณ ม.3

9th Grade

20 Qs

8 Lazarus Властивості елементів форми

8 Lazarus Властивості елементів форми

8th - 9th Grade

12 Qs

Python 3

Python 3

Assessment

Quiz

Computers

9th Grade

Hard

Created by

Sofia Mesa Giner

Used 32+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code?

🌍🌎

🌍

🌍🌏

No output

Answer explanation

The loop prints emojis until it encounters "🌎", at which point the break statement stops the loop. Thus, only "🌍" is printed.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the printed output?

No output

🔔

🔔🛎

🛎

Answer explanation

The while loop runs as long as count is less than 5.

It prints "🔔" only when count is 3.

After the loop completes its iterations, the else block executes, printing "🛎".

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the result of the following code?

🚀🚀🚀🚀

✈️✈️🚀🚀

✈️✈️✈️✈️

✈️✈️🚀✈️

Answer explanation

The loop prints "✈️" for every iteration, except when num is 2. For that iteration, it prints "🚀" and then the continue statement skips the remaining code in the loop, so "✈️" is not printed.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following lines of code would make the statement “Hello World” repeat 10 times?

print('Hello World' x 10)

print('Hello World' * 10)

print('Hello World' + 10)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following lines of code would output the statement "Python programming is easy!"?

print("Python is easy!")

print("Programming in Python is easy!")

print("Python programming is easy!")

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following code snippets correctly stores the phrase "Hello World" in a variable called a and then prints it?

Media Image
Media Image
Media Image

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following code snippets correctly stores the integer 256 in a variable called points and then prints it?

Media Image
Media Image
Media Image

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?