Karteikarten: Python Data Import and Plotting — 36 Karten

Alle Karten

1Frage

What is the basis of Python's simple syntax?

Antwort

Indentation rather than symbols.

2Frage

Since when has Python been developed?

Antwort

Since 1989.

3Frage

How can Python be used online?

Antwort

With the Python laboratory.

4Frage

Name two Python distributions mentioned.

Antwort

E-dypthon and Anaconda.

5Frage

Which two Python applications does this course focus on?

Antwort

Importing data and representing data graphically.

6Frage

How is a data table organized?

Antwort

Into rows and columns.

7Frage

How many columns does the course data table commonly contain?

Antwort

Two columns.

8Frage

What separators can a data file use for decimal values?

Antwort

A comma or a point.

9Frage

What must be identified before importing a data file?

Antwort

The separator format between integer and decimal parts.

10Frage

What lines must be identified before importing a file?

Antwort

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

11Frage

What columns must be identified before importing a file?

Antwort

The columns to import.

12Frage

What is the name of the example data file?

Antwort

donnees.txt.

13Frage

How are measurements arranged in the example data file?

Antwort

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

14Frage

What does numpy.loadtxt() do?

Antwort

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

15Frage

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

Antwort

The data type for the imported values.

16Frage

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

Antwort

It defines the character separating columns in the data file.

17Frage

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

Antwort

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

18Frage

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

Antwort

It selects which columns to import from the file.

19Frage

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

Antwort

Characters that mark the start of comments in the file.

20Frage

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

Antwort

To convert character strings into numbers during import.

21Frage

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

Antwort

Data is returned in separate columns as individual arrays.

22Frage

What is matplotlib.pyplot in Python?

Antwort

A library module for graphical data representation including point clouds.

23Frage

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

Antwort

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

24Frage

Which function sets the graph axes in matplotlib?

Antwort

The axis() function.

25Frage

Which function adds a graph title in matplotlib?

Antwort

The title() function.

26Frage

Which functions label the horizontal and vertical axes in matplotlib?

Antwort

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

27Frage

What does the legend() function do in matplotlib?

Antwort

It displays the graph legend.

28Frage

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

Antwort

It displays the graphs on screen.

29Frage

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

Antwort

A red point-and-line plot labeled vitesse.

30Frage

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

Antwort

It places points or connects their abscissas and ordinates.

31Frage

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

Antwort

Color, label, and marker parameters.

32Frage

What does the quiver() function draw?

Antwort

Vectors using origin coordinates and vector components.

33Frage

Which inputs does quiver() use to draw vectors?

Antwort

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

34Frage

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

Antwort

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

35Frage

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

Antwort

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

36Frage

What does the completed matplotlib graph represent?

Antwort

The trajectory of a falling ball with velocity vectors.

Teste dich mit dem Quiz

Teste dein Wissen mit 14 Fragen zu 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?

Quiz machen →

Lernzettel lesen

Überprüfe den vollständigen Kurs im Lernzettel zu Python Data Import and Plotting.

Lernzettel ansehen →

Similar courses

Erstelle deine eigenen Karteikarten

Importiere deinen Kurs und die KI erstellt in 30 Sekunden Karteikarten.

Karteikarten-Generator