Programming in Python OBJECTIVE
ASSESSMENT ACTUAL EXAM
2025/2026 QUESTIONS WITH
VERIFIED CORRECT SOLUTIONS ||
100% GUARANTEED PASS <BRAND
NEW VERSION>
Create a solution that accepts an integer input
representing the index value for any any of the
five elements in the following list:
various_data_types = [516, 112.49, True,
"meow", ("Western", "Governors",
"University"), {"apple": 1, "pear": 5}]
Using the built-in function type() and getting
its name by using the .name attribute, output
data type (e.g., int", "float", "bool", "str")
based on the input index value of the list
element.
The solution output should be in the format
Element index_value: data_type - ANSWER
index_value = int(input())
data_type =
type(various_data_types[index_value]).__nam
e__
print(f"Element {index_value}: {data_type}")
, Create a solution that accepts an integer input
representing the age of a pig. Import the
existing module pigAge and use its pre-built
pigAge_converter() function to calculate the
human equivalent age of a pig. A year in a
pig's life is equivalent to five years in a
human's life. Output the human-equivalent age
of the pig.
The solution output should be in the format
input_pig_age is converted_pig_age in human
years - ANSWER import pigAge
input_pig_age = int(input())
converted_pig_age =
pigAge.pigAge_converter(input_pig_age)
print(f"{input_pig_age} is
{converted_pig_age} in human years")
Create a solution that accepts three integer
inputs representing the number of times an
employee travels to a job site. Output the total
distance traveled to two decimal places given