MCTS preparation on asp.net Online Test

The namespace within the Microsoft .NET framework which provides the functionality to implement transaction processing is
System.Diagnostics
System.Enterpr iseServices
System.Data
System.Security
The number of forms that can be added to a aspx page is
More than 3 
1
2
3
What method of the EventLog object should be used to clear an EventLog?
Use the Clear method.
Call the Clear method for each item in the log.
Use the ClearAll method.
Use RemoveEntries and then call the Clear method.
Default Session Management is
OutProc
Sql Server
InProc
StateServer
What method causes settings to be read from an IConfigurationSectionHandler object?
ReadSection
GetConfig
GetAppSettings
Create
Which code segment shows the best way to retrieve the “Foo” section of the following configuration file?
Console.WriteLine(ConfigurationSettings.AppSettings["Foo"]);
NameValueCollection AllAppSettings = ConfigurationManager.AppSettings; Console.WriteLine(AllAppSettings["Foo"]);
NameValueCollection AllAppSettings = ConfigurationManager.AppSettings; Console.WriteLine(AllAppSettings["Hello World!"]);
NameValueCollection AllAppSettings = ConfigurationManager.AppSettings; Console.WriteLine(AllAppSettings[5]);
You are creating an ASP.NET application called TestKApp that will be used by companies to quickly create information portals customized to their business. TestKApp stored commonly used text strings in application variables for use by the page in your application. You need your application to initialize these text strings only when the first user accesses the application. What should you do? 
Add code to the Application_BeginRequest event handler in the Global.asax file to set the values of the text strings.
Include code in the Page.Load event handler for the default application page that sets the values of the text strings when the IsNewSession property of the Session object is set to True
Include code in the Page.Load event handler for the default application page that sets the values if the text strings when the IsPostback property of the Page object is False.
Add code to the Application_OnStart event handler in the Global.asax file to set the values of the text strings.
Add code to the Session_OnStart event handler in the Global.asax file to set the values of the text strings.
Which tool can be used to create a COM consumable type?
TlbImp.exe
TlbExp.exe
Regedit.exe
csc.exe
What type of object is required when starting a thread that requires a single parameter?
SynchronizationContext class
ThreadStart delegate
ExecutionContext class
ParameterizedThreadStart delegate
What data types do the RangeValidator control support? 
Integer, ushort, and Date
decimal, String, and Date
Integer, String, and float
Integer, String, and bool
Integer, String, and Date
You are in the development stage for a new ASP.Net web application, WebPartsToGo. Customers of Parts To Go, a national auto parts distribution company, will use the web site. As a member of the development team, it is your job to write ASP.Net code and test the web applications you are developing. Developers are tasked with testing each individual function and block of code. What is this type of testing called? 
Integration testing
Load testing
Regression testing
Unit testing
What are the steps for adding text to an image?
Create a Graphics object, a Font object, and a Pen object. Then call Graphics.DrawString
Create a Graphics object and a string object. Then call string.Draw
Create a Bitmap object, a Font object, and a Brush object. Then call Bitmap.DrawString
Create a Graphics object, a Font object, and a Brush object. Then call Graphics.DrawString
How can you draw a black border around a JPEG image that you have saved to disk, and then save the updated image back to the disk?
Create a Bitmap object by loading the JPEG image from disk. Create a Graphics object by calling Graphics.FromImage. Draw the border by calling Graphics.DrawRectangle. Finally, save the updated image by calling Bitmap.Save.
Create a Graphics object by loading the JPEG image from disk. Draw the border by calling Graphics.DrawRectangle. Finally, save the updated image by calling Graphics.Save.
Create a Bitmap object by loading the JPEG image from disk. Draw the border by calling Bitmap.DrawRectangle. Finally, save the updated image by calling Bitmap.Save.
Create a Bitmap object by loading the JPEG image from disk. Create a Graphics object by calling Bitmap.CreateGraphics. Draw the border by calling Graphics.DrawRectangle. Finally, save the updated image by calling Bitmap.Save.
Which of the following methods would you use to draw a square with a solid color?
Graphics.DrawLines
Graphics.FillRectangle
Graphics.FillEllipse
Graphics.DrawRectangle
Graphics.DrawEllipse
What type of line would the following code sample draw? ' VB Dim g As Graphics = Me.CreateGraphics Dim p As Pen = New Pen(Color.Red, 10) p.StartCap = LineCap.Flat p.EndCap = LineCap.ArrowAnchor g.DrawLine(p, 50, 50, 400, 50) // C# Graphics g = this.CreateGraphics(); Pen p = new Pen(Color.Red, 10); p.StartCap = LineCap.Flat; p.EndCap = LineCap.ArrowAnchor; g.DrawLine(p, 50, 50, 400, 50);
An arrow pointing down
An arrow pointing left
An arrow pointing up
An arrow pointing right
Join the .NETCommunity
Description:

This is an online test on .net for preparing Microsoft Certified Technical Specialist Examination
Disclaimer: Content, such as images used in the questions (if any), have been picked up from various places for the sole purpose of Instruction.

Discussion

debiprasad bhattacharya

yeap...scored 11 :)

3318 days 22 hours 28 minutes ago

gs

difficult but more of drawing

3430 days 16 hours 9 minutes ago

gs

difficult but more of drawing

3430 days 16 hours 9 minutes ago

pvl

System.Configuration.IConfigurationSectionHandler interface has been deprecated in the .NET Framework version 2.0. - http://msdn.microsoft.com/en-us/library/ms228056(v=VS.90).aspx

3445 days 19 hours 24 minutes ago

arathi suresh

hi..i scored 11 out of 15

3590 days 1 hours 20 minutes ago

bluto

A bit Difficult one!

3836 days 14 minutes ago

Your Facebook Friends on WizIQ

More Tests By Author

ASP Server Controls
10 Questions | 667 Attempts

ASP.NET, Namespaces ASP.NET
10 Questions | 2028 Attempts

An ASP.NET Application
10 Questions | 437 Attempts

Explore Similar Courses