c++ and overloading

mcqspedia.com has 4 Question/Answers about Topic c++ and overloading

C++ allows you to use same name for different functions with different parameters, is called

C++ allows you to use same name for different functions with different parameters, is called
  • A. Overlapping
  • B. Overusing
  • C. Overloading
  • D. Overflowing
  • Correct Answer: Option C

A directive that is used to include other files, such as function declaration is called

A directive that is used to include other files, such as function declaration is called
  • A. Import directive
  • B. Include directive
  • C. Stdio directive
  • D. None of them
  • Correct Answer: Option B

Why a parameter that is passed by value is referred as read only?

Why a parameter that is passed by value is referred as read only?
  • A. Because parameters are passed outside function
  • B. Because parameters cannot be changed in pass by value method
  • C. Because parameters changes its type to another type in call by value method
  • D. All of them
  • Correct Answer: Option B

Default return type for every function is

Default return type for every function is
  • A. Int
  • B. Char
  • C. Float
  • D. String
  • Correct Answer: Option A