Python Marathon (Difficult Round)

Python Marathon (Difficult Round)

1st - 6th Grade

5 Qs

quiz-placeholder

Similar activities

Fixed Voice & VAS

Fixed Voice & VAS

1st Grade

10 Qs

Customer Requests

Customer Requests

1st Grade

10 Qs

Supplementary Non-Technical Cases

Supplementary Non-Technical Cases

1st Grade

10 Qs

Teamwork For Military Service

Teamwork For Military Service

1st - 12th Grade

10 Qs

Vocabulary 2.01

Vocabulary 2.01

KG - University

10 Qs

Quiz Inventarisasi

Quiz Inventarisasi

1st - 4th Grade

10 Qs

OLE Survey

OLE Survey

1st Grade - Professional Development

10 Qs

Lesson 44 - Dictionary Datatype 2

Lesson 44 - Dictionary Datatype 2

5th - 8th Grade

10 Qs

Python Marathon (Difficult Round)

Python Marathon (Difficult Round)

Assessment

Quiz

Professional Development

1st - 6th Grade

Practice Problem

Hard

Created by

Reymann Zubieta

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Media Image

What is the output of the following code?

P is present

P is present Not present

Not present

None of the above

2.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Media Image

After execution of the following code, what is the value of s?

foofoofoobarbarbarfoobar

3foo3bar1foo1bar

foobarfoobar

2foo2bar1foo1bar

3.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

You have a set s defined as follows:

s = {100, 200, 300}

Which one of the following statements DOES NOT correctly produce the union of s and the set {300, 400, 500}:

s.union(set([300, 400, 500]))

s | [300, 400, 500]

s.union({300, 400, 500})

s | {300, 400, 500}

4.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

Which of the following prints “Hello world\”?

print("Hello world\")

print("Hello world","\")

print("Hello world\\")

All of the above

5.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Media Image

What is the output of the following function call?

5

15

(15, 10)

(5, 10)

Access all questions and much more by creating a free account

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

Already have an account?

Discover more resources for Professional Development