投資銀行C++筆試題
Part 1: Basic Questions
Question 1:
Which of the following is not automatically generated by the compiler?
a) default constructor
b) copy constructor
c) equality operator (op==)
d) assignment operator (op=)
e) destructor
Question 2:
Which of the following is not an STL collection?
a) vector
b) list
c) map
d) tree
e) set
Question 3:
Which statement is false?
a) Destructors are called when a pointer is deleted.
b) Destructors are called when an object goes out of scope.
c) Destructors are called when a reference goes out of scope.
d) A virtual destructor should be used if the class has virtual methods.
e) Base class destructors are called after derived class destructors.
Question 4:
What should you avoid calling from a constructor?
a) a static method
b) an inlined method
c) a virtual method
d) a const method
e) an extern method
、、、、、、
更多內容請下載附件