Summer25_MAT239_FinalExam.pdf
What is the output? for i in range(3): if i == 2: …
What is the output? for i in range(3): if i == 2: continue print(i)
Complete the code for a program that takes a list of words…
Complete the code for a program that takes a list of words and prints only the words that start with a vowel (a, e, i, o, u). sample input words = output: apple orange umbrella Code words = for ______________________________________ if_____________________________________ _____________________________________________
What is the output? s = “banana” print(s.count(“a”))
What is the output? s = “banana” print(s.count(“a”))
What is the output? def func1(n): return n ** 2 resul…
What is the output? def func1(n): return n ** 2 result = func1(3)print(result)
What is the output? matrix = [[1, 2, 3], [4, 5, 6]] total =…
What is the output? matrix = , ] total = 0 for row in matrix: for val in row: total += val print(total)
What is the output ? x = 2 y = 4 if x == 2 or y == 2: …
What is the output ? x = 2 y = 4 if x == 2 or y == 2: print(“Condition met”) else: print(“Not met”)
What is the output? for i in range(1, 6, 2): print(i)
What is the output? for i in range(1, 6, 2): print(i)
What is the output? import math print(round(math.pi, 2))
What is the output? import math print(round(math.pi, 2))
What is the output? s = “Hello” print(s[::-1])
What is the output? s = “Hello” print(s)