Python-Partie2

Python-Partie2

1st Grade

10 Qs

quiz-placeholder

Similar activities

Le quiz de Kalis

Le quiz de Kalis

KG - Professional Development

10 Qs

nintendo quiz

nintendo quiz

1st - 5th Grade

8 Qs

Python

Python

1st - 10th Grade

10 Qs

Manager de proximité 2

Manager de proximité 2

1st Grade

10 Qs

Python-Partie10

Python-Partie10

1st Grade

10 Qs

Python-Partie6

Python-Partie6

1st Grade

10 Qs

Python-Partie3

Python-Partie3

1st Grade

10 Qs

Informatique

Informatique

1st Grade

15 Qs

Python-Partie2

Python-Partie2

Assessment

Quiz

Other, Computers

1st Grade

Hard

Created by

PASCAL RICHY

Used 73+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quelle fonction insère un objet à un index donné dans une liste ?

list.index(obj)

list.insert(index, obj)

list.pop(obj=list[-1])

list.remove(obj)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

En python, quelle est la bonne méthode pour charger un module ?

include math

import math

#include math.h

using math

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quelle est la sortie pour 'python' [-3] ?

‘h’

‘t’

‘o’

Erreur : index négatif.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quelle sera la sortie du code suivant: print type(type(int)) ?

type ‘int’

type ‘type’

Error

0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quelle sera la sortie du code suivant ?

[ (a,b) for a in range(3) for b in range(a) ]

[(1,0),(2,0),(2,1)]

[(1,0),(2,1),(2,1)]

[(0,0),(1,1),(2,2)]

[(1,0),(2,1),(3,2)]

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Quelle sera la sortie du code suivant ?

myList = ['a','b','c','d']

print "".join(myList)

[‘a’,’b’,’c’,’d’]

abcd

Null

Erreur

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quelle sera la sortie du code suivant?

print(max('welcom to waytolearnx'))

x

w

y

.

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?