Empowering Students with AI-Powered Assessments & Intelligent Learning
Chapter Exam

Chapter 11: Functions — Online MCQ Test

COMPUTER SCIENCE · CLASS 11th · Tamil Nadu State Board

Practice Chapter 11: Functions with a free chapter-wise online MCQ test for Tamil Nadu State Board CLASS 11th COMPUTER SCIENCE. This chapter covers: Focusing on modular programming this chapter covers function declarations parameters passing mechanisms call-by-value call-by-reference and scope rules. Students explore inline fun.... AI-generated questions from basic to board-exam level, with instant results and explanations.

10
Questions
20m
Time Limit
3
Attempts Left
  • 10 random questions from this chapter (mixed difficulty)
  • Questions you've seen before won't repeat until the pool resets
  • You have 20 minutes — exam auto-submits when time is up
  • Maximum 3 attempts per chapter
  • Results and explanations shown immediately after submission
Login to Start This Exam →

New here? Register free — includes 3 free chapter exams.

Chapter 11: Functions — Important Questions & Answers (FAQ)

Frequently asked questions from Tamil Nadu State Board CLASS 11th COMPUTER SCIENCE — Chapter 11: Functions, with answers and explanations. These are sample questions; the exam has its own separate question set.

What is the primary advantage of using functions in C++?
  • A. To increase memory usage
  • B. To promote code reusability and modularity ✓
  • C. To make the program execute faster automatically
  • D. To eliminate the need for variables
Answer: B. To promote code reusability and modularity
Functions allow breaking down large programs into smaller, manageable, and reusable blocks of code.
Which of the following is a parameter type where the actual value is copied to the formal parameter?
  • A. Call-by-reference
  • B. Call-by-address
  • C. Call-by-value ✓
  • D. Call-by-pointer
Answer: C. Call-by-value
In call-by-value, a copy of the actual argument's value is passed to the function, so changes to the formal parameter do not affect the original value.
In C++, what character is used to denote a reference parameter in a function definition?
  • A. *
  • B. & ✓
  • C. %
  • D. #
Answer: B. &
The address-of operator '&' is used in the function signature to indicate that the parameter is passed by reference.
Analyze the effect: If a function uses 'call-by-reference', what is the impact on the original variable passed from the main function?
  • A. The original variable remains unchanged
  • B. The original variable is copied to a new memory location
  • C. Changes made to the formal parameter affect the original variable ✓
  • D. The program results in a segmentation fault
Answer: C. Changes made to the formal parameter affect the original variable
Call-by-reference passes the memory address, so any modification to the formal parameter directly updates the original argument.
In a scope conflict, which variable takes precedence?
  • A. Global variable
  • B. Local variable ✓
  • C. Static variable
  • D. None, the compiler throws an error
Answer: B. Local variable
A local variable with the same name as a global variable will 'shadow' the global variable, taking precedence within the local scope.

Choose Your Plan & Start Practising

All plans cover every subject and chapter of your registered grade.

Free
₹0
3 exams · 1 year
Start Free →
Active
₹350
12 exams · 1 year
Get Active →
Pro
₹899
Unlimited exams · 1 year
Get Pro →

Compare all plans in detail →