Python set 2

Python set 2

University

10 Qs

quiz-placeholder

Similar activities

GKA2043 Quiz 1

GKA2043 Quiz 1

University

10 Qs

Training External

Training External

University

15 Qs

PIPING TECHNIQUES

PIPING TECHNIQUES

9th Grade - University

10 Qs

Kinh tế Đại cương - Chương 4

Kinh tế Đại cương - Chương 4

University

12 Qs

Quizomania-2024 Round 1

Quizomania-2024 Round 1

University

15 Qs

คิดในใจ

คิดในใจ

12th Grade - University

10 Qs

QUIZ CONVICATION 1.0

QUIZ CONVICATION 1.0

University

10 Qs

Defense Expo Quiz

Defense Expo Quiz

University

10 Qs

Python set 2

Python set 2

Assessment

Quiz

Other

University

Practice Problem

Hard

Created by

ESPARK 2023

Used 5+ 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 of the following functions is a built-in function in python?

sqrt()

factorial()

print()

seed()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does pip stand for python?

Preferred Installer Program

Pip Installs Python

Pip Installs Packages

All of the mentioned

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following functions can help us to find the version of python that we are currently working on?

sys.version[]

sys.version(1)

sys.version(0)

sys.version

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

set1 = {1, 3, 5}

set2 = {2, 4, 6}

print(len(set1 + set2))

error

6

3

0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

s1 = {1, 2, 3, 4, 5}

s2 = {2, 4, 6}

print(s1 ^ s2)

{1,2,3,4,5}

{2,4}

{1,3,5,6}

{1,6,5,7}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code snippet?

A) 0 1 0

B) 0 1 2

C) 0 1 StopIteration

D) None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code snippet ?

A) 2 3

B) 1 2

C) error

D) None of the above

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?