Search Header Logo

EvaluativeQuiz

Authored by Ben Marwen

Other

6th - 8th Grade

Used 4+ times

EvaluativeQuiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you open a file for reading in Python?

open('filename.txt', 'r')

open('filename.txt', 'w')

open('filename.txt', 'a')

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you read the contents of a file in Python?

file.read()

file.write()

file.append()

3.

MULTIPLE SELECT QUESTION

1 min • 1 pt

How do you open a file for writing in Python?

open('filename.txt', 'r')

open('filename.txt', 'w')

open('filename.txt', 'a')

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you write to a file in Python?

file.read()

file.write()

file.writeline()

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you close a file in Python?

file.close()

file.open()

file.exit()

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the command used to show a message on the console in Python?

print()

input()

read()

write()

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is NOT a data type in Python?

Integer

String

Boolean

Double

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?