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)
Sorted version of the above list: [1, 2, 4, 5, 6, 8, 9] Keys…
Sorted version of the above list: Keys to search:i) 6ii) 3 For each key: Show values of low, high, mid Indicate comparisons Conclude if search is successful or not
Section 3: Code-Based Questions (10 points; 5 points each)
Section 3: Code-Based Questions (10 points; 5 points each)
Your final model shows strong performance after tuning. What…
Your final model shows strong performance after tuning. What aspects of your model and results would you highlight to convince finance managers of its reliability and fairness?
Suppose your model achieves 80% accuracy on training data bu…
Suppose your model achieves 80% accuracy on training data but only 91% on testing data. What does this suggest? How would you diagnose and fix the issue? Name at least two specific techniques you would apply.