b <%...%>c <%>...</%>d <script>...</script> 3 How do you write "Hello World" in ASP (ASP NET)a Response.Write("Hello World");b Document.Write("Hello World");c System.io.println("Hello World");d Print("Hello World"); 4 "<%=" is the same as:a <%Response.Writeb <%Document.Writec <%Writed <%Equal 5 What server-language can be used in ASP.Net ?a C Shellb PERLc Javad VB NET 6 How do you get information from a form that is submitted using the "get" method?a Request.Formb Request.QueryStringc Request.Getd all a,b,c are correct 7 Page 1 has this link: <a href="page2.aspx?color=green">Go</a> How can page2.aspx.cs get the "color" parameter?a Response.Parameter("color");b Request.QueryString("color");c Response.QueryString("color");d Get("color"); 8 Which ASPX object is used to identify a user? Application Object Server Object Session Object Browser Objejec 9 All users of the same application (website) share ONE Session object ? And share ONE Application? TRUE, TRUE TRUE, FALSE FALSE, TRUE FALSE, FALSE 10 In one application (website), one SESSION object is available All users, all pages All user, Home-page only One user, all pages One user, Home-page only 11 In one application (website), one APPLICATION object is available All users, all pages All user, Home-page only
One user, all pages One user, Home-page only12 Which one of these events is a standard Global.asax event? Session_id Session_Start Application_OnEnd Global.asax doesnt have any standard events13 Which one of these events is a standard Global.asax event? Session_OnEnd Application_Error Appication_OnStart Global.asax doesnt have any standard events14 Global.asax is required for all Web sites TRUE FALSE ASP website, and APSX website only for APSX website15 Which of the following languages can be used to write server side scripting in ASP.NET? C-sharp VB C++ a and b16 When an .aspx page is requested from the web server, the out put will be rendered to browser in following HTML XML WML JSP17 The Asp.net server control, which provides an alternative way of displaying text on web page, is < asp:label > < asp:listitem > < asp:button > none of them18 The first event to be triggered in an aspx page is. Page_Load() Page_Init() Page_Click() Page_Start()19 Postback occurs in which of the following forms. Winforms HTMLForms Webforms None of them20 What namespace does the Web page belong in the .NET Framework class hierarchy? System.web.UI.Page System.Windows.Page System.Web.page All of them
21 Which method do you invoke on the Data Adapter control to load your generated dataset? Fill( ) ExecuteQuery( ) Read( ) ExecuteSql( ) 22 How do you register a user control? Add Tag prefix, Tag name Add Source, Tag prefix Add Src, Tagprefix, Tagname none of them 23 Which of the following is true? User controls are displayed correctly in the Visual Studio .NET Designer Custom controls are displayed correctly in VS.Net Designer User and Custom controls are displayed correctly in the Visual Studio .NET Designer. All of them are FALSE23b To add a custom control to a Web form we have to register with. TagPrefix Name space of the dll that is referenced Assemblyname All of the above 24 Custom Controls are derived from which of the classes System.Web.UI.Webcontrol System.Web.UI.Customcontrol System.Web.UI.Customcontrols.Webcontrol None of them 25 How ASP.Net Different from classic ASP? Scripting is separated from the HTML, Code is interpreted seperately Scripting is separated from the HTML, Code is compiled as a DLL, the DLLs can be executed on server Code is separated from the HTML and interpreted Code is interpreted separately All are incorrect 26 Whats the difference between Response.Write() andResponse.Output.Write()? Response.Output.Write() allows you to flush output Response.Output.Write() allows you to buffer output Response.Output.Write() allows you to write formatted output Response.Output.Write() allows you to stream output 27 Why is Global.asax is used? Implement application and session level events Declare Global variables To calculate number visitors No use 28 What is the extension of a web user control file? .Asmx .Ascx .Aspx .cs 29 Which of the following is true? IsPostBack is a method of System.UI.Web.Page class
IsPostBack is a method of System.Web.UI.Page class IsPostBack is a readonly property of System.Web.UI.Page class All above are FALSE30 The number of forms that can be added to a aspx page is. 1 2 3 More than 331 How do you manage states in asp.net application Session Objects Application Objects Viewstate All of the above32 Which property of the session object is used to set the local identifier? SessionId LCID Item Key33 Select the caching type supported by ASP.Net Output Caching DataCaching a and b none of the above34 Where is the default Session data is stored in ASP.Net? InProcess StateServer Session Object all of the above35 Select the type Processing model that asp.net simulate Event-driven Static Linear Topdown36 Does the EnableViewState allows the page to save the users input on a form? Yes No37 Which DLL translate XML to SQL in IIS? SQLISAPI.dll SQLXML.dll LISXML.dll SQLIIS.dll38 What is the maximum number of cookies that can be allowed to a web site? 1 10 20 More than 3039 Select the control which does not have any visible interface
Datalist DropdownList Repeater Datagrid 40 How do you explicitly kill a user session? Session.Close( ) Session.Discard( ) Session.Abandon Session.End 41 Which of the following is not a member of ADODBCommand object? ExecuteReader ExecuteScalar Open CommandText 42 Which one of the following namespaces contains the definition for IdbConnection?a System.Data.Interfacesb System.Data.Commonc System.Datad System.Data.Connection 43 What important standard is used to connect client browsers with web servers ? HTTP TCP/IP ASP.NET HTML 44 What ASP.NET object is used to get information about the web servers ? The Server object The Application object The Request object The Response object 45 What method(s) must be used with the Application object to ensure that only one process accesses a variab Synchronize() Lock() and UnLock() Lock() Asynchroize() 46 When an ASP.NET server control is added to a Web Form, Visual Studio .NET adds one item to the class The event registration A protected class member for the control A default event handler for the click event A default class that inherits from the control’s base class 47 What attribute must be set on a validator control for the validation to work ? Validate ValidateControl ControlToBind ControlToValidate 48 What HTML element is the asp:Label control rendered as when the target is Internet Explorer ? <label> <span>
<div> <table>49 Given an ASP.NET Web Form called WebForm1, what class does the WebForm1 class inherit from by de System.Web.Form System.Web.GUI.Page System.Web.UI.Page System.Web.UI.Form50 What is the Web.config file used for ? To store the global information and variable definitions for the application Configures the time that the server-side codebehind module is called To configure the web server To configure the web browser51 After capturing the SelectedIndexChanged event for a ListBox control, you find that the event handler does The AutoEventWireup attribute is set to False The AutomaticPostBack attribute is set to False The codebehind module is not properly compiled The ListBox must be defined WithEvents52 What HTML element is the asp:Label control rendered as when the target is Netscape Communicator ? <label> <span> <div> <table>53 What method must be overridden in a custom control ? The Paint() method The Control_Build() method The Render() method The default constructor54 What is used to validate complex string patterns like an e-mail address ? Extended expressions Regular expressions Irregular expressions Basic expressions
window object into your codes?
" is equal to 5?" is NOT equal to 5?
to browser in following format.n web page, is
be executed on server
process accesses a variable at a time ?dds one item to the class for the form. What item is added ? et Explorer ?
class inherit from by default ?at the event handler doesn’t execute. What could the problem be ?ape Communicator ?