注册 登录  
 加关注
查看详情
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

上善若水,厚德载物

To the person U will be the whole world

 
 
 

日志

 
 

.net程序开发 面试试题  

2007-04-11 12:26:45|  分类: 学习资料 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

前几天搞到一家公司的面试试题,说实话很讨厌老要人做题的公司,又不是刚毕业学生.不过看了看题,觉得题目还出的不错,大部分题感觉都能答点,但又都不确定,欢迎大家都来试试.

Question 1 -  System Architecture
Consider the following system deployment or design:

 User--------------Web server--------------Database

Part a -  Rate the Design
How do you rate this system in regards to the following criteria?
Indicate for each criteria – resiliency, performance and scalability – whether you consider the design of the system displayed above as poor, average or superior. Select ‘n/a’ if you feel the information is insufficient to make a choice.
Resiliency0 n/a0 poor0 average0 superior
Performance0 n/a0 poor0 average0 superior
Scalability0 n/a0 poor0 average0 superior

 

Part b -  Explain the Ratings
For the choices where you selected either poor or superior, specify one relevant reason for you selection.

Resiliency                                                         

Performance                                                         

Scalability        
                                                  

Part c -  Suggest Improvements
For the choices where you selected either poor or average, suggest one or two options to improve the design of the system. You may also use the space below to draw a picture.

Resiliency                                                               

Performance                                                           

Scalability

 

 

 

Question 2 -  .NET Unmanaged Code
What would be a valid reason for using unmanaged code within a .NET application that otherwise relies on managed code only?

 

 

 
Question 3 -  Shopping Cart & HTTP Sessions
Retail sites that offer products for purchase frequently provide a “shopping cart” feature. It allows users to add multiple items to a virtual shopping cart and to purchase the items in one transaction rather than individually.
This kind of feature is often implemented using one of the following two approaches.
A Cookies Only:All of the session data is stored in HTTP browser cookies.
B Cookies & Database:A session key for each user is stored in a HTTP browser cookie while the values are persisted in a database.

Part a -  Rate the Options
How do these approaches compare in terms of the following criteria:
   Resiliency0 A better0 B better0 Both equal
   Performance0 A better0 B better0 Both equal
   Scalability0 A better0 B better0 Both equal

Part b -  Session Data Size
Which of the two solution is more appropriate if the amount of session data is
Always less than 10 bytes0 A 0 B0 Both equal
Always less than 1 KB0 A 0 B0 Both equal
Always less than 10 KB0 A 0 B0 Both equal
May exceeed 10 KB0 A 0 B0 Both equal
May exceeed 100 KB0 A 0 B0 Both equal

 

 

 


Question 4 -  Shopping Cart & Web Services
This question refers again to the shopping cart feature described in the previous question.
How would you design the same shopping cart functionality if it is provided as a SOAP web service rather than a web site?  Event though the SOAP service is being accessed through HTTP (HTTP transport binding,) cookies may not be used.
Briefly describe your suggestion below. 

 

 

 
Question 5 -  HTTP Caching Headers
The HTTP standard specifies a number of headers that are used to determine if and how response data can be cached.
List Names of Caching Headers
Part a -  Examples
List two or three of the most relevant headers.
Part b -  Caching Headers & HTTP Methods
Indicate which of the following HTTP request methods caching may apply:
    HTTP GET0 Yes0 No
    HTTP POST0 Yes0 No
    HTTP HEAD0 Yes0 No
    HTTP PUT0 Yes0 No

 

 

 

Question 6 -  .NET Virtual Machine
Part a -  Crashing a .NET Virtual Machine
If asked to do so, how would you crash a .NET process (Java process) using managed code only?
Part b -  Debugging a .NET Virtual Machine
A .NET application frequently runs out of memory and crashes. What approach and/or what tools would you take to analyze and fix the problem.

 

 


Question 7 -  .NET Web Service Clients
Web service client proxies in .NET offer two different methods to communicate with web services:
A)<NameOfWebServiceMethod>
B)Begin<NameOfWebServiceMethod>
End<NameOfWebServiceMethod>


Part a -  Describe the Difference.
What is the difference between the using the method under A compared to using the methods under B.


Part b -  Describe a Use Case for B
Why would you use B rather than A?


Part c -  Callbacks
The Begin<NameOfWebServiceMethod> method takes a callback as a method argument.  Upon which event is the callback invoked? (Select all that apply.)
0 After a connection to the remote web service has been established.
0 Before sending the request data.
0 After the request data has been sent.
0 When receiving the response data.
0 After all response data has been received.
0 After the connection has been closed.

 

 

 


Question 8 -  XML Processing in .NET
The .NET class library provides the following APIs or classes for processing XML.
XmlDocument
XPathDocument & XPathNavigator
XmlReader


Part a -  Describe Key Differences
Describe the key properties of or differences between the three APIs.

 

 

 


Question 9 -  Web Services & TCP Sessions/Connections
A SOAP web service using HTTP as transport binding is being deployed on a cluster of servers. A load balancer is used to connect new TCP connections randomly to one of the servers in the cluster. Servers are automatically removed from the cluster if down or otherwise unavailable.
The router operates on the TCP connection level, enabling persistent TCP connections between a client and one specific application server.
 

Part a -  Keep Alive (HTTP Connection Reuse)
When answering the following question you should assume that the web services running on the application servers support HTTP connection reuse (or HTTP keep-alive, or HTTP persistent connections.)
What is the impact if clients are using the HTTP 1.1 Keep Alive feature, therefore sending multiple requests sequentially through a single TCP connection/session?


Part b -  Recommended use of Keep Alive (HTTP Connection Reuse)
Under what circumstances would you recommend use of the HTTP 1.1 connection reuse feature?


Part c -  Suppressing Keep Alive (HTTP Connection Reuse)
How could you ensure that HTTP connections are never reused for multiple SOAP requests? Assume that clients may attempt to use this feature.

 

 


Question 10 -  Performance Considerations
When in the development process should you consider performance issues?
What do you consider major weaknesses or deficiencies within .NET or .NET related technologies (i.e. ASP.NET.)

 

 


Question 11 -  Requirements
A customer has asked you to write a toUpper function. The only requirement you have is:
It must return 'A' when given an input of 'a'.
What if any questions do you need to ask to ensure the implementation meets the customer’s expectations?

 

 

 

Question 12 -  Multiple Inheritance
You are porting a application from C++ to C# that makes use of multiple inheritance. How to you model multiple inheritance in C#?

 

 

 

Question 13 -  Software Design
Rank the following attributes in order of importance when designing new code.
Performance    
Maintainability    
Correctness    
Ease of use    
Reuse    
Are there any other aspects that you feel are equally or more important?

 

 

 


Question 14 -  Web Service & Transactions

In order to execute a specific action, a client application must make two separate web-service requests to two distinct systems, A and B. Both request add or modify data within the respective system. Also, parts of the response data received from the first system is included in the request sent to the second system.
Both service A and B also provide a method that allows rolling back a previously executed request.
Part a -  Support for Transactions
The system needs to be modified such that it guarantuees transactional integrity in regards to the two operations. That is, it must be guarantueed that either both or neither operations succeed. Rollback of a previously executed operation is acceptable.
Assume that requests may fail at any point for any reason.

 

 

 


Question 15 -  RPC vs. Web Services
What are the main factors that distinguish RPC (Remote Procedure Calls) from Web Service Requests?
Describe a scenario where RPC are the more appropriate choice.
Describe a scenario where web services requests are the more appropriate choice.

 

 

 


Question 16 -  Software Development in Remote Teams
What do you expect or consider to be the most challenging aspects of working in a software development team where members are in different locations such as Asia, Europe and US?

  评论这张
 
阅读(227)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018