1. Which transport protocol is generally used to call an ASP.NET Web Service?
Answer
Correct Answer:
SOAP
Note: This Question is unanswered, help us to find answer for this one
2.
Which of the following statements is NOT correct with regard to Portable Executable (PE)?
Answer
Correct Answer:
It is opposite to Microsoft Common Object File Format (COFF).
Note: This Question is unanswered, help us to find answer for this one
3.
Which of the following technologies are used for distributed process framework?
Answer
Correct Answer:
Microsoft Distributed Component Object Model Remote Procedure Calls
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
4.
You assigned the version number - 5.3.1.0 to your assembly.
The four digits stand for:
Answer
Correct Answer:
Major version, Minor Version, Build number, and Revision
Note: This Question is unanswered, help us to find answer for this one
5.
The global assembly cache:
Answer
Correct Answer:
can store multiple assemblies with the same name, but different versions.
Note: This Question is unanswered, help us to find answer for this one
6.
Which of the following does not constitute the benefits of CLR?
Answer
Correct Answer:
IDL (Interface Definition Language) use is promoted by restricting self describing objects
Note: This Question is unanswered, help us to find answer for this one
7.
Application domains are created by runtime host and the runtime host include:
Answer
Correct Answer:
Windows shell
Note: This Question is unanswered, help us to find answer for this one
8.
Which of the following namespace are defined in the base class library.
Answer
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
9.
Xcopy method is not sufficient for deployment:
Answer
Correct Answer:
When application relies on shared assemblies
Note: This Question is unanswered, help us to find answer for this one
10.
Which of the following are the main design goals behind ADO.NET?
Answer
Correct Answer:
To provide support for XML.
Note: This Question is unanswered, help us to find answer for this one
11.
Which of the following code is not 'managed' by default in .NET framework?
Answer
Correct Answer:
C++
Note: This Question is unanswered, help us to find answer for this one
12.
Which of the following can be the entry point of an assembly in Common Language Runtime (CLR)?
Answer
Correct Answer:
DllMain
Note: This Question is unanswered, help us to find answer for this one
13.
A subset of the Common Type System(CTS) is define by the rules of _________.
Answer
Correct Answer:
Common Language Specifications (CLS)
Note: This Question is unanswered, help us to find answer for this one
14.
____________ class defines the set of information that constitutes input to security policy decisions in System.Security.Policy namespace.
Answer
Correct Answer:
Evidence
Note: This Question is unanswered, help us to find answer for this one
15.
Which of the following can not be used with files?
Answer
Correct Answer:
FileInput
Note: This Question is unanswered, help us to find answer for this one
16.
What are the core components of .NET framework data provider model?
Answer
Correct Answer:
DataAdapter , DataReader, Connection, and Command
Note: This Question is unanswered, help us to find answer for this one
17.
Which of the following should you use to serialize instances of a class?
Answer
Correct Answer:
It depends on the situtaion
Note: This Question is unanswered, help us to find answer for this one
18.
The code written to target common language runtime services is called :
Answer
Correct Answer:
Managed Code
Note: This Question is unanswered, help us to find answer for this one
19.
Which of the following statements is correct with regard to Windows process memory allocation?
Answer
Correct Answer:
Each process (instance of an application) gets its own RAM and prevents the OS from crashing when the process crashes
Note: This Question is unanswered, help us to find answer for this one
20.
Which of the following statements is not correct with regard to .NET assemblies?
Answer
Correct Answer:
Dynamic assemblies are automatically saved to disk before execution
Note: This Question is unanswered, help us to find answer for this one
21.
Dot Net Framework consists of :
Answer
Correct Answer:
Common language runtime and set of class libraries
Note: This Question is unanswered, help us to find answer for this one
22.
In .NET framework, Reflection is used to:
Answer
Correct Answer:
Get metadata of the modules/assemblies
Note: This Question is unanswered, help us to find answer for this one
23.
Which of the following is not a valid inheritance_mode?
Answer
Correct Answer:
MustOverridable
Note: This Question is unanswered, help us to find answer for this one
24.
Which of the following is incorrect about Structures?
Answer
Correct Answer:
Structures can implement inheritance
Note: This Question is unanswered, help us to find answer for this one
25.
Which of the following is not correct about parameter arrays?
Answer
Correct Answer:
All parameter lists are declared as ByVal
Note: This Question is unanswered, help us to find answer for this one
26.
Which of the following tools can be used to configure assemblies located in the GAC?
Answer
Correct Answer:
Mscorcfg.msc
Note: This Question is unanswered, help us to find answer for this one
27.
How many bits does the int datatype use in .NET?
Answer
Correct Answer:
32 bits
Note: This Question is unanswered, help us to find answer for this one
28.
Which of the following is used to do garbage collection?
Answer
Correct Answer:
gc.Collect
Note: This Question is unanswered, help us to find answer for this one
29.
The .NET framework comes with a few CLR hosts. Which of the following is a CLR host?
Answer
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
30.
A hashtable is serialized by using:
Answer
Correct Answer:
SoapFormatter
Note: This Question is unanswered, help us to find answer for this one
31.
Microsoft .NET supports value types for performance reasons, but everything in .NET is ultimately an object. Value types are allocated on the stack by default, but they can always be converted into a heap-based, reference-type object.
What is this conversion called?
Answer
Correct Answer:
Boxing
Note: This Question is unanswered, help us to find answer for this one
32.
Which base class do all web forms inherit from?
Answer
Correct Answer:
System.Web.UI.Page
Note: This Question is unanswered, help us to find answer for this one
33.
You can create the remote application domain using:
Answer
Correct Answer:
AppDomain.CreateDomain
Note: This Question is unanswered, help us to find answer for this one
34.
What happens when enough memory is not available to be allocated to an object?
Answer
Correct Answer:
OutOfMemory exception is thrown
Note: This Question is unanswered, help us to find answer for this one
35.
Delay signing allows a shared assembly to be signed with:
Answer
Correct Answer:
Private key at a later stage
Note: This Question is unanswered, help us to find answer for this one
36.
Which of the following is correct for CTS?
Answer
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
37.
How will you prevent concurrent access to your data?
Answer
Correct Answer:
By using System.Threading.Monitor.Enter/Exit methods
Note: This Question is unanswered, help us to find answer for this one
38.
.NET components are accessed from COM via a?
Answer
Correct Answer:
CCW
Note: This Question is unanswered, help us to find answer for this one
39.
Which of the following can you use to resolve assemblies, types, and resources?
Answer
Correct Answer:
System.AppDomain.CreateDomain
Note: This Question is unanswered, help us to find answer for this one
40.
__________ assembly can be used to deploy language-specific resources for an application.
Answer
Correct Answer:
Satellite
Note: This Question is unanswered, help us to find answer for this one
41.
For MSIL code to be executed in PE file, it is necessary to have:
Answer
Correct Answer:
Assembly manifest
Note: This Question is unanswered, help us to find answer for this one
42.
Since .NET assemblies contain IL code, your proprietary algorithms can be seen by anyone. Which of the following tools protects your intellectual properties?
Answer
Correct Answer:
Obfuscator
Note: This Question is unanswered, help us to find answer for this one
43.
___________ namespace is not defined in the base class library.
Answer
Correct Answer:
System.CodeDom
Note: This Question is unanswered, help us to find answer for this one
44.
Which of the following is not a feature of .NET 2.0?
Answer
Correct Answer:
Multiple Inheritance
Note: This Question is unanswered, help us to find answer for this one
45.
Which of these Assemblies is used for doing Localization?
Answer
Correct Answer:
Satellite
Note: This Question is unanswered, help us to find answer for this one
46.
Which of the following are used in combination to create the identity of an assembly?
Answer
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
47.
Which of the following statements is correct?
Answer
Correct Answer:
For in-process communication between contexts within a single application domain, Proxies are used as an interception mechanism.
Note: This Question is unanswered, help us to find answer for this one
48.
Which of the following is valid and is included in the type definition?
Answer
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
49.
____ is a subset of the CTS.
Answer
Correct Answer:
cLS
Note: This Question is unanswered, help us to find answer for this one
50.
The IL to native code compilation is done by:
Answer
Correct Answer:
JIT
Note: This Question is unanswered, help us to find answer for this one
51.
Which of the following is used as a Serializer for the web services?
Answer
Correct Answer:
XmlSerializer
Note: This Question is unanswered, help us to find answer for this one
52.
__________ is used to generate the assembly from modules.
Answer
Correct Answer:
al.exe
Note: This Question is unanswered, help us to find answer for this one
53.
_____________ helped overcome the DLL conflict (faced by the versions prior to .NET).
Answer
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
54.
How does CLR allow multiple applications to be run in a single process?
Answer
Correct Answer:
By loading them in separate application domains
Note: This Question is unanswered, help us to find answer for this one
55.
The _________________ methods are primarily meant for COM Interoperability use.
Note: This Question is unanswered, help us to find answer for this one
56.
Which of the following statements is correct.
(a)A Try block must include Catch or Finally sections.
(b)Using an empty Finally section is illegal.
Answer
Correct Answer:
Only (a) is true
Note: This Question is unanswered, help us to find answer for this one
57.
Which of these is used to allow managed code to interoperate with unmanaged code?
Answer
Correct Answer:
COM Marshaler
Note: This Question is unanswered, help us to find answer for this one
58.
Compilers of CLS compliant language generate:
Answer
Correct Answer:
MSIL code and Metadata
Note: This Question is unanswered, help us to find answer for this one
59.
Which of these files is used for debugging an application?
Answer
Correct Answer:
Any of these can be used
Note: This Question is unanswered, help us to find answer for this one
60.
Which of the following services are provided by CLR?
Answer
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
61.
Net assembly stores both data and IL code. A tool is available along with the .NET framework to view within the PE. Which of the following is that tool?
Answer
Correct Answer:
ildasm.exe
Note: This Question is unanswered, help us to find answer for this one
62.
The runtime is started automatically by ______________ when the .exe is run.
Answer
Correct Answer:
mscoree.dll
Note: This Question is unanswered, help us to find answer for this one
63.
How will you use the thread pool?
Answer
Correct Answer:
By passing an instance of WaitCallback delegate to the ThreadPool.QueueUserWorkItem() method
Note: This Question is unanswered, help us to find answer for this one
64.
Which of the following helps Assemblies become self describing?:
Answer
Correct Answer:
Manifest
Note: This Question is unanswered, help us to find answer for this one
65.
How many application domains can exist inside a Win32 process?
Answer
Correct Answer:
Any number
Note: This Question is unanswered, help us to find answer for this one
66.
Which of the following is not a member of the Exception class?
Answer
Correct Answer:
StackTraceID
Note: This Question is unanswered, help us to find answer for this one
67.
Which type of parameter is passed in subroutines by default?
Answer
Correct Answer:
ByRef
Note: This Question is unanswered, help us to find answer for this one
68.
Which of the following manages the code during execution?
Answer
Correct Answer:
JIT
Note: This Question is unanswered, help us to find answer for this one
69.
Which of the following is used to notify all waiting threads of a change in the object's state?
Answer
Correct Answer:
The system.Threading.Monitor.PulseAll method
Note: This Question is unanswered, help us to find answer for this one
70.
Consider the following two statements and choose the most appropriate option:
Statement 1: Value types are allocated on a stack
Statement 2: Reference types are allocated on a managed CLR Heap
Answer
Correct Answer:
Both statements 1 and 2 are true
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Due to garbage collection algorithm
Note: This Question is unanswered, help us to find answer for this one
72.
Code Manager is a the part of:
Answer
Correct Answer:
CLR
Note: This Question is unanswered, help us to find answer for this one
73.
Which of the following is a must for a private assembly?
Answer
Correct Answer:
Unique name
Note: This Question is unanswered, help us to find answer for this one
74.
What is the command "caspol -lg" used for?
Answer
Correct Answer:
To see the code groups defined on your system
Note: This Question is unanswered, help us to find answer for this one
75.
An application can have any number of modules and files. Which of the following is used to link them together into a single assembly?
Answer
Correct Answer:
al.exe
Note: This Question is unanswered, help us to find answer for this one
76.
Which of the following functionalities does System.Diagnostics class provide?
Answer
Correct Answer:
Trace
Note: This Question is unanswered, help us to find answer for this one
77.
Which of the following does not use metadata?
Answer
Correct Answer:
CTS
Note: This Question is unanswered, help us to find answer for this one
78.
Which of the following tools can be used to modify and grant permissions to code groups?
Answer
Correct Answer:
CASPol.exe
Note: This Question is unanswered, help us to find answer for this one
79.
Which of these classes are used for loading an assembly into an application domain?
Answer
Correct Answer:
System.AppDomain
Note: This Question is unanswered, help us to find answer for this one
80.
Which of the following files is used to implement application and session level events?
Answer
Correct Answer:
Global.asax
Note: This Question is unanswered, help us to find answer for this one
81.
Which tool can you use to register managed types with the Windows registry?
Answer
Correct Answer:
Regasm.exe
Note: This Question is unanswered, help us to find answer for this one
82.
What does Managed Data refer to?
Answer
Correct Answer:
The data allocated and de-allocated by CLR GC
Note: This Question is unanswered, help us to find answer for this one
83.
The global assembly cache:
Answer
Correct Answer:
Can store two dll files with the same name, but different version
Note: This Question is unanswered, help us to find answer for this one
84.
A user application-domain can be created:
Answer
Correct Answer:
By using a static method "CreateDomain"
Note: This Question is unanswered, help us to find answer for this one
85.
Which of the options is being referred to in the following statement:
"All incoming requests are processed by a single server object"
Answer
Correct Answer:
Singleton
Note: This Question is unanswered, help us to find answer for this one
86.
C# has a keyword called int. Which .NET type does this map to?
Answer
Correct Answer:
System.Int32
Note: This Question is unanswered, help us to find answer for this one
87.
In which file can you define the "Process Model" attribute?
Answer
Correct Answer:
Machine.config
Note: This Question is unanswered, help us to find answer for this one
88.
Which of the following tools assists Assembly Signing?
Answer
Correct Answer:
SN.exe
Note: This Question is unanswered, help us to find answer for this one
89.
Which of the following tools can be used to get the metadata information about the assembly and view IL code?
Answer
Correct Answer:
lldasm.exe
Note: This Question is unanswered, help us to find answer for this one
90.
Which of the following helps expose COM components to the .NET framework?
Answer
Correct Answer:
CCW
Note: This Question is unanswered, help us to find answer for this one
91.
Which of the following are public methods of System.Object?
Answer
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
92.
In .NET framework, what are the options available for packaging?
Answer
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
93.
Which Portable Executable (PE) file does not contain the assembly manifest?
Answer
Correct Answer:
Module
Note: This Question is unanswered, help us to find answer for this one
94.
Which of the following is not correct with regard to shared assembly?
Answer
Correct Answer:
It must get registered with the machine registry
Note: This Question is unanswered, help us to find answer for this one
95.
Where is the Shared assembly generally stored?
Answer
Correct Answer:
Global assembly cache
Note: This Question is unanswered, help us to find answer for this one
96.
How many classes can a single .NET DLL contain?
Answer
Correct Answer:
Unlimited
Note: This Question is unanswered, help us to find answer for this one
97.
In.NET generics, the type parameter:
Answer
Correct Answer:
Cannot be constrained in container classes
Note: This Question is unanswered, help us to find answer for this one
98.
When are AssemblyHash values used?
Answer
Correct Answer:
They are used throughout the common language runtime to detect a change in assembly contents
Note: This Question is unanswered, help us to find answer for this one
99.
Which of the following protocols can be used for ASP.Net Web Services?
Answer
Correct Answer:
HTTP
Note: This Question is unanswered, help us to find answer for this one
100.
___________ class grants the permission to manipulate files located in the code assemblies, to code assemblies that match the membership condition.
Answer
Correct Answer:
FileCodeGroup
Note: This Question is unanswered, help us to find answer for this one
101.
Which of the following methods are used to stop a thread?
Answer
Correct Answer:
Thread.Interrupt()
Note: This Question is unanswered, help us to find answer for this one
102.
Which of the following statements is true?
Answer
Correct Answer:
You can access managed data from managed code
Note: This Question is unanswered, help us to find answer for this one
103.
A standard Windows PE file is divided into a number of sections. Which of the following are not valid native image sections?
Answer
Correct Answer:
textdata
Note: This Question is unanswered, help us to find answer for this one
104.
The Process of automatic memory management involves the following tasks:
Answer
Correct Answer:
Allocating memory
Note: This Question is unanswered, help us to find answer for this one
105.
A manifest includes the following data about the assembly
Answer
Correct Answer:
File list
Note: This Question is unanswered, help us to find answer for this one
106.
Which of the following run In-Process?
Answer
Correct Answer:
EXE file
Note: This Question is unanswered, help us to find answer for this one
107.
Which of these are runtime hosts in .Net Framework?
Answer
Correct Answer:
IE
Note: This Question is unanswered, help us to find answer for this one
108.
Which of the following is correct for value and reference types in .NET?
Answer
Correct Answer:
Value types directly contain their data
Note: This Question is unanswered, help us to find answer for this one
109.
Which of the following protocols can be used for .Net Remoting?
Answer
Correct Answer:
TCP
Note: This Question is unanswered, help us to find answer for this one
110.
Which of the following are correct about delegates?
Answer
Correct Answer:
A delegate is an object that refers to a subroutine, function or other method
Note: This Question is unanswered, help us to find answer for this one
111.
Which of the following are included in a Static assembly?
Answer
Correct Answer:
Modules
Note: This Question is unanswered, help us to find answer for this one
112. What is the function of WCF Data contracts in .Net framework 4.0?
Answer
Correct Answer:
They define, for each parameter or return type, what data is serialized to be exchanged.
Note: This Question is unanswered, help us to find answer for this one
113. What result will you get when you run the following LINQ query in .Net framework 4.0?
List<string> alphabets = new List<string>() { "whats", "new", "in", "aspnet" }; var alphabetsquery = from alphabet in alphabets select alphabet.Substring(0, 1); foreach (var alpha in alphabetsquery) { Response.Write(alpha); }
Answer
Correct Answer:
wnia
Note: This Question is unanswered, help us to find answer for this one
114. Which of the following is NOT a valid WPF Localizability attribute in .Net framework 4.0?
Answer
Correct Answer:
All of the above are Localizability attributes
Note: This Question is unanswered, help us to find answer for this one
115. Which of the following ASP.NET MVC namespaces includes the classes that support forms, input controls, links, partial views, and validation in .Net Framework 4.0?
Answer
Correct Answer:
System.Web.Mvc.Html
Note: This Question is unanswered, help us to find answer for this one
116. How can you determine, at runtime, if your application is running in the 64-bit version of .Net framework 4.0?
Answer
Correct Answer:
Check IntPtr.Size property for a value of 8.
Note: This Question is unanswered, help us to find answer for this one
117. Which of the following classes of System.Windows.Media namespace provides rendering support in WPF which includes hit testing, coordinate transformation, and bounding box calculations in .Net framework 4.0?
Answer
Correct Answer:
Visual
Note: This Question is unanswered, help us to find answer for this one
118. How is data passed from controllers to views in an ASP.NET MVC Application?
Answer
Correct Answer:
Using ViewData
Note: This Question is unanswered, help us to find answer for this one
119. What is DLR in .Net framework 4.0?
Answer
Correct Answer:
It is a runtime environment that adds a set of services for dynamic languages to the common language runtime.
Note: This Question is unanswered, help us to find answer for this one
120. What is default format used to represent data returned in an ADO.NET Data Services response in .Net framework 4.0?
Answer
Correct Answer:
Atom
Note: This Question is unanswered, help us to find answer for this one
121. What is a Decorator in WPF of .Net framework 4.0?
Answer
Correct Answer:
It is the base class for elements that apply effects onto or around a single child element, such as Border or Viewbox.
Note: This Question is unanswered, help us to find answer for this one
122. What result will you get when you run the following LINQ query in .Net framework 4.0?
var scoreRecords = new[] { new {Name = "Alice", Score = 50},
new {Name = "Bob" , Score = 40},
new {Name = "Cathy", Score = 45} };
var scoreRecordsDict = scoreRecords.ToDictionary(sr =>sr.Name);
Response.Write(scoreRecordsDict["Bob"]);
Answer
Correct Answer:
{ Name = Bob, Score = 40 }
Note: This Question is unanswered, help us to find answer for this one
123. Which of the following statements is correct for ASP.NET MVC Routing in .Net Framework 4.0?
Answer
Correct Answer:
Both a and b are correct.
Note: This Question is unanswered, help us to find answer for this one
124. Which of the following is NOT a valid QueryExtender filter option in .Net framework 4.0?
Answer
Correct Answer:
All of the above are valid QueryExtender filter options
Note: This Question is unanswered, help us to find answer for this one
125. How will you display the view data in the view of an ASP.NET MVC Application?
Answer
Correct Answer:
%: ViewData["CurrentTime"] %>
Note: This Question is unanswered, help us to find answer for this one
126. Which of the following OData system query options is used to determine the maximum number of records to be returned in .Net framework 4.0?
Answer
Correct Answer:
$top
Note: This Question is unanswered, help us to find answer for this one
127. Which of the following statements is correct for WSHttpBinding of WCF in .Net framework 4.0?
Answer
Correct Answer:
It is a secure and interoperable binding that is suitable for non-duplex service contracts.
Note: This Question is unanswered, help us to find answer for this one
128. Suppose your site has a page called Index.aspx that you no longer use. Search engines may keep requesting this page.
Which of the following method will you add to the CodeBehind file of Index.aspx that will send requests (including search engine requests) to Default.aspx in .Net framework 4.0?
Answer
Correct Answer:
Response.RedirectPermanent
Note: This Question is unanswered, help us to find answer for this one
129. How many columns can you select by $orderby OData system query option in .Net Framework 4.0?
Answer
Correct Answer:
12
Note: This Question is unanswered, help us to find answer for this one
130. Which of the following is NOT a valid data source control in .Net framework 4.0?
Answer
Correct Answer:
All of the above are valid data sources
Note: This Question is unanswered, help us to find answer for this one
131. Which of the following pieces of information is provided by the WCF service contract in .Net framework 4.0?
Answer
Correct Answer:
All of the above.
Note: This Question is unanswered, help us to find answer for this one
132. Which of the following arrays will be returned as result when you run the following LINQ query in .Net framework 4.0?
Note: This Question is unanswered, help us to find answer for this one
135. How will you count the odd numbers from the array shown below using LINQ in .Net framework 4.0?
int[]numbers={5,4,1,3,9,8,6,7,2,0};
Answer
Correct Answer:
int findoddNumbers = numbers.Count(n => n % 2 == 1);
Note: This Question is unanswered, help us to find answer for this one
136. What is the purpose of the System.Windows.Data namespace in .Net framework 4.0?
Answer
Correct Answer:
It contains classes used for binding properties to data sources, data source provider classes, and data-specific implementations of collections and views.
Note: This Question is unanswered, help us to find answer for this one
137. In WCF, what is the significance of the ReceiveRetryCount property of a Poison message in .Net framework 4.0?
Answer
Correct Answer:
It is an integer value that indicates the maximum number of times to retry delivery of a message from the application queue to the application.
Note: This Question is unanswered, help us to find answer for this one
138. Suppose your WCF service root URL is "http://examples.svc". What will be the response when you request a WCF data service URL with a $skip system query option, as shown below, in .Net framework 4.0?
Correct Answer:
The response will be the third and fourth product entries from the collection of all products after sorting the collection in ascending order of Rating. The response will be the second and third product entries from the collection of all products after sorting the collection in descending order of Rating.
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
139. How will you implement the logic for the following scenario in .Net framework 4.0?
Suppose you have a GridView with paging enabled. You select the third row on page 1 and then move to page 2. Nothing is selected on page 2. When you move back to page 1, the third row should still be selected.
Answer
Correct Answer:
Set the GridView EnablePersistedSelection property to true.
Note: This Question is unanswered, help us to find answer for this one
140. How do you add MetaDescription to your web page in .Net framework 4.0?
Answer
Correct Answer:
Page.MetaDescription
Note: This Question is unanswered, help us to find answer for this one
141. Considering the image, which of the following is the correct syntax for encoding a particular string in .Net framework 4.0?
Answer
Correct Answer:
Both a and b
Note: This Question is unanswered, help us to find answer for this one
142. Suppose you want to eliminate duplicate elements from the array
and sort the elements in descending order using LINQ in .Net framework 4.0. Which of the following statements can you use?
Answer
Correct Answer:
var result = (from s in source orderby s descending select s).Distinct();
Note: This Question is unanswered, help us to find answer for this one
143. Which of the following elements can be part of an Assembly:
Answer
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
144. Which of the following is not a method of FileSystem class?
Answer
Correct Answer:
FileInput
Note: This Question is unanswered, help us to find answer for this one
145. An assembly is unloaded:
Answer
Correct Answer:
By unloading its application domain
Note: This Question is unanswered, help us to find answer for this one
146. The XML web services of .NET framework are built on :
Answer
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
147. Which of the following statements is correct with regard to .NET framework managed web pages?
Answer
Correct Answer:
They do not execute in the native code language
Note: This Question is unanswered, help us to find answer for this one
148. Where is the application domain created?
Answer
Correct Answer:
Outside a Process
Note: This Question is unanswered, help us to find answer for this one
149. The primary building block of the .NET framework is
Answer
Correct Answer:
assembly
Note: This Question is unanswered, help us to find answer for this one
150. Dot NET Framework programs are compiled into CPU independent instruction set, named:
Answer
Correct Answer:
Microsoft Intermediate Language
Note: This Question is unanswered, help us to find answer for this one
151. Because .NET treats all languages as equal, a class written in C# should be equivalent to a class written in VB.NET, and an interface defined in Managed C++ should be exactly the same as one that is specified in Managed COBOL. Languages must agree on the meanings of these concepts before they can integrate with one another.
Which of the following provides the specifications for this?
Answer
Correct Answer:
CTS
Note: This Question is unanswered, help us to find answer for this one
152. Which of the following Generations contains the longest surviving objects?
Answer
Correct Answer:
Generation 2
Note: This Question is unanswered, help us to find answer for this one
153. In ASP.NET, which class is used to derive custom controls?
Note: This Question is unanswered, help us to find answer for this one
154. How is concatenation of strings done?
Answer
Correct Answer:
Operator overloading and method calls
Note: This Question is unanswered, help us to find answer for this one
155. Which method should you consider using in order to develop an application that meets the following requirements? • A different ASPX page is displayed when the application's original URL is entered • After the page executes, the original URL is not visible to users • A single client browser request is sufficient for the execution of a page
Answer
Correct Answer:
HttpContext.Current.RewritePath
Note: This Question is unanswered, help us to find answer for this one
156. In C#, which class is extended by every class directly or indirectly?
Answer
Correct Answer:
Object
Note: This Question is unanswered, help us to find answer for this one
157. Which of the following does BCL stand for?
Answer
Correct Answer:
Base Class Libraries
Note: This Question is unanswered, help us to find answer for this one
158. In ASP.NET, to add a custom control to a Web form, it is necessary to register with which of the following?
Answer
Correct Answer:
All of these
Note: This Question is unanswered, help us to find answer for this one
159. Which of the following is the correct way to define a namespace alias in VB.NET?
Answer
Correct Answer:
Using MyNamespace = MyComponent.Web.UI.WebControls;
Note: This Question is unanswered, help us to find answer for this one
160. Which methods are used to lock and unlock an object?
Answer
Correct Answer:
Enter and Exit
Note: This Question is unanswered, help us to find answer for this one
161. In C#, which of the following is an instance variable?
Answer
Correct Answer:
Represents an attribute of an object
Note: This Question is unanswered, help us to find answer for this one
162. Which of the following is used to create a string literal exclude escape sequence?
Answer
Correct Answer:
@string
Note: This Question is unanswered, help us to find answer for this one
163. In C#, which of the following is used to return a thread from a suspended state?
Answer
Correct Answer:
Resume
Note: This Question is unanswered, help us to find answer for this one
164. Which class are exception objects derived from?
Answer
Correct Answer:
Exception
Note: This Question is unanswered, help us to find answer for this one
165. Which action will occur when a method detects that a problem has occurred?
Answer
Correct Answer:
The method will throw an exception.
Note: This Question is unanswered, help us to find answer for this one
166. In C#, which of the following is used to define two methods in a single class with the same name but with different sets of argument types?
Answer
Correct Answer:
Overloading
Note: This Question is unanswered, help us to find answer for this one
167. Which of the following is a valid syntax of entry point for all C# programs?
Answer
Correct Answer:
static void Main(string[] args)
Note: This Question is unanswered, help us to find answer for this one
168. Which of the following is the first event to be triggered in an .aspx page?
Answer
Correct Answer:
Page.Init
Note: This Question is unanswered, help us to find answer for this one
169. Which of the following often results in an event?
Answer
Correct Answer:
The result of a user action
Note: This Question is unanswered, help us to find answer for this one
170. Your Web application, ABCWebApp1, is configured to use Windows Authentication. After granting a specific group NTFS permissions to access a specific file named ABC.doc, you need to ensure that users not belonging to this group cannot access the file. Which of the following should you include to ensure unauthorized access?
Answer
Correct Answer:
Configure the Web.config file to include the <identity impersonate="true"/> element
Note: This Question is unanswered, help us to find answer for this one
171. In C#, which of the following describes two StringBuilder objects that contain the same string?
Answer
Correct Answer:
They are two different objects
Note: This Question is unanswered, help us to find answer for this one
172. Which type of code is the following? public class A { IEmailSender _emailSender public A(IEmailSender emailSender) { _emailSender = emailSender; } private void SendEmail() { _emailSender.Send(); } }
Answer
Correct Answer:
Dependency injection
Note: This Question is unanswered, help us to find answer for this one
173. In which of the following Generations does the CLR allocate memory for new objects?
Answer
Correct Answer:
Generation 0
Note: This Question is unanswered, help us to find answer for this one
174. Which of the following exceptions is thrown when a member/class lookup results in more than one member/class matching the lookup criteria?
Note: This Question is unanswered, help us to find answer for this one
175. Which of the following is not contained in the ThreadPriority enumeration?
Answer
Correct Answer:
ThreadPriority enumeration contains all of these.
Note: This Question is unanswered, help us to find answer for this one
176. Which of the following .NET framework classes can be used for Custom Parallel Partitioning ?
Answer
Correct Answer:
OrderablePartitioner<TSource>
Note: This Question is unanswered, help us to find answer for this one
177. Which of the following actions does an abstract class create?
Answer
Correct Answer:
All of these
Note: This Question is unanswered, help us to find answer for this one
178. In C#, which of the following does this code create? String mystring;
Answer
Correct Answer:
An object
Note: This Question is unanswered, help us to find answer for this one
179. Which of the following defines synchronization?
Answer
Correct Answer:
Ensure that two concurrently-executing threads or processes do not execute specific portions of a program at the same time
Note: This Question is unanswered, help us to find answer for this one
180. In ASP.NET, which of the following is the extension of a web user control file?
Answer
Correct Answer:
.ascx
Note: This Question is unanswered, help us to find answer for this one
181. In C#, which of the following is created from this code? class Test: Form { }
Answer
Correct Answer:
The class Test that inherits the class Form
Note: This Question is unanswered, help us to find answer for this one
182. In C#, which code converts a string to lowercase?
Answer
Correct Answer:
string.ToLower();
Note: This Question is unanswered, help us to find answer for this one
183. Which type of block encloses code that could throw an exception?
Answer
Correct Answer:
Try
Note: This Question is unanswered, help us to find answer for this one
184. Which of the following describes what this code snippet implies? namespace TestApplication { class HelloWorld {} }
Answer
Correct Answer:
TestApplication namespace contains the class HelloWorld
Note: This Question is unanswered, help us to find answer for this one
185. Which of the following defines a delegate?
Answer
Correct Answer:
A class that encapsulates methods
Note: This Question is unanswered, help us to find answer for this one
186. In which of the following GC Collection mode does the garbage collector determine whether the current time is optimal to reclaim objects?
Answer
Correct Answer:
Optimized
Note: This Question is unanswered, help us to find answer for this one
187. In C#, which of the following is the proper header for a class that intends to use an interface?
Answer
Correct Answer:
class MyClass : Iface
Note: This Question is unanswered, help us to find answer for this one
188. In C#, which of the following describes a local variable?
Answer
Correct Answer:
Declared within a method
Note: This Question is unanswered, help us to find answer for this one
189. In the ASP.NET server control, which provides an alternative way of displaying text on web page?
Answer
Correct Answer:
< asp:label >
Note: This Question is unanswered, help us to find answer for this one
190. In the body of a method, which variable does C# use to refer to the current object whose method is being invoked?
Answer
Correct Answer:
this
Note: This Question is unanswered, help us to find answer for this one
191. In C#, which type of variable is declared inside a method?
Answer
Correct Answer:
Local
Note: This Question is unanswered, help us to find answer for this one
192. Which of the following is not a component of the .NET framework?
Answer
Correct Answer:
JVM
Note: This Question is unanswered, help us to find answer for this one
193. Which of the following defines a Thread?
Answer
Correct Answer:
An object that allows computer multitasking
Note: This Question is unanswered, help us to find answer for this one
194. Which of the following defines a String literal?
Answer
Correct Answer:
A sequence of characters in double quotation marks
Note: This Question is unanswered, help us to find answer for this one
195. In C#, it is possible to pass methods as arguments for other methods without modification.
Answer
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
196. Which particular namespace has to be included in a C# program to be able to use following statement? Console.WriteLine("Hello World")
Answer
Correct Answer:
System
Note: This Question is unanswered, help us to find answer for this one
197. How many server forms can be added to a .aspx page?
Answer
Correct Answer:
1
Note: This Question is unanswered, help us to find answer for this one
198. When an .aspx page is requested from the web server, in which format is the output rendered to the browser?
Answer
Correct Answer:
html
Note: This Question is unanswered, help us to find answer for this one
199. You must add a new custom control to an .aspx page in your Web application, with these requirements: • The state of the custom control must remain static for 2 minutes • The cache settings of other elements on the page must not be affected by the settings for the new custom control Which code will meet the requirements when added to the Web.configfile?
Note: This Question is unanswered, help us to find answer for this one
200. How many string objects are created in this piece of code: string first = "tick"; string second = first + "tech"; second += "fly";
Answer
Correct Answer:
2
Note: This Question is unanswered, help us to find answer for this one
201. Enums can have extension methods
Answer
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
202. Consider the following: class A { private int myInt; public void SetMyInt(int value) { myInt = value; } public bool Equals(A other) { return other.myInt == myInt; } } Note: The field myInt is Private. Is "other.myInt" accessible from within the Equals Method?
Answer
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
203. In ASP.NET, what is the difference between Response.Write() and Response.Output.Write()?
Answer
Correct Answer:
Response.Output.Write() allows you to write formatted output
Note: This Question is unanswered, help us to find answer for this one
204. Your Web appplication, ABCApp1, is hosted on ABC-SR13 and runs an instance of MS SQL Server 2005 locally configured to use Windows Authentication. As you prepare to configure the role management and membership providers on ABC-SR13, you should consider using _______.
Answer
Correct Answer:
The Aspnet_compiler.exe command and the aspnet_regiis.exe command
Note: This Question is unanswered, help us to find answer for this one
205. Which of the following is not a VALID variable type in C#?
Answer
Correct Answer:
Numeral
Note: This Question is unanswered, help us to find answer for this one
206. Which of the following is not a VALID integer literal?
Answer
Correct Answer:
032UU
Note: This Question is unanswered, help us to find answer for this one
207. How does the .Net framework define a Large Object?
Answer
Correct Answer:
larger than 85KB OR Multidimensional arrays
Note: This Question is unanswered, help us to find answer for this one
208. Which of the following methods is used for destroying threads?
Answer
Correct Answer:
Abort
Note: This Question is unanswered, help us to find answer for this one
209. Evaluate. Which statement must be true for the code to compile and run correctly? public class B : A { public B(int i) :base(i) { } }
Answer
Correct Answer:
One of the constructors in the class A takes an argument of the type int
Note: This Question is unanswered, help us to find answer for this one
210. In your Web application named ABCWebApp1, you have configured a custom-templated server control named ABCSC that has child controls in the page. To help ensure distinctive identification of the child controls within the hierarchy of the page, you should consider applying the _______ interface.
Answer
Correct Answer:
INamingContainer
Note: This Question is unanswered, help us to find answer for this one
211. All methods in an abstract base class must be declared abstract.
Answer
Correct Answer:
False
Note: This Question is unanswered, help us to find answer for this one
212. Your Web form uses the following code to display data from a SQL Server 2005 database. What must you add to the _ItemBound event handler in order to access the value of the hlName HyperLink in a variable named var? ' />
Answer
Correct Answer:
HyperLink var = e.Item.FindControl("hlName") as HyperLink;
Note: This Question is unanswered, help us to find answer for this one
213. In your Web application, you create a class to implement the IHttpHandler interface. Which code will display the Warning.jpg image in the browser whenever the handler is requested?
Answer
Correct Answer:
public void ProcessRequest(HttpContext ctx){ctx.Response.ContentType = "image/jpg";FileStream fs = File.OpenRead(_ctx.Server.MapPath("Warning.jpg"));int b = 0;while ((b == fs.ReadByte()) != -1) {ctx.Response.OutputStream.WriteByte(Convert.
Note: This Question is unanswered, help us to find answer for this one
214. Your Web application includes a page named ErrorPage.aspx. To manage unhandled application exceptions, ErrorPage.aspx should be shown and exception data should be written to the event log. Your web.config file includes the following code: Next, you should consider _______.
Answer
Correct Answer:
Adding this code to the Global.asax file: void Application_Error(object sender, EventArgs e){Exception exc = Server.GetLastError();//Write Exception details to event log}
Note: This Question is unanswered, help us to find answer for this one
215. If an IndexofAny method is passed an array of characters, _______.
Answer
Correct Answer:
It searches for the first occurrence of any of the characters in the string
Note: This Question is unanswered, help us to find answer for this one
216. In C#, for a class to use an interface, it must _______.
Answer
Correct Answer:
All of these
Note: This Question is unanswered, help us to find answer for this one
217. In ASP.NET, how do you register a user control?
Answer
Correct Answer:
Add Src, Tagprefix, Tagname
Note: This Question is unanswered, help us to find answer for this one
218. While browsing your Web application in IIS 6.0, you receive a Server Application Unavailable error. The application event log states: It is not possible to run two different versions of ASP.NET in the same IIS process. Please use the IIS Administration Tool to reconfigure your server to run the application in a separate process. To solve this problem as quickly as possible, you should _______.
Answer
Correct Answer:
Assign the application to a new application pool and configure all applications that are part of your application's application pool to use the same version of ASP.NET
Note: This Question is unanswered, help us to find answer for this one
219. In which of the following GC Collection mode the garbage collector determines whether the current time is optimal to reclaim objects?
Answer
Correct Answer:
Optimized
Note: This Question is unanswered, help us to find answer for this one
220. Which of the following namespaces contain types that support deployment of ClickOnce applications?
Answer
Correct Answer:
System.Deployment
Note: This Question is unanswered, help us to find answer for this one
221. To ensure that the timing and performance data of your web application is gathered and only made available to users when they are logged on the web server, which code should you add to the Web.config file?
Note: This Question is unanswered, help us to find answer for this one
240. How do you manage states in an ASP.NET application?
Answer
Correct Answer:
All of these
Note: This Question is unanswered, help us to find answer for this one
241. To configure authentication for your Web application so clients cannot access it anonymously, but access is allowed for users from untrusted domains, where should the following code be added to?
Answer
Correct Answer:
The web.config file
Note: This Question is unanswered, help us to find answer for this one
242. Can you prevent your class from being inherited and become a base class for some other classes?
Answer
Correct Answer:
Yes
Note: This Question is unanswered, help us to find answer for this one
243. True or false? In C#, a class can inherit from multiple interfaces.
Answer
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
244. Which of the following keywords is used to include existing namespace in a C# program?
Answer
Correct Answer:
using
Note: This Question is unanswered, help us to find answer for this one
245. Which of the following kick in the Garbage Collector (GC) process?
Answer
Correct Answer:
All of the given options are correct
Note: This Question is unanswered, help us to find answer for this one
246. Your Web application lets users upload files and is hosted in Microsoft IIS 6.0 on a server named ABC-SR01. The application uses the default application pool with Windows Authentication. You cannot upload a file from your workstation using the application; instead, you see an access denied message. To fix this problem, you enable debugging. Next, you should _______.
Answer
Correct Answer:
Add the following configuration to the Web.config file <identity impersonate="true" />
Note: This Question is unanswered, help us to find answer for this one