C4M2-S7-J1-ListsetTuples

C4M2-S7-J1-ListsetTuples

University

11 Qs

quiz-placeholder

Similar activities

Principles of Programming

Principles of Programming

KG - University

13 Qs

Lập trình trực quan

Lập trình trực quan

University

15 Qs

QUIZ BASIC NETWORK

QUIZ BASIC NETWORK

University

15 Qs

02 - Python - Introduction & Installation

02 - Python - Introduction & Installation

University - Professional Development

10 Qs

Quizz_Algoritma, Pemrograman, dan RPL_Accifence

Quizz_Algoritma, Pemrograman, dan RPL_Accifence

University

10 Qs

Prueba inicial Python

Prueba inicial Python

University

12 Qs

Data Science Quiz

Data Science Quiz

University

12 Qs

Algoritma dan Pemrograman Bab 1

Algoritma dan Pemrograman Bab 1

University

15 Qs

C4M2-S7-J1-ListsetTuples

C4M2-S7-J1-ListsetTuples

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Rasha Ali

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...

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Quelle est la sortie du code suivant ?

list = [ 'Tech', 404, 3.03, 'Beamers', 33.3 ]

print(list[1:3])

[ 'Tech', 404, 3.03, 'Beamers', 33.3 ]

Aucune des réponses

[404, 3.03] 

['Tech', 'Beamers']

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Quelle est la valeur des couleurs[2] ? 

couleurs = ['rouge', 'orange', 'jaune', 'vert', 'bleu', 'indigo', 'violet']

bleu


orange

indigo

jaune

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Si le code suivant est exécuté en Python, quel serait le résultat ?

num = '5'*'5'

27

TypeError : impossible de multiplier la séquence par la non-int du type 'str' 

9

55555

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

list1 = list("Technology")

#Crée une liste avec les caractères T, e, c, h, n, o, l, o, g, y

Vrai

Faux

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

list1=['t', 'e', 'c', 'h', 'n', 'o', 'l', 'o', 'g', 'y']

max(list1)

't'

'g'

'y'

'e'

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

list1=['t', 'e', 'c', 'h', 'n', 'o', 'l', 'o', 'g', 'y']

sum(list1)

154

345

12

TypeError: unsupported operand type(s) for +: 'int' and 'str'

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

list1=['I', 'love']

list2=['data', 'and' , 'python']

list3 = list1+list2

list3

TypeError: unsupported operand type(s) for +

['I', 'love', 'data', 'and', 'python']


34

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?