Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
Object Oriented Programming Using C++ Questions
In C/C++, why might you define a struct (structure) type at global scope rather than repeating its definition inside each function that uses it?
In object-oriented analysis and design, the practice of focusing on essential properties while deliberately ignoring inessential details is known as what?
In standard C++ file I/O, which header file must be included to use input and/or output file streams such as std::ifstream and std::ofstream?
In C++ class design, to expose a data member to outside code (so client code can access it directly), the member must be declared in which access section of the class?
In C/C++, an array name in an expression most naturally represents what concept at the language level?
In C++ iostream formatting, how can format flags (such as std::ios::hex, std::ios::showbase) be combined when setting multiple formatting options?
In object-oriented design, does adding a new derived class typically require fundamental changes to the existing base class interface and implementation?
Language paradigms: can C++ be used both as a procedural (structured) programming language and as an object-oriented language, depending on how you design your code?
Generic container classes: if container classes are carefully constructed, these tools are available to work with data structures that are not what (i.e., they do not need to be tied to a single concrete type)?
In C++ object-oriented programming, what do we call the special member function that is invoked automatically each time an object's lifetime ends (for example, when it goes out of scope or is deleted)?
In C++ parameter passing, when you pass a variable by ________, only the current contents (a copy of the value) are sent to the receiving function.
In C++, when the compiler cannot distinguish between two overloaded constructors (or functions) based on their parameter lists, the overload set is said to be what?
C++ class templates: if you instantiate a class template once with int and again with double, how do you call the same member function on those different instantiations?
In software design, which form of coupling between modules is considered best (i.e., most desirable) for maintainability and reuse?
In modular programming terminology, sending a copy of data to a program module (so the callee receives only the current value) is called what?
C/C++ literals: which of the following characters are valid inside a numeric literal token (as part of the literal itself) in standard C++?
C++ string literals: select the single option that is an
invalid
string constant (i.e., not a valid string literal) while others are valid strings.
C++ One Definition Rule (ODR): can you define the same non-inline function more than once in the same program (across translation units)?
Overloading in C++: overloaded functions are required to meet which condition?
In C++ input and output using iostreams, which statement correctly allows the user to enter (read) a value from the keyboard into the variable named currentPay?
1
2
3