Class 11th Mcqs Computer Science Chap 7
Class 11th Mcqs Computer Science Chap 7
CLASS 11TH
SUBJECT – COMPUTER SCIENCE
CHAPTER – 7 FUNCTIONS
1. What is a function in programming?
a) A set of instructions to perform a task
b) A reusable block of code
c) A type of loop
d) A condition to check a statement
Answer: b) A reusable block of code
2. What is the purpose of a function in programming?
a) To store values
b) To perform a specific task
c) To declare variables
d) To define loops
Answer: b) To perform a specific task
3. What does the return statement do in a function?
a) Ends the program
b) Exits the function and sends back a value
c) Prints output on the screen
d) Declares a variable
Answer: b) Exits the function and sends back a value
4. Which of the following is NOT a part of a function definition?
a) Function name
b) Function parameters
c) Return type
d) Function call
Answer: d) Function call
5. A function can return:
a) Only one value
b) Multiple values
c) No values
d) Both a single and multiple values
Answer: d) Both a single and multiple values
6. What does a function header include?
a) The function body
b) The function name and parameters
c) The return value
d) A statement of the function's purpose
Answer: b) The function name and parameters
7. Which of the following are required for a function call?
a) Function name and return type
b) Function body and return type
c) Function name and arguments
d) Function name and parameters
Answer: c) Function name and arguments
8. What is a parameter in a function?
a) A variable used to store the function's output
b) A variable used to define the function’s return value
c) A variable used to accept values inside the function
d) A predefined function inside a program
Answer: c) A variable used to accept values inside the function
9. Which keyword is used to define a function in Python?
a) define
b) func
c) function
d) def
Answer: d) def
10. What is the default return value of a function if there is no return statement?
a) None
b) 0
c) False
d) null
Answer: a) None
11. A function can call itself, which is called:
a) Recursion
b) Iteration
c) Inheritance
d) Encapsulation
Answer: a) Recursion
12. What is the scope of a local variable inside a function?
a) It can be accessed anywhere in the program
b) It can be accessed only inside the function
c) It can be accessed only inside the main program
d) It is global
Answer: b) It can be accessed only inside the function
13. What is a function prototype?
a) The definition of a function
b) The declaration of a function before its actual definition
c) The function body
d) The return type of the function
Answer: b) The declaration of a function before its actual definition
14. What type of function is called without any arguments and without a return value?
a) Parameterized function
b) Void function
c) Recursive function
d) Return function
Answer: b) Void function
15. Which of the following is an example of a function with no parameters?
a) def function(x, y):
b) def function():
c) def function(x):
d) def function(x, y, z):
Answer: b) def function():
16. What happens if a function is called with more arguments than it is defined to take?
a) The program throws an error
b) The program ignores extra arguments
c) The function will return nothing
d) The extra arguments are automatically discarded
Answer: a) The program throws an error
17. Which of the following is a valid way to pass arguments to a function in Python?
a) Pass by value
b) Pass by reference
c) Both a and b
d) None of the above
Answer: c) Both a and b
18. How can you define a function that takes multiple parameters?
a) def function(a, b, c):
b) def function(a + b + c):
c) def function(a, b):
d) def function(a, b or c):
Answer: a) def function(a, b, c):
19. What is the term used for a function that has no return statement?
a) Void function
b) Non-returning function
c) No-output function
d) Print function
Answer: a) Void function
20. Which statement is true about functions in Python?
a) A function can return multiple values in the form of a tuple
b) A function can only return a single value
c) Functions can only accept integers as parameters
d) Functions cannot accept default arguments
Dear Teachers and Students,
Join School of Educators' exclusive WhatsApp, Telegram, and Signal groups for FREE access
to a vast range of educational resources designed to help you achieve 100/100 in exams!
Separate groups for teachers and students are available, packed with valuable content to
boost your performance.
Additionally, benefit from expert tips, practical advice, and study hacks designed to enhance
performance in both CBSE exams and competitive entrance tests.
Don’t miss out—join today and take the first step toward academic excellence!
Access to Previous Years' Question Papers and Topper Answers: The group
provides access to previous years' question papers (PYQ) and exemplary answer
scripts of toppers. This resource is invaluable for exam preparation, allowing
individuals to familiarize themselves with the exam format, gain insights into scoring
techniques, and enhance their performance in assessments.
Free and Unlimited Resources: Members enjoy the benefit of accessing an array of
educational resources without any cost restrictions. Whether its study materials,
teaching aids, or assessment tools, the group offers an abundance of resources
tailored to individual needs. This accessibility ensures that educators and students
have ample support in their academic endeavors without financial constraints.
Instant Access to Educational Content: SOE WhatsApp groups are a platform where
teachers can access a wide range of educational content instantly. This includes study
materials, notes, sample papers, reference materials, and relevant links shared by
group members and moderators.
Timely Updates and Reminders: SOE WhatsApp groups serve as a source of timely
updates and reminders about important dates, exam schedules, syllabus changes, and
academic events. Teachers can stay informed and well-prepared for upcoming
assessments and activities.
Access to Expert Guidance: SOE WhatsApp groups are moderated by subject matter
experts, teachers, or experienced educators can benefit from their guidance,
expertise, and insights on various academic topics, exam strategies, and study
techniques.
Join the School of Educators WhatsApp Group today and unlock a world of resources,
support, and collaboration to take your teaching to new heights. To join, simply click
on the group links provided below or send a message to +91-95208-77777 expressing
your interest.
Best Regards,
Team
School of Educators
Join School of Educators WhatsApp Groups
You will get Pre- Board Papers PDF, Word file, PPT, Lesson Plan, Worksheet, practical
tips and Viva questions, reference books, smart content, curriculum, syllabus,
marking scheme, toppers answer scripts, revised exam pattern, revised syllabus,
Blue Print etc. here . Join Your Subject / Class WhatsApp Group.
Entrepreneurship French IT
Artificial Intelligence
You will get Pre- Board Papers PDF, Word file, PPT, Lesson Plan, Worksheet, practical
tips and Viva questions, reference books, smart content, curriculum, syllabus,
marking scheme, toppers answer scripts, revised exam pattern, revised syllabus,
Blue Print etc. here . Join Your Subject / Class WhatsApp Group.
Artificial Intelligence
Entrepreneurship French IT
AI IIT/NEET CUET
Groups Rules & Regulations:
To maximize the benefits of these WhatsApp groups, follow these guidelines:
Additional notes:
1. Avoid posting messages between 9 PM and 7 AM.
2. After sharing resources with students, consider deleting outdated data if necessary.
3. It's a NO Nuisance groups, single nuisance and you will be removed.
No introductions.
No greetings or wish messages.
No personal chats or messages.
No spam. Or voice calls
Share and seek learning resources only.
Join our premium groups and just Rs. 1000 and gain access to all our exclusive
materials for the entire academic year. Whether you're a student in Class IX, X, XI, or
XII, or a teacher for these grades, Artham Resources provides the ultimate tools to
enhance learning. Pay now to delve into a world of premium educational content!
Class 12
📣 Don't Miss Out! Elevate your academic journey with top-notch study materials and secure
your path to top scores! Revolutionize your study routine and reach your academic goals with
our comprehensive resources. Join now and set yourself up for success! 📚🌟
Best Wishes,
Team
School of Educators & Artham Resources
SKILL MODULES BEING OFFERED IN
MIDDLE SCHOOL
Artificial Intelligence Beauty & Wellness Design Thinking & Financial Literacy
Innovation
Digital Citizenship Life Cycle of Medicine & Things you should know What to do when Doctor
Vaccine about keeping Medicines is not around
at home
Application of Photography
Satellites
SKILL SUBJECTS AT SECONDARY LEVEL (CLASSES IX – X)
Food Production Front Office Operations Banking & Insurance Marketing & Sales
Artificial Intelligence
Physical Activity Trainer Electronics & Hardware
Data Science
(NEW)
Mass Media Studies Library & Information Fashion Studies Applied Mathematics
Science
You will get Pre- Board Papers PDF, Word file, PPT, Lesson Plan, Worksheet, practical
tips and Viva questions, reference books, smart content, curriculum, syllabus,
marking scheme, toppers answer scripts, revised exam pattern, revised syllabus,
Blue Print etc. here . Join Your Subject / Class signal Group.
Class 2 Class 3
Class 1
Class 5 Class 6
Class 4
Hindi-B
English Hindi-A
IT Artifical intelligence
IT Code-402
Biology Accountancy
Mathematics
BST History
Economics
Geography Sociology Hindi Elective
IP
Vocal Music Comp. Science
IIT/NEET
Entrepreneurship French
Kindergarten