Hi there guys,
I'm just about to leave uni and have applied for a new job as a C++ developer.
At this job i will recieve training before i start normal work but i have been sent a few questions that they would like me to complete and send back to them.
I guess this is to judge on whether or not i am suitable for the job.
here are the questions:
1. Give an example, with comments, of the declaration of a simple class.
2. What does the virtual keyword signify in a class declaration?
3. If you have virtual functions in a class, what is it essential to do? Why?
4. What are the key features of an abstract base class?
5. When would you use an abstract base class?
6. Give an example of a class hierarchy which includes an abstract base class.
7. Give class declarations for the classes in the hierarchy.
8. What is aggregation (aka. containment / layering)? How does it differ from private inheritance?
9. What do you understand by the term polymorphism in the context of C++? Which features of the language support its implementation?
10. What are the differences between passing values, references and pointers as parameters to functions?
11. What are the different places that const can be used?
I only know answers to a few of these questions. Do you think i should try my best to research some of the answers on the net?
I was sent the test this morning and they were hoping to receieve it back off me within a few hours, i'm starting to panick now as i have had it already for 4 hours.
Can anyone give me a hand with any of the questions?
Thanks in advance
Matthew Phillips
I'm just about to leave uni and have applied for a new job as a C++ developer.
At this job i will recieve training before i start normal work but i have been sent a few questions that they would like me to complete and send back to them.
I guess this is to judge on whether or not i am suitable for the job.
here are the questions:
1. Give an example, with comments, of the declaration of a simple class.
2. What does the virtual keyword signify in a class declaration?
3. If you have virtual functions in a class, what is it essential to do? Why?
4. What are the key features of an abstract base class?
5. When would you use an abstract base class?
6. Give an example of a class hierarchy which includes an abstract base class.
7. Give class declarations for the classes in the hierarchy.
8. What is aggregation (aka. containment / layering)? How does it differ from private inheritance?
9. What do you understand by the term polymorphism in the context of C++? Which features of the language support its implementation?
10. What are the differences between passing values, references and pointers as parameters to functions?
11. What are the different places that const can be used?
I only know answers to a few of these questions. Do you think i should try my best to research some of the answers on the net?
I was sent the test this morning and they were hoping to receieve it back off me within a few hours, i'm starting to panick now as i have had it already for 4 hours.
Can anyone give me a hand with any of the questions?
Thanks in advance
Matthew Phillips
Comment