What is a program that executes computer code? - ANSInterpreter
A website lists the calories expended by men and women during exercise as follows:
Men: Calories = [(Age × 0.2017) — (Weight × 0.09036) + (Heart Rate × 0.6309) — 55.0969] ×
Time / 4.184
Women: Calories = [(Age × 0.074) — (Weight × 0.05741) + (Heart Rate × 0.4472) — 20.4022] ×
Time / 4.184
What is one way you would edit the text above to write it in programming notation? -
ANSreplace spaces in variable names with underscores
A website lists the calories expended by men and women during exercise as follows:
Men: Calories = [(Age × 0.2017) — (Weight × 0.09036) + (Heart Rate × 0.6309) — 55.0969] ×
Time / 4.184
Women: Calories = [(Age × 0.074) — (Weight × 0.05741) + (Heart Rate × 0.4472) — 20.4022] ×
Time / 4.184
What is one way you would edit the text above to write it in programming notation? -
ANSchange x to *
What is volatile storage with faster access usually located off a processor chip? - ANSRAM
The following is an example of what type of error?
lyric = 99 + " bottles of pop on the wall" - ANStype error
What is the data type created with the following statement?
integers5=(100,99,34,45,66) - ANStuple
What is the data type of the value assigned to y as the result of the following statements?
y = '66'
y = int(y)
y = float(y)
, y = str(y) - ANSstring
What is the data type of x when all the following statements have executed?
x = 99
y = str(x)
x = y - ANSstring
What data type is created with the following statement?
z = '55 - ANSstring
What is the value assigned to the variable name price when all the following statements are
executed, and the user enters 50?
price = input('how much is that dog in the window? ')
price = float(price) - ANS50.0
What print statement will print the following on screen?
Given that
height = 60
weight = 120
bmi = 24.333333333333332
With a height of 60 and weight of 120 your BMI is 24.333333333333332 - ANSprint("With a
height of",height,"and weight of",weight,"your BMI is",bmi)
What will be displayed on screen after the following statement executes, given that total_grade
= 88?
print('Your final grade is: '+str(total_grade)+'!') - ANSYour final grade is: 88!
What will be displayed on screen after the following statement executes, given that total_grade
= 88?
print('Your final grade is',total_grade,'out of 100 possible points') - ANSYour final grade is 88 out
of 100 possible points
What will be displayed on screen after the following statement executes, given that total_grade
= 88?