Computer Science · Python Scope and Functions
Consider the following Python code: A, B = 10, 5 def FUN(B = 10): global A A -= 5 B += 5 print(A, B, end=' ') FUN(A) FUN() print(B) Which of the following is the correct output of this program?
- 15 10 0 10 5
- 25 15 0 15 5✓
- 35 10 0 15 5
- 45 15 0 10 5
Correct answer
5 15 0 15 5
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Python Scope and Functions?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Python Scope and Functions