没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
Interview Success Kit – Free Edition: If you like this preview, you’ll love the full version
http://interview-kit.vyomworld.com
Get the Full Version, with 9,000 Interview Questions & Answers at http://interview-kit.vyomworld.com
Dot Net Interview Success
Kit
Preview of Interview Success Kit Containing 9,000+
Interview Questions & Answers
http://interview-kit.vyomworld.com
Interview Success Kit – Free Edition: If you like this preview, you’ll love the full version
http://interview-kit.vyomworld.com
Get the Full Version, with 9,000 Interview Questions & Answers at http://interview-kit.vyomworld.com
If you like this Kit:
This eBook contains 100 Interview Questions &
Answers. If you like this eBook, you will definitely love
the full version of Interview Success Kit – which
contains 9,000 Interview Questions & Answers.
Read more about the Complete Interview Success kit at
http://interview-kit.vyomworld.com/
Interview Success Kit is a complete Interview Cheat-sheet,
written by 58 Subject Experts.
Interview Success Kit – Free Edition: If you like this preview, you’ll love the full version
http://interview-kit.vyomworld.com
Get the Full Version, with 9,000 Interview Questions & Answers at http://interview-kit.vyomworld.com
DOT NET INTERVIEW QUESTIONS
By www.Coolinterview.com
Dot Net Study Materials
1. How do you turn off cookies for one page in your site?
Use the Cookie. Discard Property which Gets or sets the discard flag set by the server. When
true, this property instructs the client application
not to save the Cookie on the users hard disk when a session ends.
Or
it can be turned off by mentioning cookie state= false in web.config file
2. How u can create XML file?
To write Dataset Contents out to disk as an XML file use:
MyDataset.WriteXML(server.MapPath("MyXMLFile.xml"))
3. What is CLR?
CLR is .NET equivalent of Java Virtual Machine (JVM). It is the runtime that converts a MSIL code
into the host machine language code, which is then executed appropriately. The CLR is the
execution engine for .NET Framework applications. It provides a number of services, including:
Code management (loading and execution)
Application memory isolation
Verification of type safety
Conversion of IL to native code.
Access to metadata (enhanced type information)
Managing memory for managed objects
Enforcement of code access security
Exception handling, including cross-language exceptions
Interoperation between managed code, COM objects, and pre-existing DLL's (unmanaged code
and data)
Automation of object layout
Support for developer
Services (profiling, debugging, and so on).
4. Which two properties are on every validation control?
Control to validate & Error Message.
5. What Is The Difference Between ViewState and SessionState?
View State persist the values of controls of particular page in the client (browser) when post
back operation done. When user requests another page previous page data no longer available.
SessionState persist the data of particular user in the server. This data available till user close
the browser or session time completes.
6. What is CTS and CLS?
=>cls stands for common language specification where as
cts stands for common type system.
Interview Success Kit – Free Edition: If you like this preview, you’ll love the full version
http://interview-kit.vyomworld.com
Get the Full Version, with 9,000 Interview Questions & Answers at http://interview-kit.vyomworld.com
=>CLS : cls is a standard for .net . cls is small set of specification to make all languages as a .net
compliant languages. cls make a use of cts and clr. if my languages (c#,vb.net,j#,vc++) wants to
be compliant language it has to follow cls standard.
=>CTS : Common Type System is also a standard like cls. If two languages (c# or vb.net or j# or
vc++) wants to communicate with eachother, they have to convert into some common type (i.e
in clr common language runtime). In c# we use int which is converted to Int32 of CLR to
communicate with vb.net which uses Integer or vice versa.
7. Which property on a Combo Box do you set with a column name, prior to setting the Data
Source, to display data in the combo box?
ComboBox.DataValueField = "ColumnName"
When we use Databind method for the Combo box we set Display Member and Display Value
property to column name.
8. In .NET Compact Framework, can I free memory explicitly without waiting for garbage
collector to free the memory?
Yes you can clear the memory using gc.collect method but it is recommended that u should not
call this coz we don’t know the exact time when the gc will be called automatic.
9. What is "Common Type System" (CTS)?
CTS define all of the basic types that can be used in the .NET Framework and the operations
performed on those type. All this time we have been talking about language interoperability,
and .NET Class Framework. None of this is possible without all the language sharing the same
data types. What this means is that an int should mean the same in VB, VC++, C# and all other
.NET compliant languages. This is achieved through introduction of Common Type System (CTS).
10. What is the difference between the C#.NET and VB.NET?
VB.NET
- It didn't have the XML Documentation.
- It didn't have the Operator Overloading.
- It didn't have the Pointer Type variables.
C#.NET
- It has XML Documentation, Operator Overloading and supports Pointer Variables using unsafe
keyword
11. How do you create a permanent cookie?
By setting the expiry date of the cookie to a later time (like 10 years later.)
12. Why is catch(Exception) almost always a bad idea?
Well, if at that point you know that an error has occurred, then why not write the proper code
to handle that error instead of passing a new Exception object to the catch block? Throwing
your own exceptions signifies some design flaws in the project.
13. What tags do you need to add within the asp datagrid tags to bind columns manually?
<asp:BoundColumn> is the tag you usually use to add a bound column. You may also use
<asp:TemplateColumn>
Interview Success Kit – Free Edition: If you like this preview, you’ll love the full version
http://interview-kit.vyomworld.com
Get the Full Version, with 9,000 Interview Questions & Answers at http://interview-kit.vyomworld.com
<ItemTemplate><%#...%></ItemTemplate>
</asp:TemplateColumn>
to add a bound column to a datagrid.
14. What tags do you need to add within the asp:datagrid tags to bind columns manually?
Inside tag in asp:Datagrid we set Text attribute to<%= #container.Eval
(databinder.dataitem,"Col_Name") %>
15. What tag do you use to add a hyperlink column to the DataGrid?
Anchor tag is used to add a hyperlink column to the data grid
16. How does VB.NET/C# achieve polymorphism?
VB.Net / C# provide polymorphism through the following mechanisms:
1. Inheritance - base class provides overridable methods which are re-implemented in derived
classes.
2. Interface - different class can implement same interface, resulting in different
implementations of interface methods.
3. Virtual methods - achieve runtime polymorphism.
17. Can a .NET web application consume Java web service?
Yes Offcourse.Actually Webservices are independent to language. it depends on WSDL and
SOAP. so any one can develope the Webservices anddisclose the wsdl and users can consume
the webservices.wsdl and soap both are xml based.. and all languages having xml parsing
capability and access to http protocol will be able to work with Webservices.
18. What are value types and reference types?
Value type - bool, byte, chat, decimal, double, enum , float, int, long, sbyte, short, strut, uint,
ulong, ushort. Value types are stored in the Stack
Reference type - class, delegate, interface, object, string. Reference types are stored in the Heap
19. Which control cannot be placed in MDI?
The controls that do not have events.
20. Can we run DOT.NET in UNIX platform?
One of the disadvantages of using Visual Studio.NET and the .NET framework to develop
applications has been the lack of cross-platform support. Since the introduction of the .NET
framework and common language run time a few years ago, there have been a few projects
designed to bring the .NET framework to other platforms, including Linux and UNIX. The
DotGNU project is touted as the "Free software alternative to .NET" and encompasses a number
of projects, including DotGNU Portable .NET, which is designed to be used to compile and run C#
and C applications on a multitude of platforms, including GNU/Linux, FreeBSD, Mac OS X, and
Windows.One of the main features of the product is it's compatibility with EMCA standards for
C# and the Common Language Infrastructure (CLI), as well as Microsoft's own CLI
implementation in the .NET framework. The project chose to go with a "Virtual Machine"
implementation, where bytecode is transformed into a simple instruction set which is then
passed to a "Converted Virtual Machine", which then are executed through an interpreter. This
approach is different to other open source .NET implementations, but provides more flexibility
when porting the project to other platforms.At the core of the project is the runtime engine
(ilrun) and compiler (cscc) with an implementation of System.Windows.Forms that make
剩余32页未读,继续阅读
fen596899354
- 粉丝: 21
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0