What is printed? python def addbonus(m): m = m + 5 return m x = 70 y = addbonus(x) print(x, y)

  1. 70 75
  2. 70 70
  3. 75 70
  4. 75 75
Answer

A) 70 75

The integer is effectively passed by value; x is unchanged. SLO CS-11-C-06

Computer Science MCQ · More Unit 3: Programming Fundamentals MCQs · Practise