Tarjetas de memoria: Python Data Import and Plotting — 36 tarjetas

Todas las tarjetas

1Pregunta

What is the basis of Python's simple syntax?

Respuesta

Indentation rather than symbols.

2Pregunta

Since when has Python been developed?

Respuesta

Since 1989.

3Pregunta

How can Python be used online?

Respuesta

With the Python laboratory.

4Pregunta

Name two Python distributions mentioned.

Respuesta

E-dypthon and Anaconda.

5Pregunta

Which two Python applications does this course focus on?

Respuesta

Importing data and representing data graphically.

6Pregunta

How is a data table organized?

Respuesta

Into rows and columns.

7Pregunta

How many columns does the course data table commonly contain?

Respuesta

Two columns.

8Pregunta

What separators can a data file use for decimal values?

Respuesta

A comma or a point.

9Pregunta

What must be identified before importing a data file?

Respuesta

The separator format between integer and decimal parts.

10Pregunta

What lines must be identified before importing a file?

Respuesta

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

11Pregunta

What columns must be identified before importing a file?

Respuesta

The columns to import.

12Pregunta

What is the name of the example data file?

Respuesta

donnees.txt.

13Pregunta

How are measurements arranged in the example data file?

Respuesta

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

14Pregunta

What does numpy.loadtxt() do?

Respuesta

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

15Pregunta

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

Respuesta

The data type for the imported values.

16Pregunta

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

Respuesta

It defines the character separating columns in the data file.

17Pregunta

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

Respuesta

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

18Pregunta

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

Respuesta

It selects which columns to import from the file.

19Pregunta

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

Respuesta

Characters that mark the start of comments in the file.

20Pregunta

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

Respuesta

To convert character strings into numbers during import.

21Pregunta

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

Respuesta

Data is returned in separate columns as individual arrays.

22Pregunta

What is matplotlib.pyplot in Python?

Respuesta

A library module for graphical data representation including point clouds.

23Pregunta

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

Respuesta

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

24Pregunta

Which function sets the graph axes in matplotlib?

Respuesta

The axis() function.

25Pregunta

Which function adds a graph title in matplotlib?

Respuesta

The title() function.

26Pregunta

Which functions label the horizontal and vertical axes in matplotlib?

Respuesta

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

27Pregunta

What does the legend() function do in matplotlib?

Respuesta

It displays the graph legend.

28Pregunta

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

Respuesta

It displays the graphs on screen.

29Pregunta

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

Respuesta

A red point-and-line plot labeled vitesse.

30Pregunta

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

Respuesta

It places points or connects their abscissas and ordinates.

31Pregunta

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

Respuesta

Color, label, and marker parameters.

32Pregunta

What does the quiver() function draw?

Respuesta

Vectors using origin coordinates and vector components.

33Pregunta

Which inputs does quiver() use to draw vectors?

Respuesta

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

34Pregunta

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

Respuesta

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

35Pregunta

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

Respuesta

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

36Pregunta

What does the completed matplotlib graph represent?

Respuesta

The trajectory of a falling ball with velocity vectors.

Ponte a prueba con el cuestionario

Pon a prueba tus conocimientos con 14 preguntas sobre 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?

Realiza el cuestionario →

Lee la hoja de repaso

Revisa el curso completo en la hoja de repaso para Python Data Import and Plotting.

Ver hoja de repaso →

Similar courses

Crea tus propias tarjetas de memoria

Importa tu curso y la IA genera tarjetas de memoria en 30 segundos.

Generador de tarjetas de memoria