Flashcards : Python Data Import and Plotting — 36 cartes

Toutes les cartes

1Question

What is the basis of Python's simple syntax?

Réponse

Indentation rather than symbols.

2Question

Since when has Python been developed?

Réponse

Since 1989.

3Question

How can Python be used online?

Réponse

With the Python laboratory.

4Question

Name two Python distributions mentioned.

Réponse

E-dypthon and Anaconda.

5Question

Which two Python applications does this course focus on?

Réponse

Importing data and representing data graphically.

6Question

How is a data table organized?

Réponse

Into rows and columns.

7Question

How many columns does the course data table commonly contain?

Réponse

Two columns.

8Question

What separators can a data file use for decimal values?

Réponse

A comma or a point.

9Question

What must be identified before importing a data file?

Réponse

The separator format between integer and decimal parts.

10Question

What lines must be identified before importing a file?

Réponse

The number of lines to ignore, including headings or units.

11Question

What columns must be identified before importing a file?

Réponse

The columns to import.

12Question

What is the name of the example data file?

Réponse

donnees.txt.

13Question

How are measurements arranged in the example data file?

Réponse

In columns such as t, x, and y with units on a separate line.

14Question

What does numpy.loadtxt() do?

Réponse

It loads numerical data from a text file into a NumPy array.

15Question

What does the dtype parameter specify in numpy.loadtxt()?

Réponse

The data type for the imported values.

16Question

What is the role of the delimiter parameter in numpy.loadtxt()?

Réponse

It defines the character separating columns in the data file.

17Question

What does the skiprows parameter control in numpy.loadtxt()?

Réponse

The number of lines to skip at the start of the file.

18Question

What does the usecols parameter do in numpy.loadtxt()?

Réponse

It selects which columns to import from the file.

19Question

What does the comments parameter identify in numpy.loadtxt()?

Réponse

Characters that mark the start of comments in the file.

20Question

What is the purpose of the converters parameter in numpy.loadtxt()?

Réponse

To convert character strings into numbers during import.

21Question

What happens when unpack=True in numpy.loadtxt()?

Réponse

Data is returned in separate columns as individual arrays.

22Question

What is matplotlib.pyplot in Python?

Réponse

A library module for graphical data representation including point clouds.

23Question

What are the main steps in a basic graphing program using matplotlib?

Réponse

Import NumPy and matplotlib.pyplot, load data, plot, label, and display.

24Question

Which function sets the graph axes in matplotlib?

Réponse

The axis() function.

25Question

Which function adds a graph title in matplotlib?

Réponse

The title() function.

26Question

Which functions label the horizontal and vertical axes in matplotlib?

Réponse

xlabel() labels horizontal and ylabel() labels vertical axes.

27Question

What does the legend() function do in matplotlib?

Réponse

It displays the graph legend.

28Question

What is the purpose of the show() function in matplotlib?

Réponse

It displays the graphs on screen.

29Question

What does plt.plot(x, y, 'o-', color="red", marker="o", linewidth=1, label="vitesse") create?

Réponse

A red point-and-line plot labeled vitesse.

30Question

What does the plot() function do with x and y lists?

Réponse

It places points or connects their abscissas and ordinates.

31Question

Which parameters customize the plot() function's display?

Réponse

Color, label, and marker parameters.

32Question

What does the quiver() function draw?

Réponse

Vectors using origin coordinates and vector components.

33Question

Which inputs does quiver() use to draw vectors?

Réponse

Origin coordinates x and y, vector components, and display parameters.

34Question

What velocity vectors are used in the example to draw three vectors?

Réponse

vx=[0.007, 0.013, 0.019] and vy=[0.002, 0.002, -0.001].

35Question

What origin coordinates are used in the example for drawing vectors?

Réponse

ax=[0.0, 0.02, 0.04] and ay=[1.503, 1.507, 1.505].

36Question

What does the completed matplotlib graph represent?

Réponse

The trajectory of a falling ball with velocity vectors.

Teste-toi avec le QCM

Teste tes connaissances avec un QCM de 14 questions sur Python Data Import and Plotting.

1. What structural feature does Python use to define blocks of code?

2. Which pair of applications is emphasized for Python in physics and chemistry?

Faire le QCM →

Consultez la fiche

Révisez le cours complet dans la fiche de révision de Python Data Import and Plotting.

Voir la fiche →

Cours similaires

Crée tes propres flashcards

Importe ton cours et l'IA génère des flashcards en 30 secondes.

Générateur de flashcards