Cuoi PDF
Cuoi PDF
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
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 ?
Question 4 of 20
5.0/ 5.0 Points
What is the correct HTML for making a checkbox?
B. <checkbox>
C. <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?
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
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?
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
A.
B.
C.
D.
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
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
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>
Question 6 of 20
5.0/ 5.0 Points
What is an ISP?
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
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;
}
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
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?
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:
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
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
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
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
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?
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
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
Question 17 of 20
0.0/ 5.0 Points
What is AJAX ?
A. None
B. is a country name
C. is a program
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.
Question 19 of 20
5.0/ 5.0 Points
AJAX based on ______ .
Question 20 of 20
5.0/ 5.0 Points
AJAX Stands for:
A. Another Java Abstraction for X-Windows
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()
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"?
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
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?
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
Question 11 of 20
5.0/ 5.0 Points
With jQuery, look at the following selector: $("div.intro"). What does it select?
Question 12 of 20
5.0/ 5.0 Points
$(function(){});
What does this piece of jQuery do?
Question 13 of 20
0.0/ 5.0 Points
With jQuery, look at the following selector: $("div"). What does it select?
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
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");
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.
Question 18 of 20
5.0/ 5.0 Points
AJAX Stands for:
A. Another Java Abstraction for X-Windows
Question 19 of 20
5.0/ 5.0 Points
What is AJAX ?
A. None
B. is a country name
C. is a program
Question 20 of 20
5.0/ 5.0 Points
AJAX based on ______ .
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
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
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
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
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()?
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
C. Assemblyname
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
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:
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
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
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?
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?
Question 18 of 20
5.0/ 5.0 Points
What is a connection object?
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?
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
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
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
Question 14 of 20
0.0/ 5.0 Points
The "ReSet" method of Dataset is used to :
A. a
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?
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
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
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]);
}
}
}
}
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?
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
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
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
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 :
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 ?
B. OLEDB
C. ODBC
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 ?
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.
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;
Question 11 of 20
5.0/ 5.0 Points
Which is the valid test case naming onvention?
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.
"
Question 17 of 20
0.0/ 5.0 Points
Select mock object implementation procedure
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
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,
D. Create a test Class, Add Reference to nunit.dll, add reference to dll contains funtion
A.Detached
B.Deleted
C.Modified
D.Added
A.Read-only
B.Faster access
C.Forward only
D.Connected mode
True
False
A. ExecuteNonQuery()
B. ExecuteReader()
C. ExecuteScalar()
D. ExecuteXmlReader()
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();
Which object of ADO.NET has the best performance for retrieving the data
A. DataReader
B. Data Provider
C. Dataadapter
D. DataSet
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.
A.Read-only
B.Slower access
C.Read-write access
D.Disconnected
True
False
B. UpdateBatchSize
C. BatchSizeUpdate
D. UpdateSize
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
A. BufferStream
B. XML Stream
C. BinaryStream
D. MemoryStream
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
"
_____ is an object which implements and interface. This _____ return the expected
value to verify out object undertest
A. Fakes
B. Stub
C. Mock Object
A. Complie a test case class to dll, Run NUnit Tool, Open DLL Contains test
B. Complie a test case class to dll, Run NUnit Tool, Open DLL Contains test
D. Complie a test case class to dll, Run NUnit Tool, Open DLL Contains test
contains funtion which you want to test to test class location, restructure test class
following NUnit Framework
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
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
B. VB.NET Only
C. C# Only
D. J# Only