Quiz: Pandas DataFrames and TCLab

Main.PythonQuiz10 History

Hide minor edits - Show changes to output

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 [[https://tclab.readthedocs.io/en/latest/notebooks/02_Accessing_the_Temperature_Control_Laboratory.html#Reading-Temperatures|TCLab documentation]] and [[https://apmonitor.com/pds/notebooks/TCLab_Help.html|TCLab Tutorial]].
to:
'''2.''' What is the command to connect to the TCLab (USB serial connection to Arduino base) after ''import tclab''? See [[https://apmonitor.com/pds/notebooks/TCLab_Help.html|TCLab Tutorial]].
Changed line 71 from:
'''3.''' Which is NOT a valid TCLab command?
to:
'''3.''' Which is NOT a valid TCLab command? See [[https://tclab.readthedocs.io/en/latest/notebooks/02_Accessing_the_Temperature_Control_Laboratory.html#Reading-Temperatures|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 [[https://tclab.readthedocs.io/en/latest/notebooks/02_Accessing_the_Temperature_Control_Laboratory.html#Reading-Temperatures|TCLab documentation]] and [[https://apmonitor.com/pds/notebooks/TCLab_Help.html|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:)
-->%red%Incorrect.%%
(:divend:)

->'''B.''' pandas.read('data.csv')

-->(:toggle hide q1b button show="Select":)
(:div id=q1b:)
-->%red%Incorrect.%%
(:divend:)

->'''C.''' pandas.read_csv('data.csv')

-->(:toggle hide q1c button show="Select":)
(:div id=q1c:)
-->%blue%Correct.%% See [[https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html|Pandas documentation]] for additional options.
(:divend:)

->'''D.''' pandas.csv('data.csv')

-->(:toggle hide q1d button show="Select":)
(:div id=q1d:)
-->%red%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:)
-->%blue%Correct.%%
(:divend:)

->'''B.''' lab = TCLab()

-->(:toggle hide q2b button show="Select":)
(:div id=q2b:)
-->%red%Incorrect.%%
(:divend:)

->'''C.''' lab.close()

-->(:toggle hide q2c button show="Select":)
(:div id=q2c:)
-->%red%Incorrect.%% This is the command to disconnect.
(:divend:)

->'''D.''' lab.T1

-->(:toggle hide q2d button show="Select":)
(:div id=q2d:)
-->%red%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:)
-->%red%Incorrect.%% Valid command: Read temperature 1.
(:divend:)

->'''B.''' lab.Q2(50)

-->(:toggle hide q3b button show="Select":)
(:div id=q3b:)
-->%red%Incorrect.%% Valid command: Turn on heater 2 to 50%.
(:divend:)

->'''C.''' lab.LED(25)

-->(:toggle hide q3c button show="Select":)
(:div id=q3c:)
-->%red%Incorrect.%% Valid command: Turn on LED to 25%.
(:divend:)

->'''D.''' lab.T2(25)

-->(:toggle hide q3d button show="Select":)
(:div id=q3d:)
-->%blue%Correct.%% Not a valid command: Read temperature 2 with lab.T2 (no parenthesis).
(:divend:)

----