Domain 3 Multiple Choice Practice (SD)

Domain 3 Multiple Choice Practice (SD)

10th Grade

25 Qs

quiz-placeholder

Similar activities

Documents/Handwriting

Documents/Handwriting

10th - 12th Grade

20 Qs

Python quiz

Python quiz

2nd Grade - University

29 Qs

Python Revision

Python Revision

10th Grade

20 Qs

Microsoft Word 2013 Quizizz

Microsoft Word 2013 Quizizz

10th Grade

29 Qs

Viruses and Bacteria

Viruses and Bacteria

7th - 12th Grade

21 Qs

Digestive System Review

Digestive System Review

9th - 12th Grade

20 Qs

CIW Exam Review

CIW Exam Review

9th - 12th Grade

20 Qs

Early Earth

Early Earth

9th - 12th Grade

20 Qs

Domain 3 Multiple Choice Practice (SD)

Domain 3 Multiple Choice Practice (SD)

Assessment

Quiz

Other Sciences

10th Grade

Medium

Created by

Brandon Milam

Used 9+ times

FREE Resource

25 questions

Show all answers

1.

MATCH QUESTION

30 sec • 1 pt

Match the following file modes with their descriptions.

Mode to open a file for executing.

Write

Mode to open a file for appending data to the end.

Execute

Mode to open a file for reading.

Append

Mode to open a file for writing, creating the file if it does not exist.

Read

2.

MATCH QUESTION

30 sec • 1 pt

Match the following commands with their functions.

Command to read data from a file

add

Command to add numbers

read

Command to write data to a file

write

Command to add text to the end of an existing file

append

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should information be written to in order to use it again later when an app is run?

variable

print

file

argument

Answer explanation

To reuse information later when an app runs, it should be written to a file. Unlike variables, which are temporary, files store data persistently, allowing access even after the app is closed and reopened.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement ensures that a file is automatically closed after being read or written?

open

with

run

load

Answer explanation

The 'with' statement in Python ensures that a file is automatically closed after its block of code is executed, even if an error occurs. This is a best practice for file handling, making 'with' the correct choice.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What allows users to run an app in multiple ways without changing the internal code?

functions

libraries

command-line arguments

variables

Answer explanation

Command-line arguments allow users to provide input to an application at runtime, enabling different behaviors without altering the internal code. This flexibility is not offered by functions, libraries, or variables.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, automatic spacing only occurs when concatenating values with:

+

comma

percent

ampersand

Answer explanation

In Python, using a comma to concatenate values automatically adds spaces between them. This is not the case with +, %, or & operators, which do not introduce spaces in the output.

7.

MATCH QUESTION

30 sec • 1 pt

Match the following actions with their purposes.

Provides reusable code modules

formatting

Frees unused file objects to save memory

threading

Alters the appearance of text

libraries

Allows concurrent execution of code

closing

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?