Python Test 3A

Python Test 3A

Professional Development

10 Qs

quiz-placeholder

Similar activities

SOAL MANAJERIAL_1

SOAL MANAJERIAL_1

Professional Development

15 Qs

CORONA QUIZ

CORONA QUIZ

Professional Development

10 Qs

Khái quát về Hoạt động trải nghiệm, hướng nghiệp (1)

Khái quát về Hoạt động trải nghiệm, hướng nghiệp (1)

Professional Development

8 Qs

Pegadaian PEA 2023 - Bootcamp

Pegadaian PEA 2023 - Bootcamp

Professional Development

10 Qs

Kurikulum PAUD

Kurikulum PAUD

Professional Development

15 Qs

Redmi Note 10 Series

Redmi Note 10 Series

Professional Development

12 Qs

Complete Recovery  EQ DAY 2

Complete Recovery EQ DAY 2

Professional Development

10 Qs

TETAP PRODUKTIF DENGAN BEROLAHRAGA DI MASA PANDEMI

TETAP PRODUKTIF DENGAN BEROLAHRAGA DI MASA PANDEMI

Professional Development

10 Qs

Python Test 3A

Python Test 3A

Assessment

Quiz

Professional Development

Professional Development

Practice Problem

Hard

Created by

saurabh srivastava

Used 64+ 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

Choose the correct option with respect to Python.

Both tuples and lists are immutable.

Tuples are immutable while lists are mutable.

Both tuples and lists are mutable.

Tuples are mutable while lists are immutable.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 

What will be the output of below Python code?

tuple1=(5,1,7,6,2)

tuple1.pop(2)

print(tuple1)

(5,1,6,2)

(5,1,7,6)

(5,1,7,6,2)

Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of below Python code?

tuple1=(2,4,3)

tuple3=tuple1*2

print(tuple3)

(4,8,6)

(2,4,3,2,4,3)

(2,2,4,4,3,3)

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of below Python code?

tupl=("annie","hena","sid")

print(tupl[-3:0])

("annie")

()

None

Error as slicing is not possible in tuple.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following options will not result in an error when performed on tuples in Python where tupl=(5,2,7,0,3)?

tupl[1]=2

tupl.append(2)

tupl1=tupl+tupl

tupl.sort()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of below Python code?

tupl=()

tupl1=tupl*2

print(len(tupl1))

0

2

1

Error as tuple object has no attribute to len

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of below Python code?

tupl=([2,3],"abc",0,9)

tupl[0][1]=1

print(tupl)

([2,3],"abc",0,9)

([1,3],"abc",0,9)

([2,1],"abc",0,9)

Error

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?

Discover more resources for Professional Development