威盛公司软件C++工程师笔试题面试题
2023-07-05
1.How good do you see yours programming skills?Please circle your answe
rs
C: Fair/Good/Excellent
C++: Fair/Good/Excellent
2.Please estimate your programming experince:
How many lines of code are your biggest C Program ever written exclud
ing the
standard linked library?
How many lines of code are your biggest C++ program ever written excl
uding the
standard linked library?
3.Please explain the following terms
Data Encapsulation
Inheritance
Polymorphism
4.What is a virtual base class?How do you declare such a class?How woul
d you use
it in a design?
5.What is a template or container class?How do you declare such a class
?
6.Which are the access control levels for C++ language?
7.What is RTTI?How do you achieve RTTI in your design?
8.What are the major differences between static and non-static member f
unctions?
9.How do you call a regular member function from a static member functi
on?
Please use psendo-code to provide your answer
10.How do you declare/define a type of pointer to a class member functi
on?
Please use psendo-code to provide your answer
11.Please explain the following tyoes:
Here is a short lise of combinations and their meanings:
1.Reference-Can change the referenced object
2.Const-Reference
3.Const-Pointer-
4.Pointer-Const-
5.Const-Pointer-Const-
CFoo Instance
CFoo &ReferenceToInstance=Instance; //1
const CFoo &ConstReferenceToInstance=Instance; //2
const CFoo *pConstPointer=&Instance; //3
CFoo *const pPointerConst=&Instance; //4
const CF00 *const pPointerConst=&Instance; //5
12.What are top-down and bottom-up approach?How do you usually use them
?
13.Please use pseudo-code to design a set of stack operations with temp
late
14.Please use pseudo-code to design a set of double linked list operati
ons with
template
Optional Questions:(for extra credits)
15.Please write a unix makefile for Question13
16.Please explain these common sections:text,data,bss