πŸ“Š CPP Programming
Q. Which operator is required to be overloaded as member function only?
  • (A) _
  • (B) _ _
  • (C) ++ (postfix version)
  • (D) =
πŸ’¬ Discuss
βœ… Correct Answer: (D) =
πŸ“Š CPP Programming
Q. Class function which is called automatically as soon as the object is created is called as __
  • (A) Constructor
  • (B) Destructor
  • (C) Friend function
  • (D) Inline function.
πŸ’¬ Discuss
βœ… Correct Answer: (A) Constructor
πŸ“Š CPP Programming
Q. Which type of data file is analogous to an audio cassette tape?
  • (A) Random access file
  • (B) Sequential access file
  • (C) Binary file
  • (D) Source code file
πŸ’¬ Discuss
βœ… Correct Answer: (B) Sequential access file
πŸ“Š CPP Programming
Q. What is the built in library function to compare two strings?
  • (A) string_cmp()
  • (B) strcmp()
  • (C) equals()
  • (D) str_compare()
πŸ’¬ Discuss
βœ… Correct Answer: (B) strcmp()
πŸ“Š CPP Programming
Q. Which of the following are member dereferencing operators in CPP? 1. * 2. :: 3. ->* 4. ::* 5. ->
  • (A) Only 1, 3, 4
  • (B) Only 1 and 5
  • (C) Only 3 and 4
  • (D) Only 3,4,5
πŸ’¬ Discuss
βœ… Correct Answer: (A) Only 1, 3, 4
πŸ“Š CPP Programming
Q. Which of the followings is/are pointer-to-member declarator?
  • (A) ->*
  • (B) .*
  • (C) ::*
  • (D) both A and B
πŸ’¬ Discuss
βœ… Correct Answer: (C) ::*
πŸ“Š CPP Programming
Q. Assigning one or more function body to the same name is called ____________.
  • (A) Function Overriding
  • (B) Function Overloading
  • (C) Both A and B
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) Function Overloading
πŸ“Š CPP Programming
Q. Default values for a function are specified when ____.
  • (A) Function is defined
  • (B) Function is declared
  • (C) Both a and b
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (B) Function is declared
πŸ“Š CPP Programming
Q. Which of the following best defines the syntax for template function?
  • (A) Template
  • (B) Template return_type Function_Name(Parameters)
  • (C) Both a and b
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (C) Both a and b

Jump to