Python_Institute
PCEP-30-02 · Question #267
PCEP-30-02 Question #267: Real Exam Question with Answer & Explanation
Sign in or unlock PCEP-30-02 to reveal the answer and full explanation for question #267. The question stem and answer options stay visible for context.
Question
You are an intern for ABC electric cars company. You must create a function that calculates the average velocity of their vehicles on a 1320 foot (1/4 mile) track.
Consider the following code.
distance = ???(input('Enter the distance travelled in feet'))
distance_miles = distance/5280 # convert to miles
time = ???(input('Enter the time elapsed in seconds'))
time_hours = time/3600 # convert to hours
velocity = distance_miles/time_hours
print('The average Velocity : ', velocity, 'miles/hour')
The output must be as precise as possible.
What would you insert instead of ??? and ??? ?Options
- A1 | int
- B1 | oat
- C2 | oat
- D2 | int
Unlock PCEP-30-02 to see the answer
You've previewed enough free PCEP-30-02 questions. Unlock PCEP-30-02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.