0% found this document useful (0 votes)
147 views75 pages

Cuoi PDF

The document contains questions about HTML and CSS topics. It includes 20 multiple choice questions in each of two parts, for a total of 40 questions. The questions cover topics such as HTML tags, CSS syntax, formatting text, inserting images, creating tables and lists, and more. Correct answers are provided but no explanations. The purpose seems to be an assessment of knowledge of HTML and CSS fundamentals.

Uploaded by

Minh Anh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
147 views75 pages

Cuoi PDF

The document contains questions about HTML and CSS topics. It includes 20 multiple choice questions in each of two parts, for a total of 40 questions. The questions cover topics such as HTML tags, CSS syntax, formatting text, inserting images, creating tables and lists, and more. Correct answers are provided but no explanations. The purpose seems to be an assessment of knowledge of HTML and CSS fundamentals.

Uploaded by

Minh Anh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 75

CODE1:

Part 1 of 2 - Part 1 50.0/ 50.0 Points

Question 1 of 20
5.0/ 5.0 Points
Which of the following is an attribute of <Table> tag?

A. CELLPADDING

B. LINK

C. BOLD

D. SRC

Question 2 of 20
5.0/ 5.0 Points
What is the output of following HTML code?

<html>
<body>
<!--This is line 1-->
<p>This is line 2</p>
</body>
</html>

A. This is line 1

B. <!--This is line 1-->

This is line 2

C. This is line 2

D. None of above

Question 3 of 20
5.0/ 5.0 Points
Which of the following tags are related to Table in HTML ?

A. <table> <head> <body>

B. <table> <header> <footer>

C. <table> <row> <column>

D. <table> <tr> <td>

Question 4 of 20
5.0/ 5.0 Points
What is the correct HTML for making a checkbox?

A. <input type="checkbox" />

B. <checkbox>

C. <check>

D. <input type="check" />

Question 5 of 20
5.0/ 5.0 Points
Tables can be nested

True

False

Question 6 of 20
5.0/ 5.0 Points
Header information in a table are defined with the …. tag.
All major browsers will display the text in the …. element as bold and centered.

A. <hd>
B. <th>

C. <td>

D. <hr>

Question 7 of 20
5.0/ 5.0 Points
Which of the following is correct HTML for inserting an image?

A. <image source= “www.ghumti.com/ganesh.jpg” alt= “This is me” />

B. <img alt= “This is me”>www.ghumti.com/ganesh.jpg</img>

C. <img source= “www.ghumti.com/ganesh.jpg” alt= “This is me” />

D. <img src= “www.ghumti.com/ganesh.jpg” alt= “This is me” />

Question 8 of 20
5.0/ 5.0 Points
An ordered list starts with the... tag. Each list item starts with the... tag.

A. <ol>

<il>

B. <ul>

<il>

C. <ol>

<li>

D. <lu>

<li>
Question 9 of 20
5.0/ 5.0 Points
What is the tag for an inline frame?

A. Inframe

B. Iframe

C. frame

D. inlineframe

Question 10 of 20
5.0/ 5.0 Points
HTML Tags are case sensitive.

True

False

Part 2 of 2 - Part 2 50.0/ 50.0 Points

Question 11 of 20
5.0/ 5.0 Points
Fonts such as Times New Roman which have spaces in between must be wrapped inside
______.

A. Quotation Mark

B. Round Brackets

C. Curly Braces

D. Triangular Brackets
Question 12 of 20
5.0/ 5.0 Points
Which is the correct CSS syntax?

A. body {color: black}

B. {body:color=black(body}

C. {body;color:black}

D. body:color=black

Question 13 of 20
5.0/ 5.0 Points
How do you change the font of an element?

A. f:

B. font-style:

C. font-family:

D. fon-face:

Question 14 of 20
5.0/ 5.0 Points
Multiple font faces are separated by __________ .

A. Comma

B. Dot

C. Slash
D. Semicolon

Question 15 of 20
5.0/ 5.0 Points
Which HTML attribute is used to define inline styles?

A. class

B. style

C. styles

D. font

Question 16 of 20
5.0/ 5.0 Points

What does CSS stand for?

A.

Cascading Style Sheets

B.

Creative Style Sheets

C.

Custom Style Sheet

D.

Computer Style Sheets

Question 17 of 20
Which property is used to change the background color?

A. background-color:

B. bgcolor:

C. color:

Question 18 of 20
5.0/ 5.0 Points
Following CSS code is written -
<style>
a:link {
color:#FF0000;
}
a:visited {
color:#00FF00;
}
a:hover {
color:#FF00FF;
}
a:active {
color:#0000FF;
}
</style>
User have created 5 pages and included same css in each page. Each page having list of all 5
pages with links. User is currently viewing 5.html then color of 5.html will be _______.

A. #FF00FF

B. Blue

C. Green

D. Red

Question 19 of 20
5.0/ 5.0 Points
Which HTML tag is used to define an internal style sheet?
A. script

B. style

C. css

D. text/style

Question 20 of 20
5.0/ 5.0 Points
How do you make the text bold?

A. style:bold

B. font-weight:bold

C. font:b

Part 1 of 2 - Part 1 45.0/ 50.0 Points

Question 1 of 20
5.0/ 5.0 Points
There are_____color names recognized by all version of HTML

A. 6

B. 16

C. 8

D. 256
Question 2 of 20
5.0/ 5.0 Points
using <P> tag will

A. break the line

B. start a new paragraph

C. none of the above

D. end the current paragraph

Question 3 of 20
5.0/ 5.0 Points
_______are the HTML codes that control the apearance of the document contents

A. Tags

B. Codas

C. Slashes

D. Properties

Question 4 of 20
5.0/ 5.0 Points
Which of following HTML Tag will inserting a line break?

A. <br />

B. <p />

C. <lb />
D. <break />

Question 5 of 20
5.0/ 5.0 Points
Intrepret this statement: <strong>Michelle</strong>

A. It will print out Michelle in bold font

B. It makes Michelle strong

C. It highlights Michelle as being strong

Question 6 of 20
5.0/ 5.0 Points
What is an ISP?

A. Internal System Program

B. Internet System Protocol

C. None of the above

D. Internet Service Provider

Question 7 of 20
5.0/ 5.0 Points
The page title is inside the____tag.

A. Table

B. Division

C. Head
D. Body

Question 8 of 20
0.0/ 5.0 Points
To create a link to an anchor, you use the______property in A tag

A. Link

B. Name

C. Tag

Question 9 of 20
5.0/ 5.0 Points
The error message displayed when the page is not found at the correct location.

A. 440

B. 505

C. 550

D. 404

Question 10 of 20
5.0/ 5.0 Points
Tables can be nested

True

False

Part 2 of 2 - Part 2 50.0/ 50.0 Points

Question 11 of 20
5.0/ 5.0 Points
Which HTML attribute is used to define inline styles?
A. class

B. style

C. styles

D. font

Question 12 of 20
5.0/ 5.0 Points
What is the preferred way for adding a background color in HTML?

A. <background>yellow</background>

B. <body style="background-color:yellow">

C. <body background="yellow">

Question 13 of 20
5.0/ 5.0 Points
Following Style is applied to -
div.wrapper h2 {
font-size: 18px;
margin-top: 0;
}

A. Type 2 Heading inside Element div of class wrapper

B. Type 2 Heading inside Element div with id wrapper

C. Type 2 Heading inside Element div of any class

D. None Of These
Question 14 of 20
5.0/ 5.0 Points
Which HTML attribute is used to define inline styles?

A. class

B. styles

C. style

D. font

Question 15 of 20
5.0/ 5.0 Points
What is the correct CSS syntax for making all the <p> elements bold?

A. p {text-size:bold}

B. style:bold

C. p {font-weight:bold}

D. p{font:bold}

Question 16 of 20
5.0/ 5.0 Points
How do you make each word in a text start with a capital letter?

A. text-transform:capitalize

B. text-transform:uppercase

C. You can't do that with CSS


Question 17 of 20
5.0/ 5.0 Points
Which is the correct CSS syntax?

A. body {color: black}

B. {body:color=black(body}

C. {body;color:black}

D. body:color=black

Question 18 of 20
5.0/ 5.0 Points
Where in an HTML document is the correct place to refer to an external style sheet?

A. At the top of the document

B. In the <body> section

C. In the <head> section

D. In the <body> section

Question 19 of 20
5.0/ 5.0 Points
Which HTML tag is used to define an internal style sheet?

A. <stylesheet>

B. <script>

C. <style>
D. <css>

Question 20 of 20
5.0/ 5.0 Points
How do you change the text color of an element?

A. color:

B. font-color:

C. text-color:

D. text-color=

CODE2:

Part 1 of 3 - Part 1 50.0/ 50.0 Points

Question 1 of 20
5.0/ 5.0 Points
How do you write a conditional statement for executing some code if "i" is equal to 5?

A. if (i==5)

B. if i=5 then

C. if i=5

D. if i==5 then

Question 2 of 20
5.0/ 5.0 Points
Can you write HTML tag inside the javascript ?
<script type=""text/javascript"">
document.write(""<h1>This is a heading</h1>"");
document.write(""<p>This is a paragraph.</p>"");
document.write(""<p>This is another paragraph.</p>"");
</script>

A. Impossible

B. No

C. Yes

D. None of the above

Question 3 of 20
5.0/ 5.0 Points
<SCRIPT> … </SCRIPT> tag can be placed within ________

A. Header

B. Body

C. both A and B

D. none of the above

Question 4 of 20
5.0/ 5.0 Points
How do you find the largest number of 6 and 8?

A. top(6,8)

B. ceil(6,8)

C. Math.max(6,8)
D. Math.ceil(6,8)

Question 5 of 20
5.0/ 5.0 Points
JavaScript Onclick Event is equivalent to which two events in sequence

A. onmousedown and onmouseout

B. onmousedown and onmouseup

C. onmouseover and onmousedown

D. onmouseup and onmouseout

Question 6 of 20
5.0/ 5.0 Points
Which of the following JavaScript statements use arrays?

A. k = a(i)

B. setTimeout("a["+i+"]",1000)

C. k = a & i

Question 7 of 20
5.0/ 5.0 Points
Inside which HTML element do we put the JavaScript?

A. <js>

B. <script>

C. <scripting>
D. <javascript>

Question 8 of 20
5.0/ 5.0 Points
Where is the correct place to insert a JavaScript?

A. Both the <head> section and the <body> section are correct

B. The <body> section

C. The <head> section

Question 9 of 20
5.0/ 5.0 Points
Which best describe void?

A. A method

B. A statement

C. An operator

D. A function

Question 10 of 20
5.0/ 5.0 Points
How do you put a message in the browser's status bar?

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

B. statusbar = "put your message here"

C. window.status = "put your message here"


D. statusbar = "put your message here"

Part 2 of 3 - Part 2 30.0/ 30.0 Points

Question 11 of 20
5.0/ 5.0 Points
What is the correct jQuery code for making all div elements 100 pixels high?

A. $("div").height="100"

B. $("div").height(100)

C. $("div").yPos(100)

Question 12 of 20
5.0/ 5.0 Points
jQuery method is used to perform an asynchronous HTTP request?

A. jQuery.ajaxAsync()

B. jQuery.ajaxSync()

C. jQuery.ajaxSetup()

D. jQuery.ajax()

Question 13 of 20
5.0/ 5.0 Points
Is it possible to use jQuery together with AJAX?

True

False

Question 14 of 20
5.0/ 5.0 Points
Which statement is true?
A. To use jQuery, you can refer to a hosted jQuery library at Google

B. To use jQuery, you do not have to do anything. Most browsers (Internet Explorer,

Chrome, Firefox and Opera) have the jQuery library built in the browser

C. To use jQuery, you must buy the jQuery library at www.jquery.com

Question 15 of 20
5.0/ 5.0 Points
$(‘#temp’).action()
What type of selector is used in the above jQuery syntax?

A. class selector

B. id selector

C. value selector

D. name selector

Question 16 of 20
5.0/ 5.0 Points
jQuery uses CSS selectors to select elements?

True

False

Part 3 of 3 - Part 3 15.0/ 20.0 Points

Question 17 of 20
0.0/ 5.0 Points
What is AJAX ?

A. None
B. is a country name

C. is a program

D. is a football club name

Question 18 of 20
5.0/ 5.0 Points
What does the XMLHttpRequest object accomplish in Ajax?

A. It provides a means of exchanging structured data between the Web server and client.

B. It provides the ability to mark up and style the display of Web-page text.

C. It provides the ability to asynchronously exchange data between Web browsers and a

Web server.

D. It's the programming language used to develop Ajax applications.

Question 19 of 20
5.0/ 5.0 Points
AJAX based on ______ .

A. VBScript and XML

B. JavaScript and Java

C. JavaScript and XML

D. JavaScript and HTTP requests

Question 20 of 20
5.0/ 5.0 Points
AJAX Stands for:
A. Another Java Abstraction for X-Windows

B. Asynchronous Javascript and XML

C. Another Java and XML Library

D. Abstract JSON and XML

Part 1 of 3 - Part 1 45.0/ 50.0 Points

Question 1 of 20
5.0/ 5.0 Points
Which of method is used to remove focus from the specified object

A. blur()

B. focus()

C. onchange()

D. None of the above

Question 2 of 20
5.0/ 5.0 Points
How do you find the largest number of 6 and 8?

A. top(6,8)

B. ceil(6,8)

C. Math.max(6,8)
D. Math.ceil(6,8)

Question 3 of 20
5.0/ 5.0 Points
What is the output of following JavaScript code?
<script type=""text/javascript"">
var queue = new Array();
queue.push(""Mon"");
queue.push(""Tue"");
queue.push(""Wed"");
queue.shift();
queue.pop();
queue.unshift(""Thu"");
document.write(queue.join("" / ""));
</script>

A. Thu / Tue

B. Wed / Thu

C. Thu / Wed

D. Tue / Thu

Question 4 of 20
5.0/ 5.0 Points
What is the output of following JavaScript code?

<script type=""text/javascript"">
document.write(3 & 5);
</script>

A. 1

B. 35

C. 3
D. 5

Question 5 of 20
5.0/ 5.0 Points
Which best describe void?

A. A method

B. A statement

C. An operator

D. A function

Question 6 of 20
5.0/ 5.0 Points
What is the correct syntax for referring to an external script called "xxx.js"?

A. <script type="text/javascript" src="xxx.js">

B. <script type="text/javascript" href="xxx.js">

C. <script type="text/javascript" name="xxx.js">

D. A, B, C are right

Question 7 of 20
5.0/ 5.0 Points
What operator makes converts 00110011 into 11001100?

A. ~

B. !
C. |

D. &

Question 8 of 20
5.0/ 5.0 Points
What is the output of following JavaScript code?
<script type=""text/javascript"">
var str = ""FPT Software"";
var result = str.substring(4,str.length);
document.write(str);
</script>

A. Software

(with include space)

B. Software

C. FPT Software

D. Output Error

Question 9 of 20
0.0/ 5.0 Points
What is the correct way to write a JavaScript array?

A. var txt = new Array("tim","shaq","kobe")

B. var txt = new Array(1:"tim",2:"shaq",3:"kobe")

C. var txt = new Array="tim","shaq","kobe"

Question 10 of 20
5.0/ 5.0 Points
Can you write HTML tag inside the javascript ?
<script type=""text/javascript"">
document.write(""<h1>This is a heading</h1>"");
document.write(""<p>This is a paragraph.</p>"");
document.write(""<p>This is another paragraph.</p>"");
</script>

A. Impossible

B. No

C. Yes

D. None of the above

Part 2 of 3 - Part 2 25.0/ 30.0 Points

Question 11 of 20
5.0/ 5.0 Points
With jQuery, look at the following selector: $("div.intro"). What does it select?

A. All div elements with id="intro"

B. All div elements with class="intro"

C. The first div element with class="intro"

D. The first div element with id="intro"

Question 12 of 20
5.0/ 5.0 Points
$(function(){});
What does this piece of jQuery do?

A. This is to test if jQuery can be loaded again


B. This is to create a method in jQuery

C. This is to test if jQuery has completed execution

D. This is a shorter version for $(document).ready(function(){});

Question 13 of 20
0.0/ 5.0 Points
With jQuery, look at the following selector: $("div"). What does it select?

A. All div elements

B. The first div element

Question 14 of 20
5.0/ 5.0 Points
Of the following technologies, which one provides the ability to dynamically interact with Web
page layout?

A. HTML

B. XML

C. Document Object Model.

D. JavaScript.

Question 15 of 20
5.0/ 5.0 Points
Which jQuery function is used to prevent code from running, before the document is finished
loading?

A. $(document).ready()
B. $(body).onload()

C. $(document).load()

Question 16 of 20
5.0/ 5.0 Points
jQuery code to set the background color of all span elements to blue?

A. $("span").css("background-color","blue");

B. $("span").manipulate("background-color","blue");

C. $("span").layout("background-color","blue");

D. $("span").style("background-color","blue");

Part 3 of 3 - Part 3 20.0/ 20.0 Points

Question 17 of 20
5.0/ 5.0 Points
What does the XMLHttpRequest object accomplish in Ajax?

A. It provides a means of exchanging structured data between the Web server and client.

B. It provides the ability to mark up and style the display of Web-page text.

C. It provides the ability to asynchronously exchange data between Web browsers and a

Web server.

D. It's the programming language used to develop Ajax applications.

Question 18 of 20
5.0/ 5.0 Points
AJAX Stands for:
A. Another Java Abstraction for X-Windows

B. Asynchronous Javascript and XML

C. Another Java and XML Library

D. Abstract JSON and XML

Question 19 of 20
5.0/ 5.0 Points
What is AJAX ?

A. None

B. is a country name

C. is a program

D. is a football club name

Question 20 of 20
5.0/ 5.0 Points
AJAX based on ______ .

A. VBScript and XML

B. JavaScript and Java

C. JavaScript and XML

D. JavaScript and HTTP requests

CODE3:
Part 1 of 1 - 80.0/ 100.0 Points

Question 1 of 20
5.0/ 5.0 Points
The Page_Load event handler helps to add dynamic, non page-specific content to the ________
page.

A. Content

B. Nested

C. ASP.NET

D. Master

Question 2 of 20
5.0/ 5.0 Points
Which tool helps in handling configuration settings for an application deployed on the server?

A. Configuration

B. Web Site Administration

C. MMC Snap-In

D. Documentation

Question 3 of 20
0.0/ 5.0 Points
The process that ASP.NET uses to keep track of Sessions without cookies is?

A. Cookie Monking

B. Cookie Munging
C. Cookie Monking

D. Cookie Munching

Question 4 of 20
5.0/ 5.0 Points
A ______________ is a collection of property settings that allows you to define and apply a
consistent look across a Web application.

A. skin

B. graphics

C. cascading style sheets

D. theme

Question 5 of 20
0.0/ 5.0 Points
Which authentication method that below statements describe ?
-Single sign in for many Internet sites
-No need to maintain a database to store user information
-Allows developers to customize the appearance of the registration page
-Based on cookies
-Fees involved

A. Microsoft Passport authentication

B. Form -base Authentication

C. Active Directory Authentication

D. Windows-based authentication

Question 6 of 20
5.0/ 5.0 Points
The Asp.net server control, which provides an alternative way of displaying text on web page, is

A. < asp:listitem >

B. < asp:button >

C. < asp:label >

Question 7 of 20
5.0/ 5.0 Points
Which property of the session object is used to set the local identifier?

A. LCID

B. Key

C. Item

D. SessionId

Question 8 of 20
5.0/ 5.0 Points
There can be more than 1 machine.config file in a system

True

False

Question 9 of 20
0.0/ 5.0 Points
Consider the following events:
1. Page_Load
2. Page_Unload
3. Control Event
4. Page_lnit
What is the order of their execution?

A. 4,3,1,2
B. 4,1,3,2

C. 1,2,3,4

D. 1,2,3,4

Question 10 of 20
5.0/ 5.0 Points
What namespace does the Web page belong in the.NET Framework class hierarchy?

A. System.Web.page

B. System.web.UI.Page

C. System.Windows.Page

Question 11 of 20
5.0/ 5.0 Points
How do you explicitly kill a user session?

A. Session.End

B. Session.Close( )

C. Session.Abandon

D. Session.Discard( )

Question 12 of 20
5.0/ 5.0 Points
What's the difference between Response.Write() andResponse.Output.Write()?

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


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

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

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

Question 13 of 20
0.0/ 5.0 Points
You want to access web sites on the internet using HTTP. Which of the classes below can you
use?

A. System.Net.HttpWebRequest

B. System.Net.HttpClient

C. System.Net.WebClient

D. Sytem.Net.InetClient

Question 14 of 20
5.0/ 5.0 Points
___________ an application involves making the application readable to a wide range of users
irrespective the cultural and regional differences.

A. Globalizing

B. Personalizing

C. Internationalizing

D. Localizing

Question 15 of 20
5.0/ 5.0 Points
To add a custom control to a Web form we have to register with

A. TagPrefix

B. Name space of the dll that is referenced

C. Assemblyname

D. All of the above

Question 16 of 20
5.0/ 5.0 Points
In _____________, the application acts on behalf of a user whose identity is authenticated using
IIS.

A. Impersonation

B. Authorization

C. Security

D. Authentication

Question 17 of 20
5.0/ 5.0 Points
The ASP.NET _____ Tool is a browser based tool build into the Microsoft Visual Studio IDE.

A. Configuration

B. Web Site Administration

C. Documentation
D. MMC Snap In

Question 18 of 20
5.0/ 5.0 Points
Đoạn văn sau nói về đối tượng nào :
- Là thông tin ( name-value)được lưu trên các tệp tin ở máy client
- kích thước tệp tin bị giới hạn
- Thông tin có thể tái sử dụng ở các lần sau

A. Application Object

B. Cookie

C. Session object

D. QueryString

Question 19 of 20
5.0/ 5.0 Points
"state" management object in server side is(are)

A. Cookie

B. ViewState

C. Session object

D. Hidden Fields

Question 20 of 20
5.0/ 5.0 Points
Which of the following contains the overall templates content?

A. ASP.NET
B. Nested

C. Slave

D. Master

CODE4:

Part 1 of 1 - 86.67/ 100.0 Points

Question 1 of 20
5.0/ 5.0 Points
Which connection method requires a connection string?

A. DSN-less

B. Both

C. DSN

Question 2 of 20
5.0/ 5.0 Points
You want to access data from the "Customer" table in the database. You generate a DataSet
named "MyDataSet" by adding "Customer" table to it. Which of the following statements should
you use to load the data from the database into "MyDataSet" which has been loaded with
multiple tables, using a SqlDataAdapter named "MyAdapter"?

A. . MyAdapter.Fill("MyDataSet")

B. MyAdapter.Fill(MyDataSet,"Customer")

C. MyAdapter.FilI(MyDataSet)

D. MyAdapter.Fill("MyDataSet",Customer)

Question 3 of 20
5.0/ 5.0 Points
Which object of ADO.NET has the best performance for retrieving the data

A. Data Provider

B. Dataadapter

C. DataSet

D. DataReader

Question 4 of 20
5.0/ 5.0 Points
Which object that bellowed statements describe about?
Its is Read only !
Its connected to datasource
You must manage connection your self
It use fewer server resource

A. DataView

B. DataReader

C. DataTable

D. Dataset

Question 5 of 20
5.0/ 5.0 Points
The "ReSet" method of Dataset is used to :

A. a

B. remove all datarow in it


C. Rollbacks all changes since last call to AcceptChanges

D. Commits the changes

Question 6 of 20
5.0/ 5.0 Points
Choose valid operations of DataSet object:

A.ReadBinary

B.Copy

C.ReadXml

D.WriteXml

Question 7 of 20
5.0/ 5.0 Points
Can a dataset be returned by connecting Excel file as database?

True

False

Question 8 of 20
5.0/ 5.0 Points
How to get a DataReader object from Command object?

A. Command.GetReader()

B. Command.GetAllReader()

C. Command.ExecuteReader()

Question 9 of 20
5.0/ 5.0 Points
"Last in wins" concurrency means :

A. ...... control works on the assumption that resource conflicts between multiple users are

unlikely (but not impossible), and allows transactions to execute without locking any resources.
Only when attempting to change data are resources checked to determine if any conflicts have
occurred. If a conflict occurs, the application must read the data and attempt the change again.

B. ….whatever data modification was made last gets written to the database.

C. …. control locks resources as they are required, for the duration of a transaction. Unless

deadlocks occur, a transaction is assured of successful completion.

Question 10 of 20
5.0/ 5.0 Points
Chose valid value for datarowstates !

A.Modified

B.Deleted

C.Detached

D.Added

Question 11 of 20
5.0/ 5.0 Points
DataTable.Copy() method also creates the copy of DataRows?

True

False

Question 12 of 20
0.0/ 5.0 Points
Which internal format DataSet uses to load and persist its contents?

A. No format is required
B. Binary Format

C. CSV Format

D. Which internal format DataSet uses to load and persist its contents?

Question 13 of 20
0.0/ 5.0 Points
Which Dataset gives easier access to the contents of the table ?

A. Typed

B. Mixed

C. UnTyped

Question 14 of 20
5.0/ 5.0 Points
What is the sequential procedure in working with databases?

A. Connection string, connection object, close connection string, close connection object

B. Connection object, connection string, close connection string, close connection object

C. Connection object, connection string, close connection object, close connection string

Question 15 of 20
5.0/ 5.0 Points
You use a TransactionScope in your application in your application in order to use transaction
semantics. What code should you use in order to commit the transaction within the transaction
scope?

A. TransactionScope.Complete();
B. TransactionScope.Commit();

C. TransactionScope.Completed = true;

D. TransactionScope.IsCompleted = true;

Question 16 of 20
5.0/ 5.0 Points
How to roll back all changes that have been made to the table since it was loaded?

A. Call DataTable.RollbackChanges() method

B. Call DataSet.RejectChanges() method

C. Call DataSet.RollbackChanges() method

D. Call DataTable.RejectChanges() method

Question 17 of 20
5.0/ 5.0 Points
ActiveX Data Objects (ADO) comes installed with ASP and allows your pages to easily connect
to databases. Which two ADO objects are used to open a connection and interact with the
database?

A. Connect object, Recordset object

B. Connect object, RecordingSet object

C. Connection object, RecordingSet object

D. Connection object, Recordset object

Question 18 of 20
5.0/ 5.0 Points
What is a connection object?

A. Specifies the type of driver to use, database format and filename

B. Specifies whether to use a DSN or DSN-less connection

C. Specifies whether to use a DSN or DSN-less connection

D. First opens the initial connection to a database before giving any database information

Question 19 of 20
5.0/ 5.0 Points
There are two methods of connecting to an Access database. Which are they?

A. DNS, DNS-less

B. OLEDB, ADO

C. ODBC, ADO

D. DSN, DSN-less

Question 20 of 20
1.67/ 5.0 Points
What are disconnected objects in ADO.NET ?

A.DataRow

B.DataReader

C.DataTable

D.DataSet
Part 1 of 1 - 75.83/ 100.0 Points

Question 1 of 20
0.0/ 5.0 Points
Which internal format DataSet uses to load and persist its contents?

A. No format is required

B. Binary Format

C. CSV Format

D. Which internal format DataSet uses to load and persist its contents?

Question 2 of 20
0.0/ 5.0 Points
Which function of the SqlCommand object must you use in order to execute an “Select” Sql
Query?

A. ExecuteScalar();

B. ExecuteReader();

C. ExecuteNonQuery();

D. ExecuteCommand();

Question 3 of 20
5.0/ 5.0 Points
ActiveX Data Objects (ADO) comes installed with ASP and allows your pages to easily connect
to databases. Which two ADO objects are used to open a connection and interact with the
database?

A. Connect object, Recordset object


B. Connect object, RecordingSet object

C. Connection object, RecordingSet object

D. Connection object, Recordset object

Question 4 of 20
5.0/ 5.0 Points
OLEDB Connection Pooling is handled by OLEDB.Net Provider and SQLClient Connection
pooling is handled by

A. ODBC provider

B. OLEDB Provider

C. SQL Provider

D. Windows 2000 Component Service

Question 5 of 20
5.0/ 5.0 Points
Can a dataset be returned by connecting Excel file as database?

True

False

Question 6 of 20
5.0/ 5.0 Points
Which one of the following namespaces contains the definition for IdbConnection?

A. System.Data

B. System.Data.Interfaces
C. System.Data.Interfaces

D. System.Data.Connection

Question 7 of 20
5.0/ 5.0 Points
Base class for TypedDataset is ?

A. DataReader

B. DataAdapter

C. DataSet

Question 8 of 20
2.5/ 5.0 Points
What are the weekness of typed dataset

A.Heavy object

B.No re-use/upgrade model

C.Lack of DataAccess features

D.Hight performance

Question 9 of 20
0.0/ 5.0 Points
DataTable.Clone() method also create copy of data inside the table?

True

False

Question 10 of 20
5.0/ 5.0 Points
State whether the following statement is true or false.ADO.NET does not have the inherent
cursor object but has data classes that include functionality of cursors

A. 1

B. 0

C. canot say

D. None of these

Question 11 of 20
3.33/ 5.0 Points
What are disconnected objects in ADO.NET ?

A.DataRow

B.DataReader

C.DataTable

D.DataSet

Question 12 of 20
5.0/ 5.0 Points
Which object that bellowed statements describe about?
Its is Read only !
Its connected to datasource
You must manage connection your self
It use fewer server resource

A. DataView

B. DataReader
C. DataTable

D. Dataset

Question 13 of 20
5.0/ 5.0 Points
What is a connection string?

A. Specifies the type of ODBC driver to use, database format and filename

B. Specifies whether to use a DSN or DSN-less connection

C. Opens the initial connection to a database

D. Specifies which type of database is being used

Question 14 of 20
0.0/ 5.0 Points
The "ReSet" method of Dataset is used to :

A. a

B. remove all datarow in it

C. Rollbacks all changes since last call to AcceptChanges

D. Commits the changes

Question 15 of 20
5.0/ 5.0 Points
How many types of Concurrency handling techniques in ADO.NET ?

A. 1
B. 2

C. 3

D. 4

Question 16 of 20
5.0/ 5.0 Points
Which connection method requires a connection string?

A. DSN-less

B. Both

C. DSN

Question 17 of 20
5.0/ 5.0 Points
DataTable.Copy() method also creates the copy of DataRows?

True

False

Question 18 of 20
5.0/ 5.0 Points
What is a connection object?

A. Specifies the type of driver to use, database format and filename

B. Specifies whether to use a DSN or DSN-less connection

C. Specifies whether to use a DSN or DSN-less connection

D. First opens the initial connection to a database before giving any database information

Question 19 of 20
5.0/ 5.0 Points
Which property of DataAdapter object used to perform batch/bulk updates?

A. UpdateBatchSize

B. BatchSizeUpdate

C. BatchSize

D. UpdateSize

Question 20 of 20
5.0/ 5.0 Points
Chose valid value for datarowstates !

A.Modified

B.Deleted

C.Detached

D.Added

Part 1 of 1 - 73.33/ 100.0 Points

Question 1 of 20
3.33/ 5.0 Points
Which statements describe DataSet exactly ?:

A.Read-only

B.Read-write access

C.Disconnected
D.Slower access

Question 2 of 20
2.5/ 5.0 Points
What are the benefit of typed dataset

A.XML Support

B.Strongly type

C.Rapid application development

D.Designer support

Question 3 of 20
5.0/ 5.0 Points
How many types of Concurrency handling techniques in ADO.NET ?

A. 1

B. 2

C. 3

D. 4

Question 4 of 20
0.0/ 5.0 Points
DataTable.Copy() method also creates the copy of DataRows?

True

False

Question 5 of 20
5.0/ 5.0 Points
LINQ to ADO.NET includeL
A.LINQ to SQL

B.LINQ to DataSet

C.LINQ to Entities

D.LINQ to Object

Question 6 of 20
5.0/ 5.0 Points
To populate the data set, which methord of DataAdapter is uesd

A. FillData()

B. FillDataset()

C. GetData()

D. Fill()

Question 7 of 20
5.0/ 5.0 Points
What's wrong with these code:
using System;
using System.Data;
using System.Data.SqlClient;
class Program
{
static void Main(string[] args)
{
string sqlConnectString = ""Data Source=(local);"" +
""Integrated security=SSPI;Initial Catalog=AdventureWorks;"";
string sqlSelect = ""SELECT TOP 3 * FROM Sales.SalesOrderHeader;"" +
""SELECT TOP 3 * FROM Sales.SalesOrderDetail"";
int rsNumber;
SqlDataAdapter da = new SqlDataAdapter(sqlSelect, sqlConnectString);
DataSet ds = new DataSet( );
da.Fill(ds);
rsNumber = 0;
foreach (DataTable dt in ds.Tables)
{
Console.WriteLine(""Result set: {0}"", ++rsNumber);
foreach (DataRow row in dt.Rows)
{
Console.WriteLine(""{0}, {1}, {2}"", row[0], row[1], row[2]);
}
}
}
}

A. Run time error, multi result set is not supported by ADO.NET

B. Nothing wong, multi result set is supported by ADO.NET

Question 8 of 20
5.0/ 5.0 Points
Can a dataset be returned by connecting Excel file as database?

True

False

Question 9 of 20
0.0/ 5.0 Points
If the DSN (Data Source Name) has to be used with SQL Server, which namespace has to be
imported ?

A. System.Data.SQLClient

B. Sytem.Data.ODBC

C. Sytem.Data.ODBC

D. System.Data.Oledb

Question 10 of 20
0.0/ 5.0 Points
You want to access data from the "Customer" table in the database. You generate a DataSet
named "MyDataSet" by adding "Customer" table to it. Which of the following statements should
you use to load the data from the database into "MyDataSet" which has been loaded with
multiple tables, using a SqlDataAdapter named "MyAdapter"?

A. . MyAdapter.Fill("MyDataSet")

B. MyAdapter.Fill(MyDataSet,"Customer")

C. MyAdapter.FilI(MyDataSet)

D. MyAdapter.Fill("MyDataSet",Customer)

Question 11 of 20
5.0/ 5.0 Points
Which of the following Namespace is used for better performance when connecting to
SQLServer ?

A. System.Data.SQLClient

B. System.Data.Oledb

C. System.Data

D. System.Data.OracleClient

Question 12 of 20
5.0/ 5.0 Points
ActiveX Data Objects (ADO) comes installed with ASP and allows your pages to easily connect
to databases. Which two ADO objects are used to open a connection and interact with the
database?

A. Connect object, Recordset object

B. Connect object, RecordingSet object


C. Connection object, RecordingSet object

D. Connection object, Recordset object

Question 13 of 20
0.0/ 5.0 Points
OLEDB Connection Pooling is handled by OLEDB.Net Provider and SQLClient Connection
pooling is handled by

A. ODBC provider

B. OLEDB Provider

C. SQL Provider

D. Windows 2000 Component Service

Question 14 of 20
5.0/ 5.0 Points
"Last in wins" concurrency means :

A. ...... control works on the assumption that resource conflicts between multiple users are

unlikely (but not impossible), and allows transactions to execute without locking any resources.
Only when attempting to change data are resources checked to determine if any conflicts have
occurred. If a conflict occurs, the application must read the data and attempt the change again.

B. ….whatever data modification was made last gets written to the database.

C. …. control locks resources as they are required, for the duration of a transaction. Unless

deadlocks occur, a transaction is assured of successful completion.

Question 15 of 20
3.75/ 5.0 Points
What are the valid parrameter of connection string ?
A.Initial catalog

B.Integrated security

C.Connection timeout

D.DataSource

Question 16 of 20
5.0/ 5.0 Points
Optimistic concurency means

A. …. control locks resources as they are required, for the duration of a transaction. Unless

deadlocks occur, a transaction is assured of successful completion.

B. ...... control works on the assumption that resource conflicts between multiple users are

unlikely (but not impossible), and allows transactions to execute without locking any resources.
Only when attempting to change data are resources checked to determine if any conflicts have
occurred. If a conflict occurs, the application must read the data and attempt the change again.

C. ….whatever data modification was made last gets written to the database.

Question 17 of 20
5.0/ 5.0 Points
Which method do you invoke on the Data Adapter control to load your generated dataset?

A. ExecuteQuery( )

B. Read( )

C. Fill()

Question 18 of 20
5.0/ 5.0 Points
The "RejectChanges" method of Dataset is used to :

A. Rolls back all changes since object was created

B. remove all datarow in it

C. Commits the changes

D. Rollbacks all changes since last call to AcceptChanges

Question 19 of 20
5.0/ 5.0 Points
What is the sequential procedure in working with databases?

A. Connection string, connection object, close connection string, close connection object

B. Connection object, connection string, close connection string, close connection object

C. Connection object, connection string, close connection object, close connection string

Question 20 of 20
3.75/ 5.0 Points
What are the keys to describe exactly about "DataReader" object?

A.Faster access

B.Read-only

C.Forward only

D.Connected mode
Part 1 of 2 - Part 1 45.0/ 50.0 Points

Question 1 of 20
0.0/ 5.0 Points
How do the SQL classes in.Net Communicate to SQLServer ?

A. TDS - Tabular Data Stream

B. OLEDB

C. ODBC

D. None of the above

Question 2 of 20
5.0/ 5.0 Points
Two users are trying to update the row in a database at the same time.Assuming that optimistic
concurrency is not used for concurrency control in this case, what will be the result ?

A. The Second Update overwrites the first update

B. Error will be raised when the Second update happens

C. Second update does not happen at all

D. None of the above

Question 3 of 20
5.0/ 5.0 Points
You want to access data from the "Customer" table in the database. You generate a DataSet
named "MyDataSet" by adding "Customer" table to it. Which of the following statements should
you use to load the data from the database into "MyDataSet" which has been loaded with
multiple tables, using a SqlDataAdapter named "MyAdapter"?

A. . MyAdapter.Fill("MyDataSet")
B. MyAdapter.FilI(MyDataSet)

C. MyAdapter.Fill(MyDataSet,"Customer")

D. MyAdapter.Fill("MyDataSet",Customer)

Question 4 of 20
5.0/ 5.0 Points
You decide to use named parameters in a SqlCommand object in order to execute SQL queries
on a database. You have a parameter named “CustomerName”. How do you refer to it within the
SQL query text in the SqlCommand object?

A. “?CustomerName”

B. “%CustomerName”

C. “@CustomerName”

D. “#CustomerName”

Question 5 of 20
5.0/ 5.0 Points
Chose valid value for datarowstates !

A.Detached

B.Deleted

C.Modified

D.Added

Question 6 of 20
5.0/ 5.0 Points
Which object that bellowed statements describe about?
Its is Read only !
Its connected to datasource
You must manage connection your self
It use fewer server resource

A. DataReader

B. DataView

C. Dataset

D. DataTable

Question 7 of 20
5.0/ 5.0 Points
Optimistic concurency means

A. ….whatever data modification was made last gets written to the database.

B. ...... control works on the assumption that resource conflicts between multiple users are

unlikely (but not impossible), and allows transactions to execute without locking any resources.
Only when attempting to change data are resources checked to determine if any conflicts have
occurred. If a conflict occurs, the application must read the data and attempt the change again.

C. …. control locks resources as they are required, for the duration of a transaction.

Unless deadlocks occur, a transaction is assured of successful completion.

Question 8 of 20
5.0/ 5.0 Points
What are the keys to describe exactly about "DataReader" object?

A.Read-only

B.Faster access
C.Forward only

D.Connected mode

Question 9 of 20
5.0/ 5.0 Points
Can a dataset be returned by connecting Excel file as database?

True

False

Question 10 of 20
5.0/ 5.0 Points
You use a TransactionScope in your application in your application in order to use transaction
semantics. What code should you use in order to commit the transaction within the transaction
scope?

A. TransactionScope.Completed = true;

B. TransactionScope.Complete();

C. TransactionScope.Commit();

D. TransactionScope.IsCompleted = true;

Part 2 of 2 - 36.25/ 50.0 Points

Question 11 of 20
5.0/ 5.0 Points
Which is the valid test case naming onvention?

A. Public void TestAddUsers_ExceptionThrow()

B. Public void TestAddUser_InputUserWithIDIsExisting_ExceptionThrow()


C. Public void TestAddUsers

Question 12 of 20
0.0/ 5.0 Points
Which is valid meta data for NUnit ?

A. [@TestCases]

B. [TestMethod]

C. [Test]

D. [TestCases]

Question 13 of 20
5.0/ 5.0 Points
Which is valid meta data for NUnit ?

A. [TestClass]

B. [TestFixture]

C. [TestCollection]

D. TestFixtures]

Question 14 of 20
3.75/ 5.0 Points
Which is valid method for asserts class?

A.Assert.isTrue
B.Assert.Fail

C.Assert.AreEqual

D.Assert.Contains

Question 15 of 20
5.0/ 5.0 Points
_____ is not used in the delivery product. It is used to accelerate the testing procedure

A. Fakes

B. Mock Object

C. Stub

Question 16 of 20
5.0/ 5.0 Points
Choose right statement about Unit Test case.

A."Only two possible results: Pass or Fail

"

B.A test fails -> The whole suite fails

C.No partially successful tests

Question 17 of 20
0.0/ 5.0 Points
Select mock object implementation procedure

A. "a. create mock object interface

b. implement this interface


c. collect the interface of the real object
d. test the object undertest using the real object interface"
B. "a. create object udertest interface

b. implement this interface


c. test the object undertest using this interface"

C. "Đưa ra abtract class mô tả đối tượng,Viết nội dung cho đối tượng dựa trên interface,

trích interface từ đối tượng thật và triển khai mock object dựa trên interface đó
a. create abstract class for object undertest
b. implement the object undertest based on its interface
c. collect the interface of the real object
d. test the object undertest using the real object interface"

D. None of above

Question 18 of 20
2.5/ 5.0 Points
What is mock object ?

A.A mock object is simply a testing replacement for a real world object

B."Mock Objects are technique that allow you to isolate classes from their dependencies

for testing purposes.


"

C.A mock object is real world object design for testing

Question 19 of 20
5.0/ 5.0 Points
_____ is a procedure to realize an interface. This procedure makes our object method return a
predefined value

A. Mock Object

B. Stub

C. Fakes
Question 20 of 20
5.0/ 5.0 Points
Chose the best answer to create test case with NUnit!

A. Create a test Class, Add Reference to nunit.Framwork.dll, copy class contains funtion

which you want to test to test class location, restructure test class following NUnit Framework

B. Create a test Class, Add Reference to nunit.Framwork.dll, add reference to dll contains

funtion which you want to test, restructure class following NUnit Framework

C. Create a test Class, add reference to dll contains funtion which you want to test,

restructure class following NUnit Framework

D. Create a test Class, Add Reference to nunit.dll, add reference to dll contains funtion

which you want to test, restructure class following NUnit Framework

06_ATNB_Quiz5_ADO.NET & NUnit


Return to Asse ssment List

Part 1 of 2 - Part 1 50.0/ 50.0 Points

Question 1 of 20 5.0/ 5.0 Points

Chose valid value for datarowstates !

A.Detached

B.Deleted
C.Modified

D.Added

Question 2 of 20 5.0/ 5.0 Points

What are the keys to describe exactly about "DataReader" object?

A.Read-only

B.Faster access

C.Forward only

D.Connected mode

Question 3 of 20 5.0/ 5.0 Points

DataTable.Clone() method also create copy of data inside the table?

True

False

5.0/ 5.0 Points


Question 4 of 20
When we need to retrieve only a single value from the Database,which Method is
efficient

A. ExecuteNonQuery()

B. ExecuteReader()

C. ExecuteScalar()

D. ExecuteXmlReader()

Question 5 of 20 5.0/ 5.0 Points

Which function of the SqlCommand object must you use in order to execute an
“Select” Sql Query?

A. ExecuteCommand();

B. ExecuteReader();

C. ExecuteNonQuery();
D. ExecuteScalar();

Question 6 of 20 5.0/ 5.0 Points

Which object of ADO.NET has the best performance for retrieving the data

A. DataReader

B. Data Provider

C. Dataadapter

D. DataSet

Question 7 of 20 5.0/ 5.0 Points

Permistic concurency means

A. …. control locks resources as they are required, for the duration of a

transaction. Unless deadlocks occur, a transaction is assured of successful


completion.

B. ...... control works on the assumption that resource conflicts between

multiple users are unlikely (but not impossible), and allows transactions to execute
without locking any resources. Only when attempting to change data are
resources checked to determine if any conflicts have occurred. If a conflict occurs,
the application must read the data and attempt the change again.
C. ….whatever data modification was made last gets written to the database.

Question 8 of 20 5.0/ 5.0 Points

Which statements describe DataSet exactly ?:

A.Read-only

B.Slower access

C.Read-write access

D.Disconnected

Question 9 of 20 5.0/ 5.0 Points

DataTable.Copy() method also creates the copy of DataRows?

True

False

Question 10 of 20 5.0/ 5.0 Points

Which property of DataAdapter object used to perform batch/bulk updates?


A. BatchSize

B. UpdateBatchSize

C. BatchSizeUpdate

D. UpdateSize

Part 2 of 2 - 25.0/ 50.0 Points

Question 11 of 20 0.0/ 5.0 Points

How to make a test case return failed manualy ?

A. Use Assert.Failure()

B. Use Assert.IsFalse

C. Use Assert.Fail()

D. Use Assert.False
Question 12 of 20 0.0/ 5.0 Points

Which.NET class can be used to simulate the disk I/O task?

A. BufferStream

B. XML Stream

C. BinaryStream

D. MemoryStream

Question 13 of 20 0.0/ 5.0 Points

Select mock object implementation procedure

A. "a. create mock object interface

b. implement this interface


c. collect the interface of the real object
d. test the object undertest using the real object interface"

B. "a. create object udertest interface

b. implement this interface


c. test the object undertest using this interface"

C. "Đưa ra abtract class mô tả đối tượng,Viết nội dung cho đối tượng dựa trên

interface, trích interface từ đối tượng thật và triển khai mock object dựa trên
interface đó
a. create abstract class for object undertest
b. implement the object undertest based on its interface
c. collect the interface of the real object
d. test the object undertest using the real object interface"

D. None of above

Question 14 of 20 5.0/ 5.0 Points

Choose right statement about Unit Test case.

A."Only two possible results: Pass or Fail

"

B.A test fails -> The whole suite fails

C.No partially successful tests

Question 15 of 20 5.0/ 5.0 Points

Which option must be apply for unit test naming ?

A.Test name should express a specific requirement

B.Test Name should only begin with Test


C.Test name should include the expected input or state

D.Test name should include name of tested method

Question 16 of 20 5.0/ 5.0 Points

_____ is an object which implements and interface. This _____ return the expected
value to verify out object undertest

A. Fakes

B. Stub

C. Mock Object

Question 17 of 20 0.0/ 5.0 Points

Which is best choice for deploying NUnit test case?

A. Complie a test case class to dll, Run NUnit Tool, Open DLL Contains test

case, choose test case, click execute

B. Complie a test case class to dll, Run NUnit Tool, Open DLL Contains test

case, choose test case, click Run


C. Complie a test case class to dll, Run NUnit Tool, Open DLL Contains test

case, choose test case, click Go

D. Complie a test case class to dll, Run NUnit Tool, Open DLL Contains test

case, choose test case, click Process

Question 18 of 20 0.0/ 5.0 Points

Chose the best answer to create test case with NUnit!

A. Create a test Class, Add Reference to nunit.Framwork.dll, copy class

contains funtion which you want to test to test class location, restructure test class
following NUnit Framework

B. Create a test Class, Add Reference to nunit.Framwork.dll, add reference to

dll contains funtion which you want to test, restructure class following NUnit
Framework

C. Create a test Class, add reference to dll contains funtion which you want to

test, restructure class following NUnit Framework

D. Create a test Class, Add Reference to nunit.dll, add reference to dll contains

funtion which you want to test, restructure class following NUnit Framework

Question 19 of 20 5.0/ 5.0 Points

NUnit is automate testing tool design for


A. All language in Net Framework

B. VB.NET Only

C. C# Only

D. J# Only

Question 20 of 20 5.0/ 5.0 Points

Which is the valid test case naming onvention?

A. Public void TestAddUsers_ExceptionThrow()

B. Public void TestAddUser_InputUserWithIDIsExisting_ExceptionThrow()

C. Public void TestAddUsers

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy