Lt web quiz_answer

  • 3,405 views
Uploaded on

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
3,405
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
24
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. 1 You are a junior web designer. Your company assigns you to work on a JavaScript project. Which of the fo 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 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 JavaScrip 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 requestin 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) 7 In your JavaScript code, how do you find out which character occurs at the 5th position in a string "How a Substring() 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 ste Check for the presence of certain characters Check the position of substrings Test the length of data Either a,b,c10 Which of the following is the minimum browser version that supports JavaScript Navigator v2.0
  • 2. Mozilla V1.5 IE 2.0 Navigator V1.011 Which of the following are the valid JavaScript versions? Version 1.2 Version 1.3 Version 1.4 All of the above12 Which of the following languages will you consider as being similar to JavaScript? Delphi C++ Pascal PHP13 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 time14 Which of the following correctly describe cookies ? Often 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&C15 A program written by JavaScript is driven by Events Classes Objects Components16 What are JavaScript relations with the underlying operating platform? Platform dependent Platform linkage Platform independent Platform binding17 When you plan for the JavaScript variable names, the first character must be? Underscore Comma Letter Either A&D18 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 SCRIPTING19 When authoring web page with Javascript, why should you explicitly include the window object into your this is a good practice this is a good practice
  • 3. this ensures browser compatibility this ensures OS compatibility20 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 myFunction23 How do you write a conditional statement for executing some statements only if "i" is equal to 5? if i==5 then if i=5 then if (i==5) if i=524 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 then if <> 525 How many different kind of loops are there in JavaScript? Two. The "for" loop and the "while" loop Four. The "for" loop, the "while" loop, the "do...while" loop, and the "loop...until" loop One. The "for" loop None of the above26 How does a "for" loop start? for (i = 0; i <= 5) for (i = 0; i <= 5; i++) for i = 1 to 5 for (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 incorrect28 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)
  • 4. 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 browsers 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 clients browser name? browser.name navigator.appName client.navName None of the above 33 You define an array using var myarray = new Array(); var myarray = array new; var new Array() = myarray; var new array = myarray; 34 Onclick is equivalent to which two events in sequence onmouseover and onmousedown onmousedown and onmouseout onmousedown and onmouseup onmouseup and onmouseout 35 Which best describe void? A method A function An operator A statement 36 Which property would you use to redirect visitor to another page? window.location.href document.href java.redirect.url link.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 <&>...</&>
  • 5. 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
  • 6. 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
  • 7. 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
  • 8. 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
  • 9. 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>
  • 10. <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
  • 11. t project. Which of the following are the advantages of using JavaScript for form validation?t, which of the following allows you to call a function based on an elapsed time?elationships of JavaScript and "objects"? the same time requesting user inputs?sition in a string "How are you"?the following are the steps involved ?
  • 12. window object into your codes?
  • 13. " is equal to 5?" is NOT equal to 5?
  • 14. ONE Application?
  • 15. to browser in following format.n web page, is
  • 16. be executed on server
  • 17. process accesses a variable at a time ?dds one item to the class for the form. What item is added ? et Explorer ?
  • 18. class inherit from by default ?at the event handler doesn’t execute. What could the problem be ?ape Communicator ?