Python Day 8

Python Day 8

University

7 Qs

quiz-placeholder

Similar activities

UNIT-1 PYTHON BASICS

UNIT-1 PYTHON BASICS

University

10 Qs

CSE_Chap1

CSE_Chap1

University

10 Qs

Adobe Photoshop

Adobe Photoshop

University

10 Qs

Access

Access

10th Grade - University

11 Qs

CSC1243 - Introduction to Computer Programs (Programming Langua)

CSC1243 - Introduction to Computer Programs (Programming Langua)

University

10 Qs

Software Testing

Software Testing

12th Grade - University

10 Qs

MULTIMEDIA STORYBOARD

MULTIMEDIA STORYBOARD

University

10 Qs

Chapter 3 Exploring Linux Filesystems

Chapter 3 Exploring Linux Filesystems

11th Grade - University

10 Qs

Python Day 8

Python Day 8

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Ninitha C

FREE Resource

AI

Enhance your content in a minute

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

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

List = [2.3, 4.445, 3, 5.33, 1.054, 2.5] print(List.pop()) What willbe the answer?

2.3
2.5
1.054
4.445

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python_____________ are written with round brackets

tuples
dictionary
list
set

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Media Image

Consider the code and What is the result?

('A','B',' ','C','D','EF')
['A','B','C','D','E','F']
{'A','B',' ','C','D','EF'}
['A','B',' ','C','D','EF']

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code aTuple = (100, 200, 300, 400, 500) aTuple[1] = 800 print(aTuple)

TypeError
(100, 800, 200, 300, 400, 500)
(800, 100, 200, 300, 400, 500)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

my_list = ['apple','orange','melon','papaya'] print(my_list[2]) What is the output?

apple
orange
papaya
melon

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these pieces of code would return the name "Harry" from the following list? nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

nameList["1"]
nameList[1]
nameList(4)
nameList["4"]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The list needs one more name added to the end - "Felipe". Which piece of code below would do this? nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

nameList.append(Felipe)
append(nameList,"Felipe")
nameList.append("Felipe")
nameList.append["Felipe",7]