Con quale istruzione possiamo ordinare i seguenti numeri dal più piccolo al più grande?
b=[5, 3, 98, 99, -16]
Quiz recupero 4G
Quiz
•
Computers
•
9th Grade
•
Easy
Giulia Iannattone
Used 6+ times
FREE Resource
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Con quale istruzione possiamo ordinare i seguenti numeri dal più piccolo al più grande?
b=[5, 3, 98, 99, -16]
b.reverse()
b.small_big
b.index()
b.sort()
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Con quale istruzione prendiamo il primo elemento della lista:
>>> vocali = ['a', 'e', 'i', 'o', 'u']
vocali[0]
vocali[1]
vocali[-1]
a[0]
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
La funzione len() viene usata per
contare gli elementi di una stringa
trovare la lunghezza di una stringa
restituisce l'indice di un determinato elemento
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Quali tra i seguenti modi va usato per creare una lista in Python?
lista=(1,2,3)
lista=[1;2;3]
lista={1,2,3}
lista=[1,2,3]
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Quale simbolo manca nella seguente definizione di un sottoprogramma?
def la_mia_funzione()
=
:
;
è completa così
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Qual è il risultato dell'espressione 'lambda x: x**2' applicata alla lista [1, 2, 3, 4]?
[1, 4, 9, 16]
[2, 4, 6, 8]
[1, 2, 3, 4]
[3, 6, 9, 12]
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Come si applica una funzione lambda ad ogni elemento di una lista in Python?
Utilizzando il metodo 'map'
Utilizzando il metodo 'apply'
Utilizzando il metodo 'filter'
Utilizzando il metodo 'replace'
15 questions
Quiz sull'Architettura del Calcolatore
Quiz
•
9th Grade - University
15 questions
Quiz sui Fondamenti di Informatica
Quiz
•
7th Grade - University
20 questions
Nozioni fondamentali dell'Informatica
Quiz
•
8th Grade - University
15 questions
Software
Quiz
•
8th - 12th Grade
15 questions
Algoritmo
Quiz
•
9th Grade - University
15 questions
Introduzione ad Excel
Quiz
•
9th Grade
17 questions
Quiz sulla Stampa 3D
Quiz
•
9th Grade - University
19 questions
Java Base
Quiz
•
9th - 12th Grade
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers
Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons
Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade