WizIQ helps you learn and teach online - any subject you can think of!
Join for FREE

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 .NET Community
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.

Comments
bluto
By: bluto
731 days 1 hours 25 minutes ago

A bit Difficult one!

arathi suresh
By: arathi suresh
485 days 2 hours 31 minutes ago

hi..i scored 11 out of 15

pvl
By: pvl
340 days 20 hours 35 minutes ago

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

gs
By: gs
325 days 17 hours 20 minutes ago

difficult but more of drawing

gs
By: gs
325 days 17 hours 20 minutes ago

difficult but more of drawing

debiprasad bhattacharya
By: debiprasad bhattacharya
213 days 23 hours 39 minutes ago

yeap...scored 11 :)

Want to learn?

Sign up and browse through relevant courses.

Name:
Your Email:
Password:
Country:
Contact no.:


Area code Number
Subject you are interested in:
Word verification: (Enter the text as in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy

Your Facebook Friends on WizIQ

More Tests By Author

ASP Server Controls
10 Questions | 227 Attempts

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

An ASP.NET Application
10 Questions | 172 Attempts

Test your basic knowledge on DATASTRUCTURES, STACK
10 Questions | 410 Attempts