IndiaBIX
IndiaBIX
Start typing & press "Enter" or "ESC" to close
  • Home
  • Jobs
  • Results
  • Current Affairs
  • GK
  • Online Test
  • HR Interview
  • BLOG

Object Oriented Programming Using C++ - Section 1 (4)

  • Home
  • Computer Science & Engineering
  • Computer Science Questions and Answers
  • Object Oriented Programming Using C++ - Section 1
25. 

A function that is called automatically each time an object is destroyed is a

A. constructor
B. destructor
C. destroyer
D. terminator

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.

View Answer Discuss Workspace Report

26. 

When a child class function is called, the compiler looks first for a matching function name in the _____

A. class of the object using the function name
B. immediate ancestor class
C. base class
D. descendant class

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.

View Answer Discuss Workspace Report

27. 

The generic type in a template function

A. must be T
B. can be T
C. cannot be T for functions you create, but may be for C++'s built-in functions
D. cannot be T

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.

View Answer Discuss Workspace Report

28. 

Which of the following statements is false?

A. A function is a block of code that performs a specific task
B. Functions allow programmers to break large and complex problems into small and manageable tasks
C. Functions allow programmers to use existing code to perform common tasks
D. Functions can be called, or invoked, only once in a program
E. Programmer-defined functions can be either value-returning or void

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.

View Answer Discuss Workspace Report

29. 

The #ifndef directive tests to see whether ________

A. a class has been defined
B. a variable has been given a value
C. a class has no variable definitions
D. any objects of the class have been instantiated

Answer: Option A

Explanation:

#ifndef checks whether the given token has been #defined earlier in the file or in an included file; if not, it includes the code between it and the closing #else or, if no #else is present, #endif statement. #ifndef is often used to make header files idempotent by defining a token once the file has been included and checking that the token was not set at the top of that file.

View Answer Discuss Workspace Report

30. 

Header files often have the file extension _____

A. .H
B. .HE
C. .HEA
D. .HEAD

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.

View Answer Discuss Workspace Report

31. 

If container classes are carefully constructed, then these tools are available to work with structures that are not ______

A. valid without container classes
B. programmer-defined
C. type-specific
D. public

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

View Answer Discuss Workspace Report

32. 

The keyword used to define a structure is _____

A. stru
B. stt
C. struct
D. structure

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

View Answer Discuss Workspace Report

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

Questions & Answers

Aptitude Chemical Engineering Civil Engineering Computer Science & Engineering Current Affairs Data Interpretation Electrical & Electronics Engineering Electronics & Communication Engineering General Knowledge Logical Reasoning Mechanical Engineering Non Verbal Reasoning Verbal Ability Verbal Reasoning

Interviews

HR Interview

Jobs

Sarkari Jobs

Results

Rojgar ResultSarkari Result

Admission

Admission 2023

Admit Card

Admit Card 2023

Answer Key

Answer Key 2023
copyright
Privacy Policy
© 2025 IndiaBIX. All Rights Reserved.

Report