Search Header Logo

PyWars: Compete For Glory

Authored by Sahil Shriwas

Computers

University

Used 7+ times

PyWars: Compete For Glory
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the following snippet?

0 1 2 2

Error

0 1 2 3

3 3 3 3

None of these

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following code snippet?

example = ["Sunday", "Monday", "Tuesday", "Wednesday"];

print(example[-3:-1])

['Tuesday', 'Wednesday']

['Monday', 'Tuesday']

['Wednesday', 'Monday']

['Sunday', 'Monday']

Error

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of the code?

1

2

Error

None of these

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following types of loops are not supported in Python?

for

do-while

while

None of these

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the following code snippet?

Global

Local

None

Cannot be predicted

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the following code snippet?

[2, 4, 6], [1, 3, 5]

[2, 4, 6], [2, 4, 6]

[1, 3, 5], [1, 3, 5]

None of these

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output?

['apple', 'applE', 'Apple']

['applE', 'apple', 'Apple']

['applE', 'Apple', 'apple']

['Apple', 'applE', 'apple']

None of the above

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?