Round 3

Round 3

University

25 Qs

quiz-placeholder

Similar activities

Quiz No. 3 (Finals)

Quiz No. 3 (Finals)

University

20 Qs

Lesson 1 and 2 Quiz

Lesson 1 and 2 Quiz

University

20 Qs

1ºDAM/DAW - Entornos de Desarrollo - UD1-6 - Prof. C. Boni

1ºDAM/DAW - Entornos de Desarrollo - UD1-6 - Prof. C. Boni

University - Professional Development

20 Qs

Digital introductions

Digital introductions

University

20 Qs

PARC Linux Basic Part 2

PARC Linux Basic Part 2

University

20 Qs

CSS Pseudo dan CSS Grid System

CSS Pseudo dan CSS Grid System

University

20 Qs

business 1.4 revision

business 1.4 revision

KG - Professional Development

20 Qs

Round 3

Round 3

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

San Saravanan

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the purpose of the 'if name == "__main__":' statement?

To allow code to run only when the script is executed directly, not when imported.

To define global variables for the entire script.

To prevent syntax errors in the code.

To ensure the script runs faster when imported.

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of the following Python expression?

round(4.576)

4

4.6

5

4.5

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Media Image

What will be the output of the following Python program?

x = 'abcd'

for i in range(len(x)):

print(i)

0 1 2 3

1 2 3 4

a b c d

error

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Media Image

What will be the output of the following Python code?

1 2 3

123

error

none of the mentioned

5.

MULTIPLE CHOICE QUESTION

45 sec • 3 pts

Media Image

What will be the output of the following Python code?

225

15

25

125

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Media Image

What will be the output of the following Python program?

{‘a’, ‘c’, ‘c’, ‘p’, ‘q’, ‘s’, ‘a’, ‘n’}

{‘abc’, ‘p’, ‘q’, ‘san’}

{‘a’, ‘b’, ‘c’, [‘p’, ‘q’], ‘san}

{‘a’, ‘b’, ‘c’, ‘p’, ‘q’, ‘san’}

7.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

Media Image

What will be the output of the following Python code snippet?

12

224

None

Error

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?