Opens and reads the contents of a file.
A. Read Function
B. Adds an item to a specific spot in a list.
C. Checks for “not a number” values.
D. Provides advanced math calculations.
A. Read Function
A block that runs code only if a condition is true.
A. Identity Operator (is / is not)
B. Try
C. If Statement
D. White Space
C. If Statement
Returns a random float between 0 and 1.
A. Random
B. Randrange
C. Random Library
D. Weekday
A. random
Adds an item to a specific spot in a list
A. Remove / remove ()
B. Insert
C. Default Value
D. Raise
B. insert
What is the world's longest river?
What is Amazon River
In file management, a built-in function that adds content to an existing file.
A. Write Function
B. Append Function
C. Close Function
D. Os.path
A. Append Function
Ends a function and returns a value to be used elsewhere.
A. White Space
B. Identity Operator (is / is not)
C. Return keyword
D. Elif Statement
C. return keyword
Provides functions for dates and times.
A. Math Module
B. Frexp
C. Datetime Module
D. Now
C. Datetime Module
Deletes a specific item from a list.
A. Default Value
B. String.format()
C. Remove
D. Insert / insert()
C. Remove
What is the name of the largest desert in the world?
What is Sahara
Provides access to operating system tasks.
A. Close Function
B. Os.module
C. Os.path
D. Remove Function
B. Os.module
Follows an if statement, runs if the previous condition was false.
A. Elif statement
B. Return Keyword
C. Else Statement
D. Immutable
A. Elif statement
Formats a date/time into a string
A. Random Library
B. Weekday
C. Strftime
D. Datetime Module
C. Strftime
A method used to insert variables into a string with precise formatting.
A. Elif Statement
B. Raise
C. White Space
D. String.format
D. string.format
What is the world's biggest island?
What is Greenland
A helper module for finding files and folders on specific paths.
A. Read Function
B. Remove Function
C. Close Function
D. Os.path
D. Os.path
Attempts to run code without errors.
A. Try
B. Else Statement
C. If Statement
D. Immutable
A. try
Returns a random number between a start and stop value.
A. Randrange
B. Random Library
C. Math Module
D. Insert / insert()
A. randrange
This term refers to the spacing that defines code blocks in Python.
A. Try
B. Immutable
C. Math Module
D. Indentation
D. indentation
Where is the world's largest volcano located?
What is In Hawaii
Imports built-in system functions for Python.
A. Sys Module
B. Command-Line Argument
C. Pydoc
D. Close Function
A. Sys Module
Checks if two variables share the same memory location.
A. Immutable
B. Identity Operator (is / is not)
C. Elif Statement
D. White Space
B. Identity Operator (is / is not)
Returns the modulus of two numbers as a floating point.
A. Randrange
B. Math Module
C. Fmod
D. Now
C. Fmod
A value automatically assigned in a function parameter if no argument is provided.
A. Default Value
B. Math Module
C. Datetime Module
D. Weekday
A. Default Value
What is the most common first language in the world?
What is Mandarin Chinese