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
What are the advantages of using jupyter notebook? - CORRECT ANSWER --
communicate and share results
- code development
- documentation
which of the following is correct about python?
- it is a high-level language
- it is a machine language
- it is a low-level language
- it is an assembly language - CORRECT ANSWER - it is a high level language
Will the following code 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
What will x be after the code is executed:
x = 43
x = 43 + 1 - CORRECT ANSWER - 44
, When would you use a markdown cell? - CORRECT ANSWER - - add a title to a Jupyter
notebook
- add headings to sections of a jupyter notebook
How can you execute code in Jupyter notebook? - CORRECT ANSWER - - Shift+Enter
- Ctrl+Enter
- From the menu Cell -> Run Cells
To be executed, what does Python programming language use? - CORRECT ANSWER -
Interpreter
If you accidentally deleted a cell and wanted to get it back, what can you do? - CORRECT
ANSWER - in the (command) mode, use the keyboard shortcut "z"
modulus operator - CORRECT ANSWER - an operator, denoted with a percent sign (%),
that works on integers and yields the remainder when one number is divided by another
statement - CORRECT ANSWER - a section of code that represents a command or action.
So far, the statements we have seen are assignments and print expression statements.
floating point - CORRECT ANSWER - a type that represents numbers with fractional
parts
assignment - CORRECT ANSWER - a statement that assigns a value to a variable
What operator in Python joins strings together? For example "Hello" (operator) "World" -
CORRECT ANSWER -+
What can variable names not include in python? - CORRECT ANSWER - -, numbers,
spaces