Flashcard: Python Data Import and Plotting — 36 carte

Tutte le carte

1Domanda

What is the basis of Python's simple syntax?

Risposta

Indentation rather than symbols.

2Domanda

Since when has Python been developed?

Risposta

Since 1989.

3Domanda

How can Python be used online?

Risposta

With the Python laboratory.

4Domanda

Name two Python distributions mentioned.

Risposta

E-dypthon and Anaconda.

5Domanda

Which two Python applications does this course focus on?

Risposta

Importing data and representing data graphically.

6Domanda

How is a data table organized?

Risposta

Into rows and columns.

7Domanda

How many columns does the course data table commonly contain?

Risposta

Two columns.

8Domanda

What separators can a data file use for decimal values?

Risposta

A comma or a point.

9Domanda

What must be identified before importing a data file?

Risposta

The separator format between integer and decimal parts.

10Domanda

What lines must be identified before importing a file?

Risposta

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

11Domanda

What columns must be identified before importing a file?

Risposta

The columns to import.

12Domanda

What is the name of the example data file?

Risposta

donnees.txt.

13Domanda

How are measurements arranged in the example data file?

Risposta

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

14Domanda

What does numpy.loadtxt() do?

Risposta

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

15Domanda

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

Risposta

The data type for the imported values.

16Domanda

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

Risposta

It defines the character separating columns in the data file.

17Domanda

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

Risposta

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

18Domanda

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

Risposta

It selects which columns to import from the file.

19Domanda

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

Risposta

Characters that mark the start of comments in the file.

20Domanda

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

Risposta

To convert character strings into numbers during import.

21Domanda

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

Risposta

Data is returned in separate columns as individual arrays.

22Domanda

What is matplotlib.pyplot in Python?

Risposta

A library module for graphical data representation including point clouds.

23Domanda

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

Risposta

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

24Domanda

Which function sets the graph axes in matplotlib?

Risposta

The axis() function.

25Domanda

Which function adds a graph title in matplotlib?

Risposta

The title() function.

26Domanda

Which functions label the horizontal and vertical axes in matplotlib?

Risposta

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

27Domanda

What does the legend() function do in matplotlib?

Risposta

It displays the graph legend.

28Domanda

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

Risposta

It displays the graphs on screen.

29Domanda

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

Risposta

A red point-and-line plot labeled vitesse.

30Domanda

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

Risposta

It places points or connects their abscissas and ordinates.

31Domanda

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

Risposta

Color, label, and marker parameters.

32Domanda

What does the quiver() function draw?

Risposta

Vectors using origin coordinates and vector components.

33Domanda

Which inputs does quiver() use to draw vectors?

Risposta

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

34Domanda

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

Risposta

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

35Domanda

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

Risposta

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

36Domanda

What does the completed matplotlib graph represent?

Risposta

The trajectory of a falling ball with velocity vectors.

Metti alla prova te stesso con il quiz

Metti alla prova le tue conoscenze con 14 domande su 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?

Fai il quiz →

Leggi la scheda di revisione

Ripassa il corso completo nella scheda di revisione per Python Data Import and Plotting.

Vedi la scheda di revisione →

Similar courses

Crea le tue flashcard

Importa il tuo corso e l'AI genera flashcard in 30 secondi.

Generatore di flashcard