SlideShare a Scribd company logo
1 of 20
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,c
10 Which of the following is the minimum browser version that supports JavaScript
   Navigator v2.0
Mozilla V1.5
   IE 2.0
   Navigator 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?
   Delphi
   C++
   Pascal
   PHP
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
14 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&C
15 A program written by JavaScript is driven by
   Events
   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
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
   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 then
   if i=5 then
   if (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 then
   if <> 5
25 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 above
26 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 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.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 Pages
b      A Server Page
c      Active Server Pages
d      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.Write
b      <%Document.Write
c      <%Write
d      <%Equal
     5 What server-language can be used in ASP.Net ?
a      C Shell
b      PERL
c      Java
d      VB NET
     6 How do you get information from a form that is submitted using the "get" method?
a      Request.Form
b      Request.QueryString
c      Request.Get
d      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 only
12 Which one of these events is a standard Global.asax event?
   Session_id
   Session_Start
   Application_OnEnd
   Global.asax doesn't have any standard events
13 Which one of these events is a standard Global.asax event?
   Session_OnEnd
   Application_Error
   Appication_OnStart
   Global.asax doesn't have any standard events
14 Global.asax is required for all Web sites
       TRUE
      FALSE
   ASP website, and APSX website
   only 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
   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
23b      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 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 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 FALSE
30 The number of forms that can be added to a aspx page is.
             1
             2
             3
   More than 3
31 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
   LCID
   Item
   Key
33 Select the caching type supported by ASP.Net
   Output Caching
   DataCaching
   a and b
   none of the above
34 Where is the default Session data is stored in ASP.Net?
   InProcess
   StateServer
   Session Object
   all of the above
35 Select the type Processing model that asp.net simulate
   Event-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
            10
            20
   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
       ExecuteScalar
       Open
       CommandText
    42 Which one of the following namespaces contains the definition for IdbConnection?
a      System.Data.Interfaces
b      System.Data.Common
c      System.Data
d      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.Form
50 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 browser
51 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 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() method
   The Control_Build() method
   The Render() method
   The default constructor
54 What is used to validate complex string patterns like an e-mail address ?
   Extended expressions
   Regular expressions
   Irregular expressions
   Basic expressions
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 ?
window object into your codes?
" is equal to 5?




" is NOT equal to 5?
ONE Application?
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 ?

More Related Content

What's hot

UI-Testing - Selenium? Rich-Clients? Containers? @APEX connect 2018
UI-Testing - Selenium? Rich-Clients? Containers? @APEX connect 2018UI-Testing - Selenium? Rich-Clients? Containers? @APEX connect 2018
UI-Testing - Selenium? Rich-Clients? Containers? @APEX connect 2018Tobias Schneck
 
Owasp Wasc App Sec2007 San Jose Finding Vulnsin Flash Apps
Owasp Wasc App Sec2007 San Jose Finding Vulnsin Flash AppsOwasp Wasc App Sec2007 San Jose Finding Vulnsin Flash Apps
Owasp Wasc App Sec2007 San Jose Finding Vulnsin Flash Appsguestb0af15
 
UI Testing - Selenium? Rich-Clients? Containers? (SwanseaCon 2018)
UI Testing - Selenium? Rich-Clients? Containers? (SwanseaCon 2018)UI Testing - Selenium? Rich-Clients? Containers? (SwanseaCon 2018)
UI Testing - Selenium? Rich-Clients? Containers? (SwanseaCon 2018)Tobias Schneck
 
&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />tutorialsruby
 
Build Your First Java Jersey JAX-RS REST Web Service in less than 15 Minutes
Build Your First Java Jersey JAX-RS REST Web Service in less than 15 MinutesBuild Your First Java Jersey JAX-RS REST Web Service in less than 15 Minutes
Build Your First Java Jersey JAX-RS REST Web Service in less than 15 MinutesRobert Li
 
Introduction to java script
Introduction to java scriptIntroduction to java script
Introduction to java scriptDivyaKS12
 
Preparing a WordPress Plugin for Translation
Preparing a WordPress Plugin for TranslationPreparing a WordPress Plugin for Translation
Preparing a WordPress Plugin for TranslationBrian Hogg
 
Testing RESTful Webservices using the REST-assured framework
Testing RESTful Webservices using the REST-assured frameworkTesting RESTful Webservices using the REST-assured framework
Testing RESTful Webservices using the REST-assured frameworkMicha Kops
 
Breaking AngularJS Javascript sandbox
Breaking AngularJS Javascript sandboxBreaking AngularJS Javascript sandbox
Breaking AngularJS Javascript sandboxMathias Karlsson
 
Introduction to java script
Introduction to java scriptIntroduction to java script
Introduction to java scriptnanjil1984
 
Google在Web前端方面的经验
Google在Web前端方面的经验Google在Web前端方面的经验
Google在Web前端方面的经验yiditushe
 

What's hot (18)

ajax_pdf
ajax_pdfajax_pdf
ajax_pdf
 
UI-Testing - Selenium? Rich-Clients? Containers? @APEX connect 2018
UI-Testing - Selenium? Rich-Clients? Containers? @APEX connect 2018UI-Testing - Selenium? Rich-Clients? Containers? @APEX connect 2018
UI-Testing - Selenium? Rich-Clients? Containers? @APEX connect 2018
 
Owasp Wasc App Sec2007 San Jose Finding Vulnsin Flash Apps
Owasp Wasc App Sec2007 San Jose Finding Vulnsin Flash AppsOwasp Wasc App Sec2007 San Jose Finding Vulnsin Flash Apps
Owasp Wasc App Sec2007 San Jose Finding Vulnsin Flash Apps
 
UI Testing - Selenium? Rich-Clients? Containers? (SwanseaCon 2018)
UI Testing - Selenium? Rich-Clients? Containers? (SwanseaCon 2018)UI Testing - Selenium? Rich-Clients? Containers? (SwanseaCon 2018)
UI Testing - Selenium? Rich-Clients? Containers? (SwanseaCon 2018)
 
&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />
 
Ajax
AjaxAjax
Ajax
 
Build Your First Java Jersey JAX-RS REST Web Service in less than 15 Minutes
Build Your First Java Jersey JAX-RS REST Web Service in less than 15 MinutesBuild Your First Java Jersey JAX-RS REST Web Service in less than 15 Minutes
Build Your First Java Jersey JAX-RS REST Web Service in less than 15 Minutes
 
Introduction to java script
Introduction to java scriptIntroduction to java script
Introduction to java script
 
RicoAjaxEngine
RicoAjaxEngineRicoAjaxEngine
RicoAjaxEngine
 
Preparing a WordPress Plugin for Translation
Preparing a WordPress Plugin for TranslationPreparing a WordPress Plugin for Translation
Preparing a WordPress Plugin for Translation
 
Testing RESTful Webservices using the REST-assured framework
Testing RESTful Webservices using the REST-assured frameworkTesting RESTful Webservices using the REST-assured framework
Testing RESTful Webservices using the REST-assured framework
 
Huge web apps web expo 2013
Huge web apps web expo 2013Huge web apps web expo 2013
Huge web apps web expo 2013
 
Breaking AngularJS Javascript sandbox
Breaking AngularJS Javascript sandboxBreaking AngularJS Javascript sandbox
Breaking AngularJS Javascript sandbox
 
Introduction to java script
Introduction to java scriptIntroduction to java script
Introduction to java script
 
Beyond MVC
Beyond MVCBeyond MVC
Beyond MVC
 
Sxsw 20090314
Sxsw 20090314Sxsw 20090314
Sxsw 20090314
 
Google在Web前端方面的经验
Google在Web前端方面的经验Google在Web前端方面的经验
Google在Web前端方面的经验
 
JavaFX Advanced
JavaFX AdvancedJavaFX Advanced
JavaFX Advanced
 

Similar to Lt web quiz_answer

JavaScript Interview Questions with Answers
JavaScript Interview Questions with AnswersJavaScript Interview Questions with Answers
JavaScript Interview Questions with AnswersAK Deep Knowledge
 
8.-Javascript-report powerpoint presentation
8.-Javascript-report powerpoint presentation8.-Javascript-report powerpoint presentation
8.-Javascript-report powerpoint presentationJohnLagman3
 
Introduction to JavaScript Programming
Introduction to JavaScript ProgrammingIntroduction to JavaScript Programming
Introduction to JavaScript ProgrammingRaveendra R
 
A Closer Look At React Native
A Closer Look At React NativeA Closer Look At React Native
A Closer Look At React NativeIan Wang
 
C sharp and asp.net interview questions
C sharp and asp.net interview questionsC sharp and asp.net interview questions
C sharp and asp.net interview questionsAkhil Mittal
 
Windows8 metro presentationupdated
Windows8 metro presentationupdatedWindows8 metro presentationupdated
Windows8 metro presentationupdatedDhananjay Kumar
 
That’s not your var – JavaScript best practices for C# developers
That’s not your var – JavaScript best practices for C# developersThat’s not your var – JavaScript best practices for C# developers
That’s not your var – JavaScript best practices for C# developersGyörgy Balássy
 
AFUP Lorraine - Symfony Webpack Encore
AFUP Lorraine - Symfony Webpack EncoreAFUP Lorraine - Symfony Webpack Encore
AFUP Lorraine - Symfony Webpack EncoreEngineor
 
Mozilla Web Apps - Super-VanJS
Mozilla Web Apps - Super-VanJSMozilla Web Apps - Super-VanJS
Mozilla Web Apps - Super-VanJSRobert Nyman
 
Streamlining Your Applications with Web Frameworks
Streamlining Your Applications with Web FrameworksStreamlining Your Applications with Web Frameworks
Streamlining Your Applications with Web Frameworksguestf7bc30
 
Front-end. Global domination
Front-end. Global dominationFront-end. Global domination
Front-end. Global dominationStfalcon Meetups
 
20150812 4시간만에 따라해보는 windows 10 앱 개발
20150812  4시간만에 따라해보는 windows 10 앱 개발20150812  4시간만에 따라해보는 windows 10 앱 개발
20150812 4시간만에 따라해보는 windows 10 앱 개발영욱 김
 

Similar to Lt web quiz_answer (20)

JavaScript Interview Questions with Answers
JavaScript Interview Questions with AnswersJavaScript Interview Questions with Answers
JavaScript Interview Questions with Answers
 
8.-Javascript-report powerpoint presentation
8.-Javascript-report powerpoint presentation8.-Javascript-report powerpoint presentation
8.-Javascript-report powerpoint presentation
 
Javascript
JavascriptJavascript
Javascript
 
Introduction to JavaScript Programming
Introduction to JavaScript ProgrammingIntroduction to JavaScript Programming
Introduction to JavaScript Programming
 
A Closer Look At React Native
A Closer Look At React NativeA Closer Look At React Native
A Closer Look At React Native
 
C sharp and asp.net interview questions
C sharp and asp.net interview questionsC sharp and asp.net interview questions
C sharp and asp.net interview questions
 
Csharp dot net
Csharp dot netCsharp dot net
Csharp dot net
 
C# with Renas
C# with RenasC# with Renas
C# with Renas
 
Walther Aspnet4
Walther Aspnet4Walther Aspnet4
Walther Aspnet4
 
Windows8 metro presentationupdated
Windows8 metro presentationupdatedWindows8 metro presentationupdated
Windows8 metro presentationupdated
 
That’s not your var – JavaScript best practices for C# developers
That’s not your var – JavaScript best practices for C# developersThat’s not your var – JavaScript best practices for C# developers
That’s not your var – JavaScript best practices for C# developers
 
AFUP Lorraine - Symfony Webpack Encore
AFUP Lorraine - Symfony Webpack EncoreAFUP Lorraine - Symfony Webpack Encore
AFUP Lorraine - Symfony Webpack Encore
 
3. Java Script
3. Java Script3. Java Script
3. Java Script
 
Mozilla Web Apps - Super-VanJS
Mozilla Web Apps - Super-VanJSMozilla Web Apps - Super-VanJS
Mozilla Web Apps - Super-VanJS
 
NET_Training.pptx
NET_Training.pptxNET_Training.pptx
NET_Training.pptx
 
CSC PPT 12.pptx
CSC PPT 12.pptxCSC PPT 12.pptx
CSC PPT 12.pptx
 
Streamlining Your Applications with Web Frameworks
Streamlining Your Applications with Web FrameworksStreamlining Your Applications with Web Frameworks
Streamlining Your Applications with Web Frameworks
 
Front-end. Global domination
Front-end. Global dominationFront-end. Global domination
Front-end. Global domination
 
Frontend. Global domination.
Frontend. Global domination.Frontend. Global domination.
Frontend. Global domination.
 
20150812 4시간만에 따라해보는 windows 10 앱 개발
20150812  4시간만에 따라해보는 windows 10 앱 개발20150812  4시간만에 따라해보는 windows 10 앱 개발
20150812 4시간만에 따라해보는 windows 10 앱 개발
 

Lt web quiz_answer

  • 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,c 10 Which of the following is the minimum browser version that supports JavaScript Navigator v2.0
  • 2. Mozilla V1.5 IE 2.0 Navigator 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? Delphi C++ Pascal PHP 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 14 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&C 15 A program written by JavaScript is driven by Events 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 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 this is a good practice this is a good practice
  • 3. 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 then if i=5 then if (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 then if <> 5 25 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 above 26 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 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)
  • 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 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.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 Pages b A Server Page c Active Server Pages d 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.Write b <%Document.Write c <%Write d <%Equal 5 What server-language can be used in ASP.Net ? a C Shell b PERL c Java d VB NET 6 How do you get information from a form that is submitted using the "get" method? a Request.Form b Request.QueryString c Request.Get d 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 only 12 Which one of these events is a standard Global.asax event? Session_id Session_Start Application_OnEnd Global.asax doesn't have any standard events 13 Which one of these events is a standard Global.asax event? Session_OnEnd Application_Error Appication_OnStart Global.asax doesn't have any standard events 14 Global.asax is required for all Web sites TRUE FALSE ASP website, and APSX website only 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 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
  • 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 FALSE 23b 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 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 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 FALSE 30 The number of forms that can be added to a aspx page is. 1 2 3 More than 3 31 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 LCID Item Key 33 Select the caching type supported by ASP.Net Output Caching DataCaching a and b none of the above 34 Where is the default Session data is stored in ASP.Net? InProcess StateServer Session Object all of the above 35 Select the type Processing model that asp.net simulate Event-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 10 20 More than 30 39 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.Interfaces b System.Data.Common c System.Data d 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.Form 50 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 browser 51 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 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() method The Control_Build() method The Render() method The default constructor 54 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.
  • 16. to browser in following format. n web page, is
  • 17. be executed on server
  • 18.
  • 19. process accesses a variable at a time ? dds one item to the class for the form. What item is added ? et Explorer ?
  • 20. class inherit from by default ? at the event handler doesn’t execute. What could the problem be ? ape Communicator ?