WGU D335 INTRODUCTION TO
PROGRAMMING IN PYTHON ACTUAL
EXAM QUESTIONS AND CORRECT
ANSWERS COMPLETE STUDY GUIDE
●● Formatted Student ID Output
Answer: The output format for the student ID is <ssn>.
●● Input Validation for Student ID
Answer: The student ID must be between 100000000 and 999999999.
●● Formatted ID Construction
Answer: The formatted ID is constructed using parts derived from the
student ID.
●● Predefined List
Answer: A list containing the values [4, -27, 15, 33, -10].
●● Boolean Value Output
Answer: Indicates whether the input value is greater than the maximum
value from predef_list.
,●● Max Value Calculation
Answer: The maximum value from predef_list is calculated using the
max() function.
●● Frameworks List
Answer: A list of web frameworks: ['Django', 'Flask', 'CherryPy', 'Bottle',
'Web2Py', 'TurboGears'].
●● Index Value Input
Answer: An integer input representing the index of a string element in
the frameworks list.
●● Exception Handling
Answer: A try block that raises an 'Error' for incompatible integer inputs.
●● Water Temperature Input
Answer: An integer input representing water temperature in degrees
Fahrenheit.
●● Water State Description
Answer: Describes the state of water based on temperature ranges.
●● Frozen Water State
, Answer: Water is 'Frozen' if the temperature is below 33° F.
●● Cold Water State
Answer: Water is 'Cold' if the temperature is between 33° F and 80° F.
●● Warm Water State
Answer: Water is 'Warm' if the temperature is between 80° F and 115° F.
●● Hot Water State
Answer: Water is 'Hot' if the temperature is between 115° F and 211° F.
●● Boiling Water State
Answer: Water is 'Boiling' if the temperature is greater than or equal to
212° F.
●● water_state
Answer: Describes the state of water based on temperature.
●● optional_safety_comment
Answer: Safety comment displayed based on specific water
temperatures.
●● temperature
PROGRAMMING IN PYTHON ACTUAL
EXAM QUESTIONS AND CORRECT
ANSWERS COMPLETE STUDY GUIDE
●● Formatted Student ID Output
Answer: The output format for the student ID is <ssn>.
●● Input Validation for Student ID
Answer: The student ID must be between 100000000 and 999999999.
●● Formatted ID Construction
Answer: The formatted ID is constructed using parts derived from the
student ID.
●● Predefined List
Answer: A list containing the values [4, -27, 15, 33, -10].
●● Boolean Value Output
Answer: Indicates whether the input value is greater than the maximum
value from predef_list.
,●● Max Value Calculation
Answer: The maximum value from predef_list is calculated using the
max() function.
●● Frameworks List
Answer: A list of web frameworks: ['Django', 'Flask', 'CherryPy', 'Bottle',
'Web2Py', 'TurboGears'].
●● Index Value Input
Answer: An integer input representing the index of a string element in
the frameworks list.
●● Exception Handling
Answer: A try block that raises an 'Error' for incompatible integer inputs.
●● Water Temperature Input
Answer: An integer input representing water temperature in degrees
Fahrenheit.
●● Water State Description
Answer: Describes the state of water based on temperature ranges.
●● Frozen Water State
, Answer: Water is 'Frozen' if the temperature is below 33° F.
●● Cold Water State
Answer: Water is 'Cold' if the temperature is between 33° F and 80° F.
●● Warm Water State
Answer: Water is 'Warm' if the temperature is between 80° F and 115° F.
●● Hot Water State
Answer: Water is 'Hot' if the temperature is between 115° F and 211° F.
●● Boiling Water State
Answer: Water is 'Boiling' if the temperature is greater than or equal to
212° F.
●● water_state
Answer: Describes the state of water based on temperature.
●● optional_safety_comment
Answer: Safety comment displayed based on specific water
temperatures.
●● temperature