Quiz: Pandas DataFrames and TCLab

Main.PythonQuiz10 History

Hide minor edits - Show changes to markup

May 18, 2022, at 01:41 AM by 10.35.117.248 -
Changed line 1 from:

(:title Quiz: Pandas DataFrames and TCLab Functions:)

to:

(:title Quiz: Pandas DataFrames and TCLab:)

May 18, 2022, at 01:40 AM by 10.35.117.248 -
Changed lines 39-40 from:

2. What is the command to connect to the TCLab (USB serial connection to Arduino base) after import tclab? See TCLab documentation and TCLab Tutorial.

to:

2. What is the command to connect to the TCLab (USB serial connection to Arduino base) after import tclab? See TCLab Tutorial.

Changed line 71 from:

3. Which is NOT a valid TCLab command?

to:

3. Which is NOT a valid TCLab command? See TCLab documentation.

May 18, 2022, at 01:39 AM by 10.35.117.248 -
Changed line 39 from:

2. What is the command to connect to the TCLab (USB serial connection to Arduino base) after import tclab?

to:

2. What is the command to connect to the TCLab (USB serial connection to Arduino base) after import tclab? See TCLab documentation and TCLab Tutorial.

May 18, 2022, at 01:36 AM by 10.35.117.248 -
Added lines 1-101:

(:title Quiz: Pandas DataFrames and TCLab Functions:) (:keywords quiz, test, Python, plot, graph, Pandas, DataFrame, import, introduction, course:) (:description Learning assessment on Python data import with Pandas and TCLab.:)


1. What is the command to import a Comma Separate Value (CSV) file 'data.csv' in Pandas as a DataFrame?

A. pandas.import_csv('data.csv')
(:toggle hide q1a button show="Select":)

(:div id=q1a:)

Incorrect.

(:divend:)

B. pandas.read('data.csv')
(:toggle hide q1b button show="Select":)

(:div id=q1b:)

Incorrect.

(:divend:)

C. pandas.read_csv('data.csv')
(:toggle hide q1c button show="Select":)

(:div id=q1c:)

Correct. See Pandas documentation for additional options.

(:divend:)

D. pandas.csv('data.csv')
(:toggle hide q1d button show="Select":)

(:div id=q1d:)

Incorrect.

(:divend:)


2. What is the command to connect to the TCLab (USB serial connection to Arduino base) after import tclab?

A. lab = tclab.TCLab()
(:toggle hide q2a button show="Select":)

(:div id=q2a:)

Correct.

(:divend:)

B. lab = TCLab()
(:toggle hide q2b button show="Select":)

(:div id=q2b:)

Incorrect.

(:divend:)

C. lab.close()
(:toggle hide q2c button show="Select":)

(:div id=q2c:)

Incorrect. This is the command to disconnect.

(:divend:)

D. lab.T1
(:toggle hide q2d button show="Select":)

(:div id=q2d:)

Incorrect. This is the command to read temperature 1.

(:divend:)


3. Which is NOT a valid TCLab command?

A. lab.T1
(:toggle hide q3a button show="Select":)

(:div id=q3a:)

Incorrect. Valid command: Read temperature 1.

(:divend:)

B. lab.Q2(50)
(:toggle hide q3b button show="Select":)

(:div id=q3b:)

Incorrect. Valid command: Turn on heater 2 to 50%.

(:divend:)

C. lab.LED(25)
(:toggle hide q3c button show="Select":)

(:div id=q3c:)

Incorrect. Valid command: Turn on LED to 25%.

(:divend:)

D. lab.T2(25)
(:toggle hide q3d button show="Select":)

(:div id=q3d:)

Correct. Not a valid command: Read temperature 2 with lab.T2 (no parenthesis).

(:divend:)