lt web quiz_answer
TRANSCRIPT
1 You are a junior web designer. Your company assigns you to work on a JavaScript project. Which of the following are the advantages of using JavaScript for form validation? Increased validity of form submission Conservation of bandwidth Increase end-user satisfaction All of the above
2 Your company assigns you to work on a JavaScript project. With the DATE object, which of the following allows you to call a function based on an elapsed time? setElapsedTime()Timeout()setTimeout()setTime()
3 You are working on a JavaScript project. What is used to restart the inner most loop? Abort Breakloop Stop Continue label
4 You work on a JavaScript project. Which of the following correctly describe the relationships of JavaScript and "objects"? JavaScript is Object-oriented JavaScript is Object-based JavaScript is Object-driven JavaScript has no relationship with objects
5 You work on a JavaScript project. How do you prompt users with messages and at the same time requesting user inputs? Alert()Display()Prompt()Confirm()
6 Which of the following is the correct syntax of FOR?for ( increment; initialize; test) for ( initialize; test), increment for ( initialize; test; increment) for ( test; initalize; increment)
7Substring()String()Stringlength()CharAt()
8 Which of the following do you use for a multi-way branch?If Ifthen Ifelse switch
9 You want to design a form validation mechanism. Using string methods, which of the following are the steps involved ?Check for the presence of certain characters Check the position of substrings
In your JavaScript code, how do you find out which character occurs at the 5th position in a string "How are you"?
Test the length of data Either a,b,c
10 Which of the following is the minimum browser version that supports JavaScript Navigator v2.0 Mozilla V1.5 IE 2.0Navigator V1.0
11 Which of the following are the valid JavaScript versions?Version 1.2 Version 1.3 Version 1.4 All of the above
12 Which of the following languages will you consider as being similar to JavaScript?DelphiC++PascalPHP
13 You plan the coding of your project. When must the object references be ready? at run time at compile time at debug time at code time
14Often referred to as "persistent cookies" Often referred to as "persistent HTML" Small memory-resident pieces of information sent from a server to the client Small memory-resident pieces of information sent from a client to the server Either AB&C
15 A program written by JavaScript is driven byEvents Classes Objects Components
16 What are JavaScript relations with the underlying operating platform? Platform dependent Platform linkage Platform independent Platform binding
17 When you plan for the JavaScript variable names, the first character must be?Underscore Comma Letter Either A&D
Which of the following correctly describe cookies ?
18 Which of the following correctly describe JavaScript as a language? It is based on object creation It focuses on component building It focuses on logic flow It emphasis on SCRIPTING
19 When authoring web page with Javascript, why should you explicitly include the window object into your codes? this is a good practice this is a good practice this ensures browser compatibility this ensures OS compatibility
20 Inside which HTML element do we put the JavaScript?<scripting><javascript><script><js>
21 What is the correct JavaScript syntax to write "Hello World"?response.write("Hello World")document.write("Hello World")("Hello World")echo("Hello World")
22 How do you call a function named "myFunction"?call function myFunction myFunction()call myFunction()exec function myFunction
23 How do you write a conditional statement for executing some statements only if "i" is equal to 5?if i==5 thenif i=5 thenif (i==5)if i=5
24 How do you write a conditional statement for executing some statements only if "i" is NOT equal to 5?if (i <> 5)if (i != 5)if =! 5 thenif <> 5
25 How many different kind of loops are there in JavaScript?Two. The "for" loop and the "while" loopFour. The "for" loop, the "while" loop, the "do...while" loop, and the "loop...until" loopOne. The "for" loop None of the above
26 How does a "for" loop start?for (i = 0; i <= 5)for (i = 0; i <= 5; i++)
for i = 1 to 5for (i <= 5; i++)
27 What is the correct way to write a JavaScript array?var txt = new Array(1:"tim",2:"shaq",3:"kobe")var txt = new Array="tim","shaq","kobe"var txt = new Array("tim","shaq","kobe") all of the above are incorrect
28 How do you round the number 8.25, to the nearest whole number?Math.rnd(8.25)Math.round(8.25) round(8.25)rnd(8.25)
29 How do you find the largest number of 6 and 8?Math.max(6,8)top(6,8)ceil(6,8)Math.ceil(6,8)
30 What is the correct JavaScript syntax for opening a new window called "window5" ?new("http://www.ex-designz.net","window5")window.open("http://www.ex-designz.net","window5")open.newwindow("http://www.ex-designz.net","window5")new.window("http://www.ex-designz.net","window5")
31 How do you put a message in the browser's status bar?window.status = "put your message here"statusbar = "put your message here"status("put your message here")window.status("put your message here")
32 How do you find the client's browser name?browser.namenavigator.appNameclient.navNameNone of the above
33 You define an array usingvar myarray = new Array();var myarray = array new;var new Array() = myarray;var new array = myarray;
34 Onclick is equivalent to which two events in sequenceonmouseover and onmousedownonmousedown and onmouseoutonmousedown and onmouseuponmouseup and onmouseout
35 Which best describe void?
A methodA functionAn operatorA statement
36 Which property would you use to redirect visitor to another page?window.location.hrefdocument.hrefjava.redirect.urllink.redirect.href
1 What does ASP stand for?a Active Standard Pagesb A Server Pagec Active Server Pagesd All Standard Pages
2 ASP server scripts are surrounded by delimiters, which?a <&>...</&>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 ObjectServer ObjectSession ObjectBrowser Objejec
9 All users of the same application (website) share ONE Session object ? And share ONE Application?TRUE, TRUETRUE, FALSEFALSE, TRUEFALSE, FALSE
10 In one application (website), one SESSION object is availableAll users, all pagesAll user, Home-page onlyOne user, all pagesOne user, Home-page only
11 In one application (website), one APPLICATION object is availableAll users, all pagesAll user, Home-page onlyOne user, all pagesOne user, Home-page only
12 Which one of these events is a standard Global.asax event?Session_idSession_StartApplication_OnEndGlobal.asax doesn't have any standard events
13 Which one of these events is a standard Global.asax event?Session_OnEndApplication_ErrorAppication_OnStartGlobal.asax doesn't have any standard events
14 Global.asax is required for all Web sites10
ASP website, and APSX websiteonly for APSX website
15 Which of the following languages can be used to write server side scripting in ASP.NET?C-sharp VB C++ a and b
16 When an .aspx page is requested from the web server, the out put will be rendered to browser in following format.
HTML XML WML JSP
17 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 them
18 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 them
20 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 FALSE
23bTagPrefix Name space of the dll that is referenced Assemblyname
To add a custom control to a Web form we have to register with.
24 Custom Controls are derived from which of the classesSystem.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 separatelyAll are incorrect
26 What's 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 visitorsNo 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 FALSE
30 The number of forms that can be added to a aspx page is.123
More than 331 How do you manage states in asp.net application
Session Objects Application Objects Viewstate All of the above
32 Which property of the session object is used to set the local identifier?SessionId
All of the above
LCID Item Key
33 Select the caching type supported by ASP.NetOutput Caching DataCachinga and bnone of the above
34InProcess StateServer Session Object all of the above
35 Select the type Processing model that asp.net simulateEvent-driven Static Linear Topdown
36 Does the EnableViewState allows the page to save the users input on a form?Yes No
37 Which DLL translate XML to SQL in IIS?SQLISAPI.dll SQLXML.dll LISXML.dll SQLIIS.dll
38 What is the maximum number of cookies that can be allowed to a web site?1
1020
More than 30 39 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
Where is the default Session data is stored in ASP.Net?
ExecuteScalar OpenCommandText
42 Which one of the following namespaces contains the definition for IdbConnection?a System.Data.Interfacesb System.Data.Common c System.Data d System.Data.Connection
43 What important standard is used to connect client browsers with web servers ?HTTPTCP/IPASP.NETHTML
44 What ASP.NET object is used to get information about the web servers ?The Server objectThe Application objectThe Request objectThe Response object
45 What method(s) must be used with the Application object to ensure that only one process accesses a variable at a time ?Synchronize()Lock() and UnLock()Lock()Asynchroize()
46The event registrationA protected class member for the controlA default event handler for the click eventA 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 ?ValidateValidateControlControlToBindControlToValidate
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 default ?System.Web.FormSystem.Web.GUI.PageSystem.Web.UI.PageSystem.Web.UI.Form
When an ASP.NET server control is added to a Web Form, Visual Studio .NET adds one item to the class for the form. What item is added ?
50 What is the Web.config file used for ?To store the global information and variable definitions for the applicationConfigures the time that the server-side codebehind module is calledTo configure the web serverTo configure the web browser
51 After capturing the SelectedIndexChanged event for a ListBox control, you find that the event handler doesn’t execute. What could the problem be ?The AutoEventWireup attribute is set to FalseThe AutomaticPostBack attribute is set to FalseThe codebehind module is not properly compiledThe ListBox must be defined WithEvents
52 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() methodThe Control_Build() methodThe Render() methodThe default constructor
54 What is used to validate complex string patterns like an e-mail address ?Extended expressionsRegular expressionsIrregular expressionsBasic expressions
You are a junior web designer. Your company assigns you to work on a JavaScript project. Which of the following are the advantages of using JavaScript for form validation?
Your company assigns you to work on a JavaScript project. With the DATE object, which of the following allows you to call a function based on an elapsed time?
You work on a JavaScript project. Which of the following correctly describe the relationships of JavaScript and "objects"?
You work on a JavaScript project. How do you prompt users with messages and at the same time requesting user inputs?
You want to design a form validation mechanism. Using string methods, which of the following are the steps involved ?
In your JavaScript code, how do you find out which character occurs at the 5th position in a string "How are you"?
When authoring web page with Javascript, why should you explicitly include the window object into your codes?
How do you write a conditional statement for executing some statements only if "i" is equal to 5?
How do you write a conditional statement for executing some statements only if "i" is NOT equal to 5?
All users of the same application (website) share ONE Session object ? And share ONE Application?
When an .aspx page is requested from the web server, the out put will be rendered to browser in following format.
The Asp.net server control, which provides an alternative way of displaying text on web page, is
Scripting is separated from the HTML, Code is compiled as a DLL, the DLLs can be executed on server
What method(s) must be used with the Application object to ensure that only one process accesses a variable at a time ?
What HTML element is the asp:Label control rendered as when the target is Internet Explorer ?
Given an ASP.NET Web Form called WebForm1, what class does the WebForm1 class inherit from by default ?
When an ASP.NET server control is added to a Web Form, Visual Studio .NET adds one item to the class for the form. What item is added ?
After capturing the SelectedIndexChanged event for a ListBox control, you find that the event handler doesn’t execute. What could the problem be ?
What HTML element is the asp:Label control rendered as when the target is Netscape Communicator ?