nerdexam
Python_Institute

PCEP-30-02 · Question #327

PCEP-30-02 Question #327: Real Exam Question with Answer & Explanation

Sign in or unlock PCEP-30-02 to reveal the answer and full explanation for question #327. The question stem and answer options stay visible for context.

Question

The ABC company is creating a program that allows customers to log the number of miles biked. The program will send messages based on how many miles the customer logs. You create the following Python code. ??? name = input('What is your name? ') return name ?? calories = miles * calories_per_mile return calories distance = int(input('How many miles did you bike this week? ')) burn_rate = 50 biker = get_name() calories_burned = calc_calories(distance, burn_rate) print(biker + ' , you burned about', calories_burned, 'calories.') What would you insert instead of ??? and ??? ? (Choose two.)

Options

  • Adef calc_calories(miles, calories_per_mile):
  • Bdef calc_calories():
  • Cdef calc_calories(miles, burn_rate):
  • Ddef get_name(biker):
  • Edef get_name(name):
  • Fdef get_name():

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.

Full PCEP-30-02 Practice