Podcast
Questions and Answers
Select one:
Select one:
- Unknown exception
- No exception
- Exception(int) with value: 10 (correct)
- Exception(double) with value: 1.1
The following code snippet:
template
T& min(T& l, T& r) {
return l <= r ? l : r;
}
represents:
The following code snippet:
template T& min(T& l, T& r) { return l <= r ? l : r; }
represents:
- a function template that can always be instantiated
- a part of class template that can be instantiated if the <= operator is defined for type T
- a function template that can be instantiated if the <= operator is defined for type T (correct)
- a class template
Inheritance in C++ has the following properties:
Inheritance in C++ has the following properties:
- it is not allowed to inherit from many classes at once
- it's impossible to call the method which is defined in a base class inside a method that overrides it
- is a mechanism of reusing and extending existing classes without modifying them (correct)
- the same method may have different meanings in derived classes (correct)
Inheritance in C++ is possible when:
Inheritance in C++ is possible when:
When we apply the object-oriented paradigm, we in general:
When we apply the object-oriented paradigm, we in general:
Qt's signals/slots mechanism has the properties:
Qt's signals/slots mechanism has the properties:
To declare an operator function in C++:
To declare an operator function in C++:
The vector class in the C++ Standard Library has the properties:
The vector class in the C++ Standard Library has the properties:
The following C++ code snippet:
int a; double d;
ofstream os("Data.csv");
os << a << "," << d;
will:
The following C++ code snippet:
int a; double d; ofstream os("Data.csv"); os << a << "," << d;
will:
In order to test the indexing operator with the use of equivalence partitioning and boundary values analysis methods, one needs to prepare a test suite with:
In order to test the indexing operator with the use of equivalence partitioning and boundary values analysis methods, one needs to prepare a test suite with: