sdfsdf
Posted by JULY on October 16, 2009
1. Which the following statements about ASP.NET directives are correct ?
a. The @Page directive associates a page or control to the current page.
b. The @Master directive defines attributes for a web page saved as .aspx.
c. The @Import directive imports a namespace which helps to include classes and interfaces.
d. The @Assembly directive associates an assembly to a page or any control.
2. Which the following statements about HtmlImage control properties are correct ?
a. The Align property retrieves the alignment of the image in relation to other controls on the web page.
b. The SRC property specifies the text to be displayed when an image is not displayed on the web page.
c. The ID property specifies or retrieves the identifier that is assigned to the image on the server control.
d. The Alt property specifies the height and width of the image to be displayed on the web page.
3. Which the following statements about the BaseValidator class properties are correct ?
a. The ControlToValidate property specifies whether the related input control is validated.
b. The display property retrieves the identifier of the input Web server control to be validated.
c. The ErrorMessage property specifies the error message text to be displayed when validation is not performed.
d. The isValid property specifies the behavior of the error message to be displayed in a validation control.
4. Which the following statements about Debugging are correct ?
a. Debugging is a process wherein the errors in the application are located and eliminated.
b. Debug Listeners are classes used to collect, store, display, and route the trace debug messages.
c. The Watch window, under the debug menu, is used to add and manipulate debuggers.
d. A breakpoint is a point in the source code at which the application execution stars debugging.
5. Which of the following technologies are ASP based on ?
a. Component Object Model
b. Document Object Model
c. Open Service Interface Definitions
d. Win32 Application Program Interface
6. Which of following statements about IIS are correct?
a. IIS fails when it comes to provide scalability or addition of more systems without loss of performance.
b. IIS provides an application isolation environment which allows each Web application to function individually.
c. IIS provides advanced authentication and authorization features to protect the system from unauthorized access.
d. IIS provides the IIS Manager that does not allow users to configure the IIS according to their personal needs.
7. Which of the following are latest features of Visual Studio 2005 IDE’s Web development environment?
a. Improved Code Behind Model
b. Simplified Web Page Designing
c. Secure Web Site Publishing
d. Visual Web Developer.
8. Which of the following statements related to the ASP.NET Web Page Code Model are correct?
a. Smart navigation feature retains the focus for an element or control even when the Web page is refreshed.
b. Unlike single-file page model files. Code-behind page model files only derive event handlers from the page class.
c. Markup files are saved with extension .aspx while the class files are saved with the extension .aspx.cs.
d. The single-file and code-behind page models exhibit different page directive, script code, and user interface code layout.
9. Which of the following statements about HttpRequest class properties are correct?
a. The ApplicationPath property retrieves the client’s browser attributes such as its name.
b. The ContentLength property specifies the length of the entire client request content.
c. The FilePath property retrieves the virtual path of the page requested by the browser.
d. The QueryString property retrieves the HTTP data transfer method used by the client.
10. Which one of the following codes retrieves and displays the length of the client request ?
a. Response.Write(“Content Length : “ + Response.Length);
b. Response.Write(“Content Length : “ + Server.ContentLength);
c. Request.Write(“Content Length : ” + Response.ContentLength);
d. Response.Write(“Content Length : “ + Request.ContentLength);
11. You want to create a calendar that will allow the user to select either a single day or select an entire week ? Which one of the following code will help you to achieve this ?
a. Calendar calCompany = new Calendar(); calCompany.SelectionMode = CalendarSelectionMode.Day;
b. Calendar calCompany = new Calendar(); calCompany.SelectionMode = CalendarSelectionMode.Week;
c. Calendar calCompany = new Calendar(); calCompany.Selection = CalendarSelection.DayWeek;
d. Calendar calCompany = new Calendar(); calCompany.SelectionMode = CalendarSelectionMode.DayWeek;
12. The base class of the checkbox Web Server control is _______.
a. System.Web.UI.WebControls
b. System.Web.UI.WebControls.CheckBox
c. System.Web.UI.WebControls.ListControl
d. System.Web.UI.WebControls.CheckBoxList.
13. Which one of the following codes will create a menu named , mnuCollege, at runtime and will add an item named, mnuitemCourses, to it?
a. Menu mnuCollege = new Menu(); MenuItem mnuitemCourses = new MenuItem(“Courses”); mnuCompany.Items.Append(mnuitemCourses);
b. Menu mnuCollege = new Menu(); MenuItem mnuitemCourses = new MenuItem(“Courses”); mnuCompany.Items.Add(mnuitemCourses);
c. Menu mnuCollege = new Menu(); MenuItem mnuitemCourses = new MenuItem(“Courses”); mnuCompany.Items.Insert(mnuitemCourses);
d. Menu mnuCollege = new Menu(); MenuItem mnuitemCourses = new MenuItem(“Courses”); mnuCompany.Items.Modify(mnuitemCourses);
14. Which one of the following codes allows quick navigation to the region by pressing ALT key and the access key, “F”?
a. phspotItem.ShortcutKey = “F”;
b. phspotItem.AccessKey = “F”;
c. phspotItem.Navigate = “F”;
d. phspotItem.PostBackValue = “F”;
15. Which one of the following codes activates the first vies control ?
a. mvwBookList.ActiveViewIndex = 1;
b. mvwBookList.ActiveView = 0;
c. mvwBookList.ActiveView = 1;
d. mvwBookList.ActiveViewIndex = 0;
16. Which one of the following codes sets the Method property of the html form, hfrmInvoiceDetails, to Post for submitting form data information to the server?
a. hfrmInvoiceDetails.assignMethod = “POST”;
b. hfrmInvoiceDetails.Method = “POST”;
c. hfrmInvoiceDetails.setMethod = “POST”;
d. hfrmInvoiceDetails.MethodValue = “POST”;
17. Suppose a ValidationSummary control, valsEmployeeDetails, has a property EnableClientScript. Which one of the following codes will restrict the user to access client scripting?
a. valsEmployeeDetails.EnableClientScript = false;
b. valsEmployeeDetails.EnableClientScript = null;
c. EnableClientScript.valsEmployeeDetails = false;
d. EnableClientScript.valsEmployeeDetails = null;
18. Suppose the Application variable UserName has the value Anna, and the user wants to provide access to the first Application object. Which one of the following codes will help you to achieve this task?
a. Application[“UserName”] = “Anna”; Response.Write(“UserName is : “ + ApplicationItems[0]);
b. Application[“UserName”] = “Anna”; Response.Write(“UserName is : “ + ApplicationItem[1]);
c. Application[“UserName”] = “Anna”; Response.Write(“UserName is : “ + Applications[1]);
d. Application[“UserName”] = “Anna”; Response.Write(“UserName is : “ + Applications[0]);
19. Which one of the following classes in the System.Web.Mobile namespace contains the device filters collection to be included in the mobile Web application?
a. DeviceFilterElement
b. DeviceFiltersSection
c. MobileCapabilities
d. DeviceFilters
20. Suppose the user wants to trace a page, display the tracing information by collecting the trace information for 5 requests. Which one of the following code helps you to achieve this task?
a. <enable=”true” Output=”true” requestLimit= “5”/>
b. <trace enable=”true” pageOutput=”true” requestLimit=”5”/>
c. <trace enable=“true” pageOutput=”true” limit=”5”/>
d. <trace enable=”true” display=”true” request=”5”/>
21. Which of the following statements about Selection Web Server Controls are correct?
a. The CheckBox control is used to create a group of check box controls.
b. The RadioButton control is used to create a group of radio buttons.
c. The DropDownList control is used to create a drop-down list.
d. The ListBox control allows the user to select multiple items from a list.
22. Which of the following statements about the Calendar and AdRotator controls are correct?
a. The Calendar control displays a single-month calendar and allows the user to select dates.
b. The AdRotator control is used to rotate the selected banner advertisements sequentially.
c. The TodaysDate property specifies or retrieves the date that is selected.
d. The Impressions element specifies the number of the ads and their of rolation.
23. Which of the following statements about the ImageMap class properties are correct?
a. The HotSpotMode property retrieves the mode of a collection of HotSpot objects.
b. The ImageUrl property retrieves the location of an image to display in the image control.
c. The AlternateText property retrieves alternate text when the Image is unavailable.
d. The HotSpots property specifies or retrieves the behavior for the HotSpot object.
24. Which of the following statements about the HTML server input controls are correct?
A. The HtmlInputText control allows the developer to create a single line textbox to accept user input.
B. The HtmlInputCheckBox control allows the developer to access the <input> HTML element.
C. The HtmlInputImage control allows the developer to create a button that displays an image on the Web form.
D. The HtmlInputButton control creates a button that the form submits, resets or simply pushes.
a. B
b. A, B
c. C, D
d. A, C
25. Which of the following statements about Tracing are correct?
A. Tracing in ASP.NET refers to the process of monitoring the execution of ASP.NET Web applications.
B. Application-level tracing can be enable by enabling the @Page directive in the required Web pages.
C. The <trace> tag is added to the Web.Config file to enable page-level tracing within Web applications.
D. While enabling tracing, opening and closing tags for <system.Web> are added within the <configuration> tag.
a. B, C//cau nay sai
b. A, B, C
c. C, D
d. A, D
26. Which of the following statements about the Lock and Unlock methods are correct?
a. The Lock method prevents other users from altering the variables stored in the Application object.
b. The Unlock method blocks attempts by other worker threads to access anything in application state.
c. Only the thread that invoked Lock method can unblock the application object by calling UnLock() method.
d. The .NET Framework does not remove a lock even if the request completes, times out, or fails.
27. Which of the following statements related to ASP.NET are correct?
a. A Web Form refers to a group of servers that host the same site.
b. A memory leak is a bug that prevents a program from allocating memory.
c. Caching refers to the process of storing a copy of an accessed image or page.
d. The WYSIWYG editor allows developers to drag and drop controls onto a Web Form.
28. Which of the following statements about WebControls class properties are correct?
a. The BackColor property specifies the background color of the Web server control.
b. The ForeColor property retrieves the foreground color of the Web server control.
c. The Width property specifies or retrieves the width of the Web server control.
d. The Visible property specifies or determines whether the Web server is executing or not.
29. Which of the following statements about Navigation Web Controls are correct?
a. Menu, TreeViewMap and SiteMap are navigation controls provided by ASP.NET.
b. An XML menu file can be linked to a Menu control and be used as an internally coded menu.
c. A tree view can be considered as an expanding and contracting menu.
d. The FindNode method is an important method of the TreeView control.
30. Which of the following statements about the various validation controls are correct?
a. CompareValidator evaluates input value to check whether it is valid as per specified logic.
b. RangeValidator checks whether the input value is within the specified range limit.
c. RegularExpressionValidator checks whether the input value is in the specified format.
d. RequiredFieldValidator ensures that the input control is not left blank by the user.
31. Which of the following statements about the System.Web.Mobile namespace classes are correct?
a. The CookielessData class is used to store and retrieve session information from devices.
b. The MobilesCapabilities class specifies the capability information about a client mobile device.
c. The DeviceFilterElement class specifies a filter to be applied to the mobile Web application.
d. The DeviceFiltersSection class contains filters which can be applied to mobile Web applications.
32. Which of the following statements about Web server controls are correct?
a. The Label control is used to display text on the mobile form.
b. The link control is used to create hyperlinks on the mobile devices.
c. The List control displays items as a list and provides easy navigation.
d. The TextBox control is used to represent a phone number that is to be called.
33. Which one of the following project files in the Web Form application contains the links (URLs) to provide information about the XML Web service?
a. Projectname.vsdisco
c. Default.aspx
34. Which of the following codes removes the application variable at index 0?
a. Application.Remove(0);
b. Application.RemoveAt(0);
c. Application.RemoveAll(0);
d. Application.DeleteAt(0);
35. Which of the following statements about HttpResponse class properties are correct?
a. The BufferOutput property helps to specify whether the HTTP request output is buffered.
b. The ContentEncoding property specifies or retrieves the HTTP character set of the response.
c. The ContentType property retrieves cookies to be transmitted to the client in the response.
d. The IsClientConnected property helps to specify whether the client is connected to the server.



