
H txt file read
Authored by Sarah Lyon
Computers
10th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the name of the file being read in to this program?
file
readlines()
r
schoolGrades.txt
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
When counter has a value of 0, what will be stored inside the variable 'name'
(a)
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
When counter has a value of 0, what will be stored inside the variable 'score'
(a)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When counter has a value of 1, what will be stored inside the variable 'pupil'
Mary
Mary, 45
149
Malcolm,149
5.
MATCH QUESTION
1 min • 1 pt
When counter has a value of 2, what will be stored inside each of the following variables/arrays at line 10.
75
score
['John', '75']
name
John
parts()
John, 75
names()
['Mary', 'Malcolm', 'John']
pupil
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of subprogram is getData()?
procedure
function
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the scope of the variable 'pupil'?
local
global
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?