PyWars: Compete For Glory

PyWars: Compete For Glory

University

30 Qs

quiz-placeholder

Similar activities

Ethics in Cyberspace

Ethics in Cyberspace

University

25 Qs

Quiz on Operating System Basics

Quiz on Operating System Basics

University

25 Qs

2.7 System Software

2.7 System Software

12th Grade - University

25 Qs

R E V I E W E R

R E V I E W E R

University

25 Qs

Angular 4

Angular 4

University

25 Qs

ITElec1_Recitation_1

ITElec1_Recitation_1

University

25 Qs

C++

C++

University

25 Qs

Application Software

Application Software

University

29 Qs

PyWars: Compete For Glory

PyWars: Compete For Glory

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Sahil Shriwas

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

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

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?