and CORRECT Answers
An assignment operation means giving the computer a value to store at a particular variable -
CORRECT ANSWER✔✔- True
If the expression xyz % 3 == 0 is true and xyz is a positive integer, then the value stored in
the variable xyz is evenly divisible by 3. - CORRECT ANSWER✔✔- True
A flowchart is a type of diagram that represents an algorithm, workflow or process. -
CORRECT ANSWER✔✔- True
Once a string is initialized, its contents in memory can be changed (i.e.: strings are mutable in
memory). - CORRECT ANSWER✔✔- False
Sort the concepts below according to the order they are evaluated in a Python expression,
where the lowest number means "evaluated first" and the highest number means "evaluated
last".
Arithmetic Operators
Parenthesis
Logical Operators
Comparison Operators - CORRECT ANSWER✔✔- 1. Parenthesis
2. Arithmetic Operators
3. Comparison Operators
4. Logical Operators
Skeletons are the smallest amount of code which is necessary for a program to be able to run.
- CORRECT ANSWER✔✔- True
What is the result of the following expression in Python?
4 * 7 - 3 * 4 % 1 - 6 - CORRECT ANSWER✔✔- 22
, "Declaring a variable" means:
- Telling the computer to reserve some space in memory for storage and immediately give it a
value
- Giving the computer a value to store at a particular location in memory for the first time
- Telling the computer to reserve some space in memory for storage
- Telling the computer to remember a specific value - CORRECT ANSWER✔✔- Telling the
computer to reserve some space in memory for storage
Input is sending messages to the console/user. - CORRECT ANSWER✔✔- False
When it comes specifically to Computing, the concept of Abstraction means:
- General characteristics apart from the concrete
- An impractical idea
- A logical grouping of concepts
- A general idea or term - CORRECT ANSWER✔✔- A logical grouping of concepts
Consider two variables x and y. If the values of x=5 and y=10
if __name__ == "__main__":
if x < 0:
print("Message A")
else:
if x > y:
print("Message B")
else:
print("Message C")
What is displayed as the result of the code being executed?
- Nothing will be printed/displayed
- Message A
- Message B
- Message C - CORRECT ANSWER✔✔- Message C