Python-Partie2

Quiz
•
Other, Computers
•
1st Grade
•
Hard
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
Similar Resources on Wayground
9 questions
Le nom propre et le nom commun

Quiz
•
1st - 2nd Grade
15 questions
Les heures

Quiz
•
1st Grade
10 questions
VOYELLES COMPOSÉES ET NASALES

Quiz
•
1st Grade
12 questions
Adjectifs interrogatifs: quel, quelle, quels, quelles

Quiz
•
KG - University
10 questions
french

Quiz
•
1st - 5th Grade
10 questions
INFOS COMMERCIALES S30

Quiz
•
1st Grade
10 questions
Python-Partie3

Quiz
•
1st Grade
14 questions
Les volailles

Quiz
•
1st - 3rd Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
20 questions
addition

Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences

Quiz
•
1st - 3rd Grade
20 questions
Addition and Subtraction facts

Quiz
•
1st - 3rd Grade
20 questions
Place Value

Quiz
•
KG - 3rd Grade
10 questions
Exploring Properties of Matter

Interactive video
•
1st - 5th Grade
10 questions
Odd and even numbers

Quiz
•
1st - 2nd Grade
10 questions
Exploring the 5 Regions of the United States

Interactive video
•
1st - 5th Grade
7 questions
Parts of Speech

Lesson
•
1st - 12th Grade