1. Trang chủ
  2. » Công Nghệ Thông Tin

câu hỏi trắc nghiệm web

27 769 1

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 27
Dung lượng 343,13 KB

Nội dung

câu hỏi trắc nghiệm web

Trang 1

Trắc nghiệm Asp (chính xác 99.99%)

1 What does ASP stand for?

a All Standard Pages

b A Server Page

c Active Standard Pages

d Active Server Pages

Trang 2

TRẮC NGHIỆM ASP.NET (99 CÂU)

1 Which of the following languages can be used to write server side scripting in ASP.NET?

A) C#

B) C

C) Visual Basic

2 The Following are the minimum requirement to run Asp.net pages

A) Java Virtual Machine

B) Common Language Runtime

Trang 3

14 How do you register a user control?

A) Add Tag prefix, Tag name

B) Add Source, Tag prefix

C) Add Src, Tagprefix, Tagname

15 How do you post the current page to a different aspx page ?

A) FORM ACTION="actiopage.aspx" RUNAT="server" method="post"

B) FORM ACTION="actiopage.aspx" method="post"

C) FORM id="Form1" method="post" runat="server"

16 Which of these namespaces used for FileAccess

A) System.IO

B) System.IO.IsolatedStorage

C) System.DirectoryServices

D) All of these

17 Which of the following is true ?

A) User controls are displayed correctly in the Visual Studio NET Designer

B) Custom controls are displayed correctly in VS.Net Designer

C) User and Custom controls are displayed correctly in the Visual Studio NET Designer

18 Can a dll run as stand alone application ?

A) No

B) Yes

C) Sometimes we can make it by introducing some code

19 To add a custom control to a Web form we have to register with

Trang 4

20 Custom Controls are derived from which of the classes

23 How ASP.Net Different from ASP

A) Scripting is separated from the HTML, Code is interpreted seperately

B) Scripting is separated from the HTML, Code is compiled as a DLL, the DLLs can be executed on server C) Code is separated from the HTML and interpreted Code is interpreted separately

24 What’s the difference between Response.Write() andResponse.Output.Write()?

A) Response.Output.Write() allows you to flush output

B) Response.Output.Write() allows you to buffer output

C) Response.Output.Write() allows you to write formatted output

D) Response.Output.Write() allows you to stream output

25 Why is Global.asax is used

A) Implement application and session level events

B) Declare Global variables

29 Which of the following is true ?

A) IsPostBack is a method of System.UI.Web.Page class

B) IsPostBack is a method of System.Web.UI.Page class

C) IsPostBack is a readonly property of System.Web.UI.Page class

30 It is possible to set Maximum length for a text box through code

Trang 5

32 How do you manage states in asp.net application

A) Session Objects

B) application Objects

C) Viewstate

D) Cookies

E) All of the above

33 what is the difference between user control and custom control

A) Both can use as drag and drop tool

B) Both are same

C) Both can use different application

D) One Custom Control can be use in different project but not the same with User control

34 The interface used by ASP.Net to create Unique Id’s?

D) None of the above

37 Where is the default Session data is stored in ASP.Net

A) InProcess

B) StateServer

C) SQL Server

D) All of the above

38 How do you disable client side validation ?

A) Set the language property to C#

B) Set the Runat property to server

C) Set the ClientTarget property to Downlevel

D) Set the inherits property to codeb

39 Select the validation control used for “PatternMatching”

C) Can not be done

41 How do you turn off the Session state for a webform ?

A) In Web.config file set the tag to True

B) In Web.config file set the tag to false

Trang 6

C) Set the Session state to false in webform properties window

D) Set the EnableSession state to false in webform properties window

42 Who can access Session state variables

A) All Users of an application

B) A Single session

C) All users within a single tunnel

43 Select the type Processing model that asp.net simulate

Trang 7

54 What does Response.End will do?

A) It will stop the server process

B) It will stop the client process

C) None of the above

55 Which control supports paging

57 What is the purpose of code behind ?

A) To separate different sections of a page in to different files

B) To merge HTML layout and code in to One file

C) To separate HTML Layout and code to different file

D) To ignore HTML usage

58 What is a satallite assembly ?

A) Any DLL file used by an EXE file

B) An Assembly containing localized resources for another assembly

C) None of the above

59 Whch of the following is not a member of Response Object?

Trang 8

C) GetAll

D) None

63 How to open more than one datareader at a time

A) Use different datareader variable

B) Use different datareader and connection variable

C) Can not be done

64 What is the advantage of Disconnected mode of ADO.Net in ASP.Net

A) Automatically dump data at client PC

B) Not necessary to connect with server

C) user data can update and retrieve in dataset and when connection connected, update values with server D) All of the above

65 Which objects is used to create foreign key between tables?

71 What is the Full Form of WSDL

A) Web System Description Language

B) Web Services Detail Language

C) Web Service Description Language

D) None

72 What is the difference between Server.Transfer & Response.Redirect

A) No Difference

B) Server.Transfer needs a roundtrip, Response.Redirect does not

C) Response.Redirect needs roundtrip, Server.Transfer does not

D) Server.Transfer can transfer user between 2 applicaions

Trang 9

73 Which Language can Support SOAP

A) VB

B) JAVA

C) COBOL

D) All of the above

74 What is the size of the session ID

A) 32 bit long string

B) 32 bit long double

C) 32 bit long character

D) 32 bit long integer

75 Which of the following extension does a webservice file will have

C) Combination Of both Public,Private key and digital signature

77 What is the purpose of Reflection?

A) For Reading metadata at runtime

B) For knowing version of assembly

C) For finding path of an assembly

78 Is it possible edit data in a repeater control

A) No

B) Yes

79 Why is Global.asax is used for ?

A) To implement application & Session level events

B) To store configuration information

C) To store styling information

D) None of the above

80 What is a diffgram ?

A) The one which renders the dataset object contents to XML

B) Finds the difference in two objects

C) Finds the difference in two files

D) None of the above

81 What is the lifespan for items stored in viewstate

A) Exists for the Life of the current page

D) All of the above

83 Select the output of the statement < form method=post action=”test.aspx” > A) Transfers all the form data to test.aspx with HTTP headers

B) Transfers all the form data to test.aspx with out HTTP headers

Trang 10

C) Calls post method on test.aspx

D) None of the above

84 What is the out put of the following codebyte a=200;byte b=100;byte c=a+b;Response.Write ( C );

A) 300

B) Compile Time error

C) Run time Error

D) None of the above

86 Whats the significance of Request.MapPath( )

A) Maps the specified virtual path to a physical path

B) Maps the specified absolute path to virtual path

88 What is the significance of Server MapPath

A) Returns the physical file path that corresponds to virtual specified path

B) Returns the Virtual Path of the web folder

C) Maps the specified virtual path to Physical path

D) None

89 What is the Server.MachineName does

A) Gets the Server’s Machine Name

B) Gets the Referred Web site name on the server

C) Gets the Client Machine Name

D) None

90 Whats is the significance of Response.ClearHeaders( )

A) Clears all Headers from the buffer stream

B) Clears all the section value from rendered HTML File

C) Clears the content of the Rendered page

D) None of the above

91 What is the significance of Response.AddHeaders( )

A) Adds HTTP Headers to output stream

B) Adds Tag to rendered Page

C) Add Headers to the web site

92 What is the difference between HTTP handlers & HTTP modules

A) Httphandler is an class and Httpmodule is an assembly

B) Httphandler is an event handler and httpmodule is module to do some task

C) Both of the above

D) None of the above

93 Which namespace allows us to formauthentication ?

A) System.Web.Ui.Forms.Security

B) System.Web.Security

Trang 11

95 When is the user controls code is executed

A) After the webform loads

B) After the page_init event of webform

C) Before Page_init event of web form

96 Client Sertificate is a collection of

99 How do you add ASP.Net 3rd party component

A) By add/Remove items in the project menu

B) Add reference of dll file and place the code where ever required

C) Cannot add 3rd party component to asp.net

Đây là đáp án của toàn bộ cư dân mạng: xác suất đúng > 95%

1C 2B 3A 4B 5C 6C 7A 8B 9B 10C 11A 12A 13B 14C 15A 16A 17B 18B 19D 20B 21B 22C 23B 24C 25A 26B 27B 28B 29C 30A 31C 32E 33D 34B 35B 36C 37A 38C 39B 40B 41D 42A 41D 44A 45A 46B 47A 48B 49C 50C 51C 52C 53B 54A 55B 56D 57C 58B 59C 60B 61C 62B 63C 64D 65A 66C 67C 68A 69C 70B 71C 72C 73D 74A 75A 76C 77A 78A 79A 80A 81A 82D 83C 84B 85B 86A 87C 88A 89A 90A 91A 92D 93B 94B 95C 96D 97C 98C 99B

Trắc nghiệm css ( Chính xác 100%)

1 What does CSS stand for?

a Colorful Style Sheets

b Creative Style Sheets

Trang 12

c Computer Style Sheets

d Cascading Style Sheets

2 What is the correct HTML for referring to an external style sheet?

a <style src="mystyle.css">

b <link rel="stylesheet" type="text/css" href="mystyle.css">

c <stylesheet>mystyle.css</stylesheet>

3 Where in an HTML document is the correct place to refer to an external style sheet?

a At the end of the document

b In the <body> section

c In the <head> section

d At the top of the document

4 Which HTML tag is used to define an internal style sheet?

Trang 14

Trắc nghiệm HTML (20 câu)

1 What does HTML stand for?

a Hyper Text Markup Language

b Hyperlinks and Text Markup Language

c Home Tool Markup Language

2 Who is making the Web standards?

10 How can you open a link in a new browser window?

a <a href="url" target="_blank">

b <a href="url" target="new">

c <a href="url" new>

11 Which of these tags are all <table> tags?

Trang 16

3 Where is the correct place to insert a JavaScript?

a The <body> section

b The <head> section

c Both the <head> section and the <body> section are correct

4 What is the correct syntax for referring to an external script called "xxx.js"?

c call function myFunction

9 How do you write a conditional statement for executing some code if "i" is equal to 5?

Trang 17

14 What is the correct JavaScript syntax to insert a comment that has more than one line?

a //This comment has

more than one line//

b <! This comment has

more than one line >

c /*This comment has

more than one line*/

15 What is the correct way to write a JavaScript array?

a var txt = new Array(1:"tim",2:"kim",3:"jim")

b var txt = new Array("tim","kim","jim")

c var txt = new Array="tim","kim","jim"

d var txt = new Array:1=("tim")2=("kim")3=("jim")

16 How do you round the number 7.25, to the nearest integer?

19 How do you put a message in the browser's status bar?

a tatus("put your message here")

b window.status("put your message here")

c statusbar = "put your message here"

d window.status = "put your message here"

20 How can you find a client's browser name?

Trang 18

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?

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)

7 In your JavaScript code, how do you find out which character occurs at the

5th position in a string "How are you"?

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

Trang 19

Check the position of substrings

Test the length of data

All of the above *

12 Which of the following languages will you consider as being similar to JavaScript?Delphi

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

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

Trang 20

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?

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?

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?

Ngày đăng: 30/03/2014, 18:12

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w