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++ templates, the type used when instantiating a class template must follow the generic class name (for example, MyContainer
). Identify the correct phrase that completes this rule.
Core control structures in computer programs: identify which type of statement does NOT occur among sequence, selection, and loop constructs.
In C/C++ input–output, the newline character (line break) is always included within the control string (for example, " " in a printf/format string) when you explicitly want a new line. Identify the correct phrase.
In C/C++, you mark the beginning of a function’s block (compound statement) with which delimiter?
In algorithm design and programming, the step-by-step instructions that solve a problem are called what?
C++ I/O streams: assess the statement—“Some streams work with input, and some with output.” Select True or False.
In object-oriented programming with C++, a base class may also be referred to by which alternative term?
Parameter passing in C++: of the three common ways (by value, by reference, by pointer), which two allow a function to modify the caller’s original argument?
C++ templates: regarding a template function's generic parameter name, which statement is correct?
In C/C++ programming, which one of the following statements about functions is false? Choose the incorrect claim while keeping in mind that programmer-defined functions may return values or be void and can be reused across a program.
In C++ exception handling, what does a default catch-all block (written as catch(...)) actually catch when placed after more specific handlers?
In modular C++ design, using a Wardrobe structure inside a ShopList structure demonstrates which good programming principle?
In C++ iostreams, a function (often a free function) that changes the formatting state of std::cout via the insertion operator << is called a what?
C++ file streams: which std::ios open mode flag tells the library to open a file for input (reading)?
C/C++ preprocessor basics: the #ifndef directive tests whether which entity has NOT been previously defined?
Minimum requirement for an object-oriented language: which capability must the language provide to be considered object-oriented in practice?
C++ inheritance lookup: when a child (derived) class function is called on an object, where does the compiler look first for a matching function signature/name?
Analogy check in OOP: a blueprint is to a widget as which concept is to an object?
C++ strings: what character does the language append automatically to the end of a string literal constant (e.g., "Hello")?
In C/C++ control flow, what is the role of the break statement inside a switch selection statement, and is its use mandatory or optional for each case?
1
2
3