PyWars: Compete For Glory

PyWars: Compete For Glory

University

30 Qs

quiz-placeholder

Similar activities

Quiz # 3- Computer Programming 2

Quiz # 3- Computer Programming 2

University

30 Qs

UNIT - III TEST

UNIT - III TEST

University

30 Qs

VAC - Java -Applets and Servlets

VAC - Java -Applets and Servlets

University

25 Qs

Think Tank Tuesday

Think Tank Tuesday

University

30 Qs

C Language Basics

C Language Basics

University

26 Qs

programming quiz

programming quiz

University

25 Qs

Computer Programming-2

Computer Programming-2

University

30 Qs

Coding Competation(Round 1)

Coding Competation(Round 1)

University

30 Qs

PyWars: Compete For Glory

PyWars: Compete For Glory

Assessment

Quiz

Computers

University

Hard

Created by

Sahil Shriwas

Used 7+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?