IAPP301 EXAM Questions with 100%
Correct Answers
Python is free to use. Correct Answer: True
A Python script needs to be pre-compiled. Correct Answer: False
The input() statement automatically converts values to their correct data type,
e.g. if the user enters 75 it is automatically converted to an integer. Correct
Answer: False
This segment of code is incorrect:
a,b,c,d = "1", 10, 20.0, False Correct Answer: False
This code segment contains no errors:
c = 10
d = 15
print("c is smaller") if (c < d) else print("d is greater") Correct Answer: True
Programs that allow crude hand-drawn diagrams and notes to be converted to
more formal diagrams and text are referred to as shape recognition systems.
Correct Answer: True
, Whenever a data structure contains items that are changeable, the list is said to
be immutable. Correct Answer: False
The following is an example of a definite loop:
user_choice = input("Enter q to exit or another key to continue: ")
while user_choice != "q":
print("The user entered:",user_choice)
user_choice = input("Enter q to exit or another key to continue: ")
print("\nThe user quit the loop.") Correct Answer: False
Most new library improvements are geared towards Python 2.7 (2.x). Correct
Answer: False
A list may be created of any data type, but the data types of items contained
in the list may not be mixed. Correct Answer: False
time includes a pause() method which may be used to pause the execution of
a program for a set number of seconds. Correct Answer: False
When opening a file in write mode, all existing content is always overwritten.
Correct Answer: True
The following sequence of code contains no errors:
Correct Answers
Python is free to use. Correct Answer: True
A Python script needs to be pre-compiled. Correct Answer: False
The input() statement automatically converts values to their correct data type,
e.g. if the user enters 75 it is automatically converted to an integer. Correct
Answer: False
This segment of code is incorrect:
a,b,c,d = "1", 10, 20.0, False Correct Answer: False
This code segment contains no errors:
c = 10
d = 15
print("c is smaller") if (c < d) else print("d is greater") Correct Answer: True
Programs that allow crude hand-drawn diagrams and notes to be converted to
more formal diagrams and text are referred to as shape recognition systems.
Correct Answer: True
, Whenever a data structure contains items that are changeable, the list is said to
be immutable. Correct Answer: False
The following is an example of a definite loop:
user_choice = input("Enter q to exit or another key to continue: ")
while user_choice != "q":
print("The user entered:",user_choice)
user_choice = input("Enter q to exit or another key to continue: ")
print("\nThe user quit the loop.") Correct Answer: False
Most new library improvements are geared towards Python 2.7 (2.x). Correct
Answer: False
A list may be created of any data type, but the data types of items contained
in the list may not be mixed. Correct Answer: False
time includes a pause() method which may be used to pause the execution of
a program for a set number of seconds. Correct Answer: False
When opening a file in write mode, all existing content is always overwritten.
Correct Answer: True
The following sequence of code contains no errors: