1. What will be printed by the following code segment?
x=15
if x==25:
print ('Pizza is...
Computers and Technology, 18.01.2021 21:50 crodriguez87
1. What will be printed by the following code segment?
x=15
if x==25:
print ('Pizza is yummy’)
else:
print ('My teacher is awesome')
If x=15 , then double of 15 is x=25
2. What will be printed by the following code segment?
x=35
y=52
if x!=25 and y==52:
print ('Pizza is yummy')
else:
('My teacher is awesome')
3. Correct the errors in the following code to find the least number between x, y and z.
if x > y or y z
if x>z:
print(z)
else print (“x”)
4. Consider the following code:
if a > b:
if b > c:
print("Spam Please")
else:
print("It's a late parrot!")
elif b > c:
print("Cheese Shoppe")
if a >= c:
print("Cheddar")
elif a < b:
print("Gouda")
elif c == b:
print("Swiss")
else:
print("Trees")
if a == b:
print("Chestnut")
else:
print("Larch")
print("Done")
What would the output be for each of the following inputs? (assume they are in order a, b, c)
a) 3, 4, 5
b) 3, 3, 3
c) 5, 4, 3
d) 3, 5, 2
e) 5, 4, 7
f) 3, 3, 2
Programming Exercises
5. Given numbers (a, b, c) determine which number is the smallest, assign it to min, find the largest, assign it to max, and find the middle number and assign it to mid.
Paste code here.
6. A certain teacher gives 100 point exams that are graded on a scale from 0-100. Each grade can be given as a letter grade (90-100 = A, 80-89 = B,70-79 = C, 60-69 = D, <60 = F) . Write a function that will accept a value of a number grade, and will print the letter grade that corresponds to the number range.
Answers: 3
Computers and Technology, 21.06.2019 22:30
Ted wants to go out to a neighborhood park and shoot pictures of dew drops on grass. he wants to get a low-level angle of the dew drops. which support equipment should ted use? a. mini tripod b. pistol grip c. monopod d. body mount
Answers: 2
Computers and Technology, 22.06.2019 03:00
Which action describes an aspect of technological design?
Answers: 1
Computers and Technology, 23.06.2019 02:30
What is the power dissipated by a resistor with a current of 0.02 a and a resistance of 1,000 ? a. 200 w b. 20 w c. 0.4 w d. 4 w
Answers: 1
Computers and Technology, 23.06.2019 08:30
Helen's credit card has an apr of 15.32% and a grace period of 17 days and helen pays her balance in the full every month. if her last billing cycle ended on september 26, 2009, and she made her payment on october 11, 2009, did she owe any interest on her last statement's balance?
Answers: 3
History, 18.03.2021 23:10
Mathematics, 18.03.2021 23:10
Mathematics, 18.03.2021 23:10
Health, 18.03.2021 23:10
Mathematics, 18.03.2021 23:10
Mathematics, 18.03.2021 23:10
Biology, 18.03.2021 23:10
Mathematics, 18.03.2021 23:10
Mathematics, 18.03.2021 23:10
Mathematics, 18.03.2021 23:10