H txt file read

H txt file read

10th Grade

12 Qs

quiz-placeholder

Similar activities

Unit 5 -- Lists, Loops, Traversals

Unit 5 -- Lists, Loops, Traversals

9th - 12th Grade

9 Qs

Fetch-Execute cycle

Fetch-Execute cycle

9th - 10th Grade

16 Qs

CSP Lists Loops and Traversals

CSP Lists Loops and Traversals

9th - 12th Grade

9 Qs

Lists, Loops, Traversal

Lists, Loops, Traversal

9th - 12th Grade

9 Qs

Python Loops

Python Loops

9th - 11th Grade

12 Qs

Recursivitate

Recursivitate

1st - 12th Grade

8 Qs

Turtle Refresh Quiz

Turtle Refresh Quiz

10th Grade

15 Qs

Y10 CT 7

Y10 CT 7

10th Grade

14 Qs

H txt file read

H txt file read

Assessment

Quiz

Computers

10th Grade

Easy

Created by

Sarah Lyon

Used 1+ times

FREE Resource

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'

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'

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.

['John', '75']

names()

John

pupil

['Mary', 'Malcolm', 'John']

parts()

75

score

John, 75

name

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?