C4M2-S7-J1-ListsetTuples

C4M2-S7-J1-ListsetTuples

University

11 Qs

quiz-placeholder

Similar activities

Python 145

Python 145

4th Grade - Professional Development

11 Qs

Advance Python

Advance Python

KG - Professional Development

10 Qs

Python Basics

Python Basics

6th Grade - University

10 Qs

Basic python

Basic python

University

10 Qs

Python Round 2

Python Round 2

University

10 Qs

Python Programming 1: print, strings, variables, casting

Python Programming 1: print, strings, variables, casting

9th Grade - University

15 Qs

Lý thuyết về Python

Lý thuyết về Python

3rd Grade - University

10 Qs

Python 1

Python 1

University

11 Qs

C4M2-S7-J1-ListsetTuples

C4M2-S7-J1-ListsetTuples

Assessment

Quiz

Computers

University

Medium

Created by

Rasha Ali

Used 1+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?