1.
What will be the value of the "total" variable at the end of the following code?
2.
Study the following Python code. What will happen if the value of boys is the same as the value of girls?
3.
What will be the data type of "boys" if the user answers "12" when the code below is run?
4.
Which of the following are valid variable names in Python? Select TWO correct answers.
5.
What will be the result of the following code?
6.
What will happen if the user answers "No" when the following code is run?
7.
Look at the following Python code?
Which of the following will access "Bond"?
8.
What will be the result of the following code?
9.
Which of the following modules can be used to add randomness to a project in Python?
10.
What will be the result of the following code?
11.
Which of the following is true if this code is run in the Python console? Select TWO answers.
12.
Study this dictionary defined in Python:
Which of the following will add a new key "gender" with a value of "male" to the dictionary?