Zdravím, chodím poslední dobou na pohovory a u některých věcí si nejsem celkem jistý. Hlavně když to bylo v angličtině... Poradíte ? (některé blbosti jsem vyškrtl, něco co si myslím že je dobře zvýraznil. může být 0 až více odpovědí...)
.
1: In which memory part will be the variable "test" from following function allocated?
a) on stack
b) on heap
c) on hard drive
d) in cache memory
.
2: What is the primary value in using virtual fuction within C++?
a) the prevent the base class function from ever being called
b) they allow you to provide unique behavior for derived classes
c) since they are "virtual" they sometimes don't really exist
d) internet technologies
.
3: Multiple inheritance is best described as?
a) a fun thing to debug
b) multiple derived classes in a long chain from the first base class
c) a class used as a base class for more then one derived class
d) a class derived from two or more base classes
.
4: In two functions within the same class have the same name what happens?
a) either one will be called depending on the parameters
b) nether function wil be called. this is dead code and a very difficult problem to debug
c) both functions will be called in order. this is called multiple inheritance
d) the base class function of the same name will be called.