Questions and their Answers ...
------------------------------------
1)Is it possible to debug java-script in .NET IDE?
Ans : Yes, simply write "debugger" statement at the point where the breakpoint needs to be set within the javascript code and also enable javascript debugging in the browser property settings.
2) What’s the top .NET class that everything is derived from?
Ans : System.Object
3) Does C# support multiple-inheritance?
Ans : No
4) Is ASP.Net a language or technology?
Ans : technology.
5) What is default time for a session?
Ans : 20
6) Finally block executes every time ?
Ans : Yes
7) How can we sort an Array in decreasing order?
Ans : By calling Sort() and Reverse() methods
8) Which one of the following is Immutable?
Ans : Strings
9) What is the life span for items stored in ViewState
Ans : GC will remove items.
10) What are properties common to very Validation Control?
Ans : ControlToValidate Properties
Text Properties
ErrorMessage Properties
11) How can you provide an alternate color schema in a Repeater Control?
Ans : AlternatingItem Template.
12) Can Abstract Class be Inherited ?
Ans : Yes
13) Suppose you want a certain ASP.net function executed OnMouseOver for a certain button. Where do you add an Eventhandler ?
Ans : Button1.Attributes.Add("OnMouseOver","ClientScriptHere");
14) Where do you store the information about the user locale
Ans : System.Web.UI.Page.Culture.
15) What data type does the RangeValidator supports ?
Ans : Integer, String, Date.
16) As part of your weekly review meeting with your manager, he is testing your knowledge to the extreme! He wants you to put the following steps in the correct order relating to how IAS resolves a user name without a specified domain name.
A) IAS checks the default domain registry key. If one is specified, IAS authenticates the user against the domain specified in the registry key.
B) If the IAS server is not a member of a domain, IAS authenticates the user against the local Security Accounts Manager (SAM) database.
C) If the IAS server is a member of a domain, IAS authenticates the user against the domain to which it is joined.
Ans : A,C,B
17) As part of a group exercise all members of your network team have been asked to explain a concept of Windows Server 2003. Your manager has given you an extract describing a certain feature of Active Directory. He wants you to complete the missing word in the following paragraph:
In the Active Directory directory service, the _____ contains database files and processes that store and manage directory information for users, services, and applications. A copy of the _____ runs on each domain controller in the forest. The _____ provides access to directory information through a process called the Directory System Agent (DSA). The _____ holds directory information in a database file called Ntds.dit. The Active Directory _____ is often referred to as the directory
Ans : Data store
18) As the primary network administrator at your organization you have been tasked with logging UDP and TCP requests to the organizations DNS Server. How can you log User Datagram Protocol (UDP) and TCP DNS requests from host 10.2.3.99 to your DNS server with the least administrative effort?
Ans : Use the Debug Logging tab in the server’s properties dialog box
The correct answer is Use the Debug Logging tab in the server’s properties dialog box.This dialog allows you to define certain logging criteria including packet direction, content and type. You can also filter on IP address so in this case you could filter traffic coming from 10.2.3.99
19) You are working on configuring the Local Security Policies of individual computers in your organization. Your manager has recommended using one of the predefined security templates to save time by pre-populating most of the settings you will use.
Which one of the following security templates does NOT exist:
Ans : Extreme secure (extreme*.inf)
21) What is Default Authentication in ASP.NET.
Ans : Windows.
22) Expansion of CLI ?
Ans : Common Language Interface.
23) What does WSDL stand for?
Ans : Web Services Description Language
24) A Web service can only be written in .NET?
Ans : False
25) Expansion of SOAP?
Ans : Simple Object Access Protocol.
26) What is the transport protocol you use to call a Web service?
Ans : SOAP
21) Default modifier for Class?
Ans : private.
22) What is Interface default modifier ?
Ans : public
23) Specifies a search condition for a group or an aggregate
Ans : Having with Group by Clause.
24) PostBackUrl attribute is valid for
Ans : Button, Image, LinkButton
25) Which of the following is Navigation control?
Ans : Site Maps, Dynamic HTML menus, Tree View
26) Whether OleDbDataReader class is used to read a stream of records from a data source?
Ans : Yes
27) Whether ADO.NET is a part of the .NET Framework ?
Ans : Yes
28) What NameSpace we need to work with DataSet?
Ans : System.Data
29) The following controls are list controls which support data binding?
Ans : RadioButtonList, CheckBoxList, DropDownList, ListBox
30) Expansion of SDK?
Ans : Software Development Kit.
31) What's the maximum number of columns can a table have
in SQL Server 7.0?
Ans : 1024
32) Can you configure a .NET Remoting object via XML file?
Ans : Yes
33) How do you convert a value-type to a reference-type?
Ans : Using Boxing
34) What namespaces are necessary to create a localized application?
Ans: System.Globalization ,Sytem.Resources
35) What is the smallest unit of execution in .NET?
Ans : Assembly
36) What are the ways to deploy an assembly?
Ans : MSI Installer, a CAB archive, XCOPY command
37) What’s the difference between // comments, /* */ comments and /// comments? In XML -
Ans : Single line Comment, Multi-line Comment, XML documentation Comment.
38) Why can’t you specify the accessibility modifier for methods inside the interface?
Ans : By Default Public
39) What class is underneath the SortedList class?
Ans : A Sorted HashTable
40) What’s the .NET collection class that allows an element to be accessed using a unique key?
Ans : HashTable
41) What are the new caching features in ASP.NET 2.0?
Ans: SQL Cache Invalidation, Post-Cache Substitution ,Fragment Caching API,Cache Configuration
42) An application includes the following elements in the Page directive:
Debug=”True” and Trace="True".Which statement should be used when each page has to provide execution information in the Web browser immediately after the page’s normal display output
Ans: Trace.Write
43) You need to select a class that is optimized for key-based item retrieval from both small and large collections. Which class should you choose?
Ans : HybridDictionary Class
HybridDictionary: Implements IDictionary by using a ListDictionary while the collection is small
44) Which method is used to clear a Queue named q?
Ans : q.Clear();
45) Your application uses two threads.
How to prevent the execution of threadOne
until threadTwo completes execution?
Ans : Use a WaitCallback delegate to synchronize the threads.
46) Is it possible to have a static indexer in C#? allowed in C#.
Ans : No. static indexer are not.
47) Is it possible to inline assembly or IL in C# code?
Ans: No
48) What is the structure of the code
public Class A
{
private A instance;
{
private A(){}
public static A instance {
get{
if(A==null)
A=new A();
return instance;
}
}
}
Ans : Singleton
49) If a method is marked as protected internal who can access it?
Ans : Classes that are both in the samw assembly ans derived from the declaring class.
50) Which of the following is correctly declares a two dimensional array in C#?
Ans : int[,],arrayName.
51) The C# keyword 'int' maps to which .net type
Ans : System.Int32;
52) Which of the these string definition will prevent escaping on backslashes in c#?
Ans : string s=@”n test string”;
53) Which of the following condition is false ?
Ans : FormView is Editable, FormView allows paging, FormView allow to create new field all the options are false.
54) Can you store multiple data types in System.Array?
Ans : No
55) Are private class-level variables inherited?
Ans : yes
56) Where we save Assembly Version ?
Ans : Manifest
57) How can we get Current Version of the DataRow ?
Ans : By using DataRowVersion.Current
58) How many DataRow Version we have
Ans : 4
59) How many Executing Commands we have
Ans : 4
ExecuteNonQuery() ExecureReader() ExecuteScalar() ExecuteXmlReader()
60) How many CommandTypes we have
Ans : 3
CommandType.Text CommandType.StoredProcedure CommandType.TableDirect
61) Which one of the following is TRUE?
Ans : 1) There can be only one static constructor in class
2) The static constructor should be without parameter
3) It can be access the static members of the class
4) There should be no access modifier in static constructor definition
62) The partial modifier is not applicable for
Ans : delegates & enums
63) An Interface can contain the signature of
Ans : methods ,delegates ,events
64) Can a static class contain non static members?
Ans : No
65) Can you create an instance of a static class?
Ans : No
66) What is the thread?
Ans : is used to execute more than one program at a time.
67) What is use of Sealed Class?
Ans : Restrict Inheritance
68) In C#, class can be implemented or derived from multiple interfaces?
Ans : True
69) Which data structure is implemented in hash table?
Ans : Map
70) Which is the best method of sqlcommand to execute insert query?
Ans : ExecuteNonQuery()
71) Which one can be instantiated without using new operator?
Ans : Struct
72) Which of the following statement contains default instruction?
Ans : switch…case
73) Which OOPS concept allows to extend the behaviour of base class?
Ans : Polymorphism
74) Why should boxing should be avoided ? (Choose only One)
Ans : It adds overhead
75) What method stops a running thread ?
Ans : Thread.Abort
76) Expansion of RCW?
Ans : Runtime Callable Wrapper
77) Expansion of BLOB ?
Ans: Binary Large Object
78) Can you use single inheritance in .NET?
Ans : Yes
79) Is the ASP.NET AJAX Control Toolkit(AjaxControlToolkit.dll) installed in the Global Assembly Cache?
Ans : No
You must copy the AjaxControlToolkit.dll assembly to the /Bin folder in your application.
80) Can you nest UpdatePanel within each other?
Ans : Yes
you can do that. You would want to nest update panels to basically have more control over the Page Refresh.
81) Can we call Server-Side code (C# or VB.NET code) from javascript?
Ans : Yes
You can do so using PageMethods in ASP.NET AJAX or using webservices.
82) Is it possible to cancel an Asynchronous postback?
Ans : Yes.
83) Can we use multiple ScriptManager on a page?
Ans : No
You can use only one ScriptManager on a page.
84) What method do you use to explicitly kill a users session?
Ans : Session.Abandon().
85) Can you encrypt view state data of an aspx page?
Ans : Yes
you encrypt view state data of an aspx page by setting the page's ViewStateEncryptionMode property to true.
86) Is IIS Used to access asp.net web application?
Ans : Yes
87) Expansion of IIS?
Ans : Internet Information Server
88) Name some of the languages .Net support?
Ans : Visual Basic .Net,Visual C#, Visual C++
89) What are the different methods of Session maintenance in asp.net?
Ans : In process storage,Session State Services,Microsoft sql server
90) What are the types of authentications?
Ans : Windows,Forms,PassPort,Customs
91) How many types of Authentications?
Ans : 4
92) What are the Types of constructor?
Ans : public constructor, parameterized constructor
93) How many types of constructor?
Ans : 2
94) Is it Possible to Create Private Constructor?
Ans : Yes
95) Is Constructor Return any value?
Ans : No
96) What is constructor?
Ans : Same Name as the Class Name
97) Which of the following is not Value Type?
Ans : String
99) Which of the following is not Reference Type?
Ans : Char is not Reference Type
String,Delegate, arrays are Reference Type
100) What is the Main purpose of system.data.sqlclient?
Ans : Connect to SQL SERVER
No comments:
Post a Comment