SEESathi
HomeSubjectsPast PapersMock TestSavedSearch
SEESathi

Empowering every Class 10 student across Nepal with world-class, beautifully structured study notes and solved questions.

Study

  • Master Notes
  • Question Bank
  • Past Papers

Subjects

  • Science & Technology
  • English
  • नेपाली
  • Social Studies
  • Computer Science
  • Mathematics

Resources

  • SEE Grading Guide
  • Syllabus Breakdown
  • Topper Answer Sets
  • Mock Test Simulator

Legal

  • About Mission
  • Editorial Board
  • Privacy Policy
  • Terms of Use

© 2026 SEE Sathi Technologies Pvt. Ltd. Kathmandu, Nepal.

Built for every Class 10 student across Nepal

Python — User Defined FunctionsSolved Questions· Unit 4
Computer Science · Chapter 04b
10 solved questions

Programming In Python - 4.2 User Defined Function

Every question in this chapter, answered and explained — step-by-step solutions drawn live from the chapter library across 1 question section.

Section B: Concept in Practice-2 (Textbook MCQs)10
01

Section B: Concept in Practice-2 (Textbook MCQs)

10
1Textbookcs2-q1

What is the correct statement about local scope in Python? a) A variable declared inside a function is accessible everywhere in the program. b) A variable declared inside a function is accessible only within that function. c) A variable declared outside a function can't be accessed inside the function. d) None of these

Ans.b) A variable declared inside a function is accessible only within that function.
2Textbookcs2-q2

Which of the following statements about global scope is TRUE? a) A global variable can only be used inside the function where it is declared. b) A global variable is created when a function ends. c) A global variable can be accessed throughout the program. d) None of these

Ans.c) A global variable can be accessed throughout the program.
3Textbookcs2-q3

What are parameters in a function? a) Values given to a function when it is called. b) Variables listed in a function definition. c) Both a and b d) None

Ans.c) Both a and b — parameters are the variables listed in the function definition, and they receive the values (arguments) given when the function is called.
4Textbookcs2-q4

What is the correct syntax for a function with variable-length arguments? a) def func(*args): b) def func(&args): c) def func(args*): d) def func(@args):

Ans.a) def func(*args): — the asterisk before the parameter name collects extra arguments into a tuple.
5Textbookcs2-q5

Which type of argument uses the name=value form when passing values? a) Required Argument b) Keyword Argument c) Positional Argument d) Variable-Length Argument

Ans.b) Keyword Argument — values are passed using the parameter_name=value form.
6Textbookcs2-q6

What does a return statement in a Python function do? a) It exits the program. b) It exits the function and optionally sends a value back to the caller. c) It prints a value. d) It defines a global variable.

Ans.b) It exits the function and optionally sends a value back to the caller.
7Textbookcs2-q7

Which of the following can be returned by a function? a) List b) Dictionary c) String d) All of these

Ans.d) All of these — a function can return a list, dictionary, string, number, Boolean, or tuple.
8Textbookcs2-q8

What is Python's passing mechanism for function arguments? a) Pass by Value b) Pass by Object Reference c) Pass by Pointer d) None

Ans.b) Pass by Object Reference — Python passes references to objects, so behaviour depends on whether the object is mutable or immutable.
9Textbookcs2-q9

In Python, if a mutable object like a list is passed to a function and modified inside it, what happens to the original list? a) It remains unchanged. b) It gets modified. c) It is deleted. d) It raises an error

Ans.b) It gets modified — since a list is mutable, changes made inside the function affect the original list.
10Textbookcs2-q10

Which of the following is an example of passing a return value from one function to another? def get_number(): return 5 def show_number(num): print(num) show_number(get_number()) a) Pass by Value b) Pass by object reference c) Passing a function's return value d) None

Ans.c) Passing a function's return value — get_number()'s return value (5) is passed directly as the argument to show_number().
Review the NotesBack to Chapter