- Esecutori
-
Impara
Impara Python Esempi eseguibili, NumPy, pandas e altro Impara l'IA / Machine LearningReti neurali, ML e LLM da zero Impara C e C++ Puntatori, memoria, STL e C++ moderno Impara C#Fondamenti, OOP, LINQ, async ed esercizi .NET Impara MatplotlibGrafici a linee, barre, dispersione e torta con visualizzatori Impara RustOwnership, trait, gestione degli errori e thread Impara GoSlice, interfacce, goroutine e canali Algoritmi Python Ricerca, ordinamento, ricorsione e visualizzazioni O(n) Algoritmi C e C++ Confronta le implementazioni in C e C++ Programmazione per bambini Impara a programmare giocando!
- QuizNuovo
- SfideNuovo
- Per docentiNuovo
- Aggiornamenti
- Offrimi un caffè
Quiz di AI & Machine Learning: NumPy Arrays
This quiz checks the NumPy basics every data science and machine learning workflow uses. You will predict the output of short snippets that create, index, slice, filter and reshape arrays, and spot the one that fails.
Domanda di esempio
Domanda 1 di 10What does this print?
import numpy as np
a = np.array([1, 2, 3])
print((a * 2).tolist())
Mostra la risposta
B. [2, 4, 6] NumPy applies * 2 to every element, so you get [2, 4, 6]. Repeating the items, [1, 2, 3, 1, 2, 3], is what * does to a plain Python list.
Cosa copre questo quiz
- Element-wise math on arrays vs lists
shape,dtypeandreshape()- Indexing, slicing and boolean masks
- Slices are views, not copies
- Summing along an axis
Domande frequenti
Serve un account?
No. Chiunque può giocare. Accedi per salvare XP, serie, badge e cronologia.
Posso rifarlo?
Sì. Il tuo miglior punteggio resta salvato, e domande e risposte vengono mescolate ogni volta.