Weekly Contest #11

Weekly Contest #11

University

10 Qs

quiz-placeholder

Similar activities

HMS UNIT 1

HMS UNIT 1

University

15 Qs

Internet

Internet

University

11 Qs

Revision YBP128

Revision YBP128

University

10 Qs

Quizzical series- Principles of management

Quizzical series- Principles of management

University - Professional Development

10 Qs

1499EDN Week 3 Cognitive Development

1499EDN Week 3 Cognitive Development

University

11 Qs

Language Origin and Properties

Language Origin and Properties

University

11 Qs

"6 Thinking Hats" Method

"6 Thinking Hats" Method

University

10 Qs

COVID 19 AWARENESS QUIZ

COVID 19 AWARENESS QUIZ

University

12 Qs

Weekly Contest #11

Weekly Contest #11

Assessment

Quiz

Education

University

Practice Problem

Medium

Created by

TechXNinjas undefined

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is used to exit a loop prematurely?

return

break

exit

close

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about the "do-while" loop?

It is similar to the "while" loop

It does not support a loop condition

The loop body is executed at least once

It can only be used for counting

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

................. can only test for equality, where as ....................... can evaluate any type of the Boolean expression.

switch, if

if, switch

if, break

continue, if

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the "elif" statement in Python?

  • To handle exceptions

To create a loop

To define a function

To check additional conditions after the initial if statement

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code snippet?

for i in range(5):
   if i == 3:
       continue
   print(i)

0 1 2 3 4

0 1 2

0 1 2 3

0 1 2 4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code snippet?

def function(x):
   return x * 3

numbers = [1, 2, 3, 4, 5]
result = list(map(lambda num: function(num), numbers))
print(result)

[3, 6, 9, 12, 15]

[1, 2, 3, 4, 5]

[1, 3, 9, 16, 25]

[3, 4, 5, 6, 7]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the del statement?

  • Deletes a file from the filesystem

Removes an element from a list by value

Removes an attribute from an object

Exits the program

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

Already have an account?