c++ functions

mcqspedia.com has 5 Question/Answers about Topic c++ functions

Functions body is also referred as

Functions body is also referred as
  • A. Class
  • B. Block
  • C. Compound statement
  • D. All of them
  • Correct Answer: Option B

Strand function is used for

Strand function is used for
  • A. Calling a maths function
  • B. Including timestamps
  • C. Getting randomizing effect
  • D. None of them
  • Correct Answer: Option C

Not initializing a reference variable will cause

Not initializing a reference variable will cause
  • A. A syntax error
  • B. Termination of program
  • C. Overloading
  • D. Nothing
  • Correct Answer: Option A

An identifier’s scope is

An identifier’s scope is
  • A. When that identifier exists in memory
  • B. Where identifier can be referenced in a program
  • C. Where identifier is used multiply
  • D. All of them
  • Correct Answer: Option B

All variables declared in function definition are called

All variables declared in function definition are called
  • A. Protected variables
  • B. Local variable
  • C. Global Variables
  • D. Private variable
  • Correct Answer: Option B