Search Header Logo

H txt file read

Authored by Sarah Lyon

Computers

10th Grade

Used 1+ times

H txt file read
AI

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

Media Image

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

Media Image

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

Media Image

When counter has a value of 0, what will be stored inside the variable 'score'

(a)  

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Media Image

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

Media Image

What type of subprogram is getData()?

procedure

function

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?