有谁有.net软件工程师笔试题目,给我一份啊,非常感谢

有答案的。

.net软件工程师笔试题目
1. 请为ASP.Net下一个定义。

2. 请解释B/S,并比较C/S,给出B/S的优点。

3. 请说明人们提出“面向对象编程”概念的用意是什么?

4. 阅读以下C++代码,并回答问题。

CPerson *aPerson = new CChinese();

aPerson->Say();

aPerson = new CAmerican();

aPerson->Say();

return 0;

(1) 上述代码的范型是“结构化编程”、“面向对象编程”、“泛型编程”中的哪一种,为什么?

(2) 为上述代码构造一个函数签名。

(3) 说出上述代码存在的问题。

(4) 请说出“CPerson”、“CChinese”、“CAmerican”三者之间的关系。

(5) 请说明第二个“aPerson->Say( )”代码调用的是“CChinese”还是“CAmerican”的“Say”函数?这体现了什么特征?

5. 请说出三种程序的基本结构。

6. 请说明什么是“客户程序”。

7. 请指出以下哪几个变量名取得比较好?

(1)abc (2)m_Name (3)aCat (4)curTime (5)currentTime

(6)seekCount4Person (7)sc_Person (8)found (9)fnd

(10)iCount (11)count

8. 请说明“关系表达式和逻辑表达式”与“命题逻辑和谓词逻辑”之间的关系。

9. 请说出C++中独立函数的构成元素。

10. 请解释“接口”的概念。

11. 阅读以下C++代码,并回答问题。

int add( int x = 0, int y = 0 )

{ return x + y;}

float add( float x = .0f, float y = .0f )

{ return x + y;}

double add( double x, double y )

{ return x + y;}

void main(void){

cout << add( 1, 2 ) << endl;

cout << add( 3.5, 4.7 ) << endl;

cout << add( ) << endl; }

(1) 上述代码使用到的是“Overload”技术还是“Override”技术?

(2) 在C++中可以采用什么技术简化上述代码,请实现之。

(3) 说出上述代码存在的问题。

12. 请说出C++中“成员变量的私有”、“定义类的成员”、“某个类是另外一个类的子类”、“Override和virtual成员函数”四种代码表现分别体现了面向对象的四大基本特征的哪一个?

13. 请说出C++中“类的组合”、“成员函数的参数为某个类的对象”、“某个类是另外一个类的子类”、“纯虚成员函数”四种代码表现分别体现了面向对象的四种基本关系的哪一种?

14. 请说出为什么在C++中析构函数最好定义为虚函数?

15. 请说明C++中,怎样让一个客户程序无法实例化某个类的对象。

16. 请说明C++中,怎样让整个程序只能实例化一次某个类的对象。

17. 请看以下的UML图,编写“CAnimal”、“CDog”、“CEye”三个类的C++声明代码。

18. 阅读以下C++代码,并回答问题。

class CString {

public:

int Compare(const char* s);

CString(CString& s);

int Compare(CString& s);

CString& Add(CString& s);

int GetLength();

const char* C_Str();

CString(char c, unsigned int n = 1);

CString(const char* s);

CString();

virtual ~CString();

protected:

int CalLength(const char* s);

void Clear();

void Init();

private:

unsigned int m_length;

char* m_str;

};

(1) 请说明该类有几个构造函数?

(2) “const char* C_Str()”为什么要加上const关键字?

(3) 如果“CString s = otherString;”会不会调用构造函数,如果调用将会调用哪个构造函数?

(4) 请实现“GetLength”成员函数。

(5) 请实现“CString(char c, unsigned int n = 1);”构造函数。

(6) 请实现“Compare(const char*s);”成员函数。

(7) 请实现“Clear();”成员函数。

(8) 如果增加“InputString”成员函数用于从键盘输入字符串,请问是否合适,为什么?

(9) 请问代码“Compare(CString& s){ return Compare(s.C_Str());}”是否可行,如果可行,有什么好处?

19. 请说明数据库中View是“外模式”、“模式”还是“内模式”?

20. 请看下属公式说明的是什么连接运算?

21. 阅读以下数据库模式,并回答问题。

Course( CourseID#, Name, CheckType, Property )

Student( StudentID#, Name, ClassID )

Class( ClassID#, Name, SpecialityID, DepartmentName )

Speciality(SpecialityID#, Name, DepartmentID )

Department(DepartmentID#, Name, Address )

ChooseCourse(StudentID#, ClassID#, CourseID#, Term#, Score1, Score2)

注意:上述“#”表示主码。

(1) 写SQL,求每门课程的修读人数(结果中包含课程名称)。

(2) 写SQL,求修读人数大于30人的课程(结果中包含课程名称)。

(3) 写SQL,求修读课程数多于1门的学生(结果中包含学生姓名)。

(4) 写SQL,求“信管04-1班”每位同学选修的学分总数(结果中包含学生姓名)。

(5) 写SQL,求每个学院(部门)的学生人数 。

(6) 请说出上述数据库模式是否符合第四范式?如果不符合,请将其进行规范化处理。

(7) 请说出为什么需要规范化处理?

(8) 请为上述规范化到第四范式的数据库绘制出概念模型(ER图)。

22. 请完成下表的填写。

隔离级别
脏读
不可重复读取
幻像

READ UNCOMMITTED

READ COMMITTED(默认)
否

REPEATABLE READ

是

SERIALIZABLE

否

注意:“是”表示某隔离级别会出现某种错误的情况,“否”则反之。

23. 请按照下图解释“三层系统架构”。

Presentation

Business

Data

DB

网页

24. 请完成以下翻译(可以精简成内容提要)。

Passage One:

The .NET Framework provides a first-class foundation for building and consuming Web services based off of the fundamental protocols of XML, SOAP, and WSDL. But despite the interoperable and loosely coupled beauty of these traditional Web services, before long one finds one's self wanting for more. For instance, in the area of security, it seems contradictory to depend on HTTP security mechanisms when SOAP messages were designed to hold metadata-like security information. Similarly, the request/response nature of HTTP, which fits perfectly for many message exchange patterns, seems like an overly restrictive one-size-fits-all solution when other message exchange patterns would fit your business needs better. This is a particularly frustrating restriction because the SOAP specification goes out of its way to avoid such limitations in Web service message exchange.

Web Services Enhancements (WSE) is the Microsoft extension to the Web service support in the .NET Framework that builds on the foundation of XML, SOAP, and WSDL with higher-level protocols that support such things as message-based security, policy-based administration, and the flexibility to move message-exchange out of the HTTP-only world. The result is a Web service platform that can save developers from the tedious, time-consuming, and fragile world of developing higher-level requirements themselves. Instead they can rely on the supported and interoperable solution that is provided by WSE.

Passage Two:

The BaseDataBoundControl is the root of all data-bound control classes. It defines the DataSource and DataSourceID properties and validates their assigned content. DataSource accepts enumerable objects obtained and assigned the ASP.NET 1.x way.

Mycontrol1.DataSource = dataSet;

Mycontrol1.DataBind();

DataSourceID is a string and refers to the ID of a bound data source component. Once a control is bound to a data source, any further interaction between the two (in both reading and writing) is handled out of your control and hidden from view. This is both good and bad news at the same time. It is good (rather, great) news because you can eliminate a large quantity of code. The ASP.NET framework guarantees that correct code executes and is written according to recognized best practices. You're more productive because you author pages faster with the inherent certainty of having no subtle bugs in the middle. If you don't like this situation—look, the same situation that many ASP.NET 1.x developers complained about—you can stick to the old-style programming that passes through the DataSource property and DataBind method. Also in this case, the base class saves you from common practices even though the saving on the code is less remarkable.
温馨提示:答案为网友推荐,仅供参考
相似回答