Questions and CORRECT Answers
What is the function of the secondary memory in a computer? - CORRECT ANSWER -
Store information for the long term, even beyond a power cycle
Which of the following are advantages of using Jupyter notebook? - CORRECT
ANSWER - Code Development, Documentation, Share Results
Which of the following is correct about Python? - CORRECT ANSWER - It is a high-
level language
The following code will cause an error:
Print("Hello world!") - CORRECT ANSWER - True
Where in the computer is a variable such as "x" stored after the following Python line finishes?
x = 123 - CORRECT ANSWER - Main Memory
When would you use a markdown cell? (select ALL correct answers) - CORRECT
ANSWER - Add headings to sections of a Jupyter notebook,Add a title to a Jupyter
notebook
Which of the following can execute code cells in Jupyter notebook? (select ALL correct
answers) - CORRECT ANSWER - Ctrl+Enter,Shift+Enter,From the menu Cell - Run
Cells
To be executed, which of the following does Python programming language use? - CORRECT
ANSWER - Interpreter
If you accidentally deleted (cut) a cell and want to get it back, what can you do?
, In the mode, use the keyboard shortcut (use lower case letters and be sure the provide the exact
answer to get the credit) - CORRECT ANSWER - command, z
An operator, denoted with a percent sign (%), that works on integers and yields the remainder
when one number is divided by another - CORRECT ANSWER - modulus operator
A section of code that represents a command or action. So far, the statements we have seen are
assignments and print expression statement. - CORRECT ANSWER - statement
A type that represents numbers with fractional parts. - CORRECT ANSWER - floating
point
A statement that assigns a value to a variable. - CORRECT ANSWER - assignment
Which of the following operator in Python joins strings together? For example: "Hello " operator
"World!" result in "Hello World!" - CORRECT ANSWER -+
Which of the following variable name is valid in Python? - CORRECT ANSWER -
three_dots
______________ are used to store information that will be referenced and manipulated in a
computer program. They label data with a descriptive name, so our programs can be understood
more clearly by humans. They are containers that hold different types of data. - CORRECT
ANSWER - variables
In the following code the variable radians is referred to as what?
x = math.cos(radians) - CORRECT ANSWER - argument
In the following code the variable x is called a(n) ______________ variable.