Sie sind auf Seite 1von 38

Part 1 of 2 - Part 1

Question 1 of 20

35.0/ 50.0 Points


5.0/ 5.0 Points

HTML Tags are case sensitive.


True
False

Question 2 of 20

5.0/ 5.0 Points

What is extension of html file ?


A. xhtml

B. html

C. xml

Question 3 of 20

5.0/ 5.0 Points

Which of the following tags are related to Table in HTML ?


A. <table> <row> <column>

B. <table> <head> <body>

C. <table> <header> <footer>

D. <table> <tr> <td>

Question 4 of 20

Text within <STRONG> </STRONG> tag is displayed as ________


A. list

5.0/ 5.0 Points

B. italic

C. indented

D. bold

Question 5 of 20

5.0/ 5.0 Points

What is an ISP?
A. Internet System Protocol

B. Internal System Program

C. Internet Service Provider

D. None of the above

Question 6 of 20

0.0/ 5.0 Points

Which of the following is an attribute of <Table> tag?


A. LINK

B. CELLPADDING

C. BOLD

D. SRC

Question 7 of 20

0.0/ 5.0 Points

A table is divided into rows (with the (1) tag), and each row is divided into data cells (with the

(2) tag). A (3) tag can contain text, links, images, lists, forms, other tables
A. "(1): <tr>
(2): <td>
(3): <tr>"
B. "(1): <td>
(2): <tr>
(3): <td>"
C. "(1): <td>
(2): <td>
(3): <tr>"
D. "(1): <tr>
(2): <td>
(3): <td>"
Question 8 of 20

5.0/ 5.0 Points

What is the correct HTML for creating a hyperlink?


A. <a href="http://www.example.com">example</a>

B. <a>B</a>

C. <a name="">A</a>

D. <a url="http://www.example.com">example</a>

Question 9 of 20

Which is true to change the text color to red?


A. <BODY BGCOLOR=RED>

5.0/ 5.0 Points

B. <BODY TEXT=RED>

C. <BODY COLOR=RED>

D. none of the above

Question 10 of 20

0.0/ 5.0 Points

Which of the following is correct to set Black color as Background of page?


A. <body bgcolor = #000000>

B. <body background = #000000>

C. <body Background color = #000000>

D. All of Above

Part 2 of 2 - Part 2
Question 11 of 20

35.0/ 50.0 Points


0.0/ 5.0 Points

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


A. css

B. text/style

C. style

D. script

Question 12 of 20

0.0/ 5.0 Points

Which of the following is correct to set Black color as Background of page?


A. <body bgcolor = #000000>

B. <body background = #000000>

C. <body Background color = #000000>

D. All of Above

Question 13 of 20

5.0/ 5.0 Points

To define the space between the element's border and content, you use the padding property, but
are you allowed to use negative values?
A. list-style-type: square

B. list-type: square

C. style-list: square

D. type: square

Question 14 of 20

What is the correct CSS syntax for making all the <span> elements bold?
A. span {text-size:bold}

B. span {font-weight:bold}

C. <span style="text-size:bold">

0.0/ 5.0 Points

D. <span style="font-size:bold">

Question 15 of 20

5.0/ 5.0 Points

How do you change the font of an element?


A. f:

B. font-family:

C. font-style:

D. font-face:

Question 16 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. Blue

B. Green

C. Red

D. #FF00FF

Question 17 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>
Guess in which color link will be displayed if user has not clicked on any of the link before.
A. #0000FF

B. #FF00FF

C. #FF0000

D. #00FF00

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. In the <body> section

B. At the top of the document

C. In the <head> section

D. In the <body> section

Question 19 of 20

5.0/ 5.0 Points

Which is the correct CSS syntax?


A. {body:color=black(body}

B. body {color: black}

C. "{body;color:black}"

D. body:color=black

Question 20 of 20

5.0/ 5.0 Points

Which of the following are true?


A.The <body> element defines the body of the HTML document.

B.The <p> element defines a paragraph in the HTML document.

C.<br> is an empty element without a closing tag

D.HTML tags are case sensitive

Question 1 of 20

5.0/ 5.0 Points

How do you make it so that my web page is just one solid color in the background without using
an image file?

A. <BODY BACKGROUND="white">

B. <BODY BACKGROUND-COLOR="white">

C. <BODY BGCOLOR="white">

Question 2 of 20

5.0/ 5.0 Points

Which is true to change the text color to red?


A. <BODY BGCOLOR=RED>

B. <BODY TEXT=RED>

C. <BODY COLOR=RED>

D. none of the above

Question 3 of 20

0.0/ 5.0 Points

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


A. <style src="mainstyle.css">

B. <stylesheet>mainstyle.css</stylesheet>

C. <link url="stylesheet" type="text/css" href="mainstyle.css">

D. <link rel="stylesheet" type="text/css" href="mainstyle.css">

Question 4 of 20

Is it possible to insert a table within another table?

0.0/ 5.0 Points

A. Yes, but there must be exactly 2 rows and 2 columns in first table.

B. Yes, but there must be no border in second table.


C. No, its not possible.

D. Yes, table can be inserted into cell of another table.

Question 5 of 20

5.0/ 5.0 Points

The error message displayed when the page is not found at the correct location.
A. 550

B. 404

C. 440

D. 505

Question 6 of 20

5.0/ 5.0 Points

Which of the following path is supported by HTML?


A. Defererenced

B. Absolute and Relative


C. Relative

Question 7 of 20

5.0/ 5.0 Points

A table is divided into rows (with the (1) tag), and each row is divided into data cells (with the
(2) tag). A (3) tag can contain text, links, images, lists, forms, other tables

A. "(1): <tr>
(2): <td>
(3): <tr>"
B. "(1): <td>
(2): <tr>
(3): <td>"
C. "(1): <td>
(2): <td>
(3): <tr>"
D. "(1): <tr>
(2): <td>
(3): <td>"
Question 8 of 20

5.0/ 5.0 Points

H1 is the smallest header tag.


True
False

Question 9 of 20

_______are the HTML codes that control the apearance of the document contents
A. Properties

B. Codas

C. Slashes

D. Tags

5.0/ 5.0 Points

Question 10 of 20

5.0/ 5.0 Points

Which of the following is correct to set Black color as Background of page?


A. <body bgcolor = #000000>

B. <body background = #000000>

C. <body Background color = #000000>

D. All of Above

Part 2 of 2 - Part 2
Question 11 of 20

40.0/ 50.0 Points


5.0/ 5.0 Points

Fonts such as Times New Roman which have spaces in between must be wrapped inside
______.
A. Round Brackets

B. Triangular Brackets

C. Quotation Mark

D. Curly Braces

Question 12 of 20

How do you add a background color for all "<h1>" elements?


A. all.h1 {background-color:#FFFFFF}

5.0/ 5.0 Points

B. all.h1 {background-color:#FFFFFF}

C. h1 {background-color:#FFFFFF}

Question 13 of 20

0.0/ 5.0 Points

Which of the following is a two sided tag?


A. LI

B. DD

C. DT

D. DL

Question 14 of 20

5.0/ 5.0 Points

To define the space between the element's border and content, you use the padding property, but
are you allowed to use negative values?
A. list-style-type: square

B. list-type: square

C. style-list: square

D. type: square

Question 15 of 20

Following CSS code is written <style>


a:link {
color:#FF0000;

5.0/ 5.0 Points

}
a:visited {
color:#00FF00;
}
a:hover {
color:#FF00FF;
}
a:active {
color:#0000FF;
}
</style>
Guess in which color link will be displayed if user has not clicked on any of the link before.
A. #0000FF

B. #FF00FF

C. #FF0000

D. #00FF00

Question 16 of 20

5.0/ 5.0 Points

Which HTML attribute is used to define inline styles?


A. style

B. class

C. styles

D. font

Question 17 of 20

Which of the following tags below are used for a multi-line text input control?

5.0/ 5.0 Points

A. textml tag

B. text tag

C. textarea tag

D. Both b and c above

Question 18 of 20

0.0/ 5.0 Points

Which property is used to change the background color?


A. background-color:

B. bgcolor:

C. color:

Question 19 of 20

5.0/ 5.0 Points

Which is the correct CSS syntax?


A. {body:color=black(body}

B. body {color: black}

C. "{body;color:black}"

D. body:color=black

Question 20 of 20

Which is the correct CSS syntax?

5.0/ 5.0 Points

A. {body;color:black}

B. body:color=black

C. body {color: black}

D. {body:color=black(body}">

Part 1 of 2 - Part 1
Question 1 of 20

30.0/ 50.0 Points


0.0/ 5.0 Points

What is the tag for an inline frame?


A. frame

B. Inframe

C. Iframe

D. inlineframe

Question 2 of 20

Intrepret this statement: <strong>Michelle</strong>


A. It highlights Michelle as being strong

B. It will print out Michelle in bold font

C. It makes Michelle strong

5.0/ 5.0 Points

Question 3 of 20

5.0/ 5.0 Points

Which of following HTML Tag will inserting a line break?


A. <lb />

B. <break />

C. <p />

D. <br />

Question 4 of 20

5.0/ 5.0 Points

What is the correct HTML tag for inserting a line break?


A. <lb />

B. <br />

C. <break />

Question 5 of 20

5.0/ 5.0 Points

If you want to increase the font size by 2 relative to the surrounding text, you enter +2 in the
tag.
True
False

Question 6 of 20

How to set a picture as a background web page?

0.0/ 5.0 Points

A. <background= backpic.gif>

B. <background image= backpic.gif>

C. <body background image= backpic.gif>

D. <body background= backpic.gif>

Question 7 of 20

5.0/ 5.0 Points

Can a data cell contain images?


True
False

Question 8 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 src= www.ghumti.com/ganesh.jpg alt= This is me />

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

Question 9 of 20

<TD> </TD> tag is used for ________


A. Table heading

0.0/ 5.0 Points

B. Table Records

C. Table row

D. none of the above

Question 10 of 20

0.0/ 5.0 Points

With regards to e-mail addresses:


A. they must always contain an @ symbol

B. they can never contain spaces

C. they are case-insensitive

D. all of the above

Part 2 of 2 - Part 2
Question 11 of 20

35.0/ 50.0 Points


0.0/ 5.0 Points

Multiple font faces are separated by __________ .


A. Dot

B. Slash

C. Semicolon

D. Comma

Question 12 of 20

5.0/ 5.0 Points

How do you display hyperlinks without an underline?


A. a {text-decoration:no underline}

B. a {text-decoration:none}

C. a {underline:none}

D. a {decoration:no underline}

Question 13 of 20

5.0/ 5.0 Points

Which of the following is correct to align H1 tag to Right Alignment


A. H1 cannot make Right Alignment

B. <h1 tag align = right> </h1>

C. <h1 align = right> </h1>

D. <h1 alignment = right> </h1>

Question 14 of 20

Which HTML attribute is used to define inline styles?


A. style

B. text

C. font

5.0/ 5.0 Points

D. css

Question 15 of 20

5.0/ 5.0 Points

What is the correct CSS syntax for making all the <span> elements bold?
A. span {text-size:bold}

B. span {font-weight:bold}

C. <span style="text-size:bold">

D. <span style="font-size:bold">

Question 16 of 20

0.0/ 5.0 Points

Currently clicking and holding down the mouse button on represents ___________ pseudo
class.
A. a:active

B. a:visited

C. a:hover

D. a:link

Question 17 of 20

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


A. <script>

5.0/ 5.0 Points

B. <stylesheet>

C. <css>

D. <style>

Question 18 of 20

0.0/ 5.0 Points

Which property is used to specify typefaces ?


A. font-type

B. font-name

C. font-face

D. font-family

Question 19 of 20

5.0/ 5.0 Points

How do you add a background color for all "<h1>" elements?


A. all.h1 {background-color:#FFFFFF}

B. all.h1 {background-color:#FFFFFF}

C. h1 {background-color:#FFFFFF}

Question 20 of 20

How do you change the left margin of an element?


A. margin:

5.0/ 5.0 Points

B. text-indent:

C. margin-left:

D. left-margin:

Question 1 of 20

5.0/ 5.0 Points

What is the correct JavaScript syntax for opening a new window called "window5" ?
A. open.newwindow("http://www.ex-designz.net","window5")

B. new("http://www.ex-designz.net","window5")

C. window.open("http://www.ex-designz.net","window5")

D. new.window("http://www.ex-designz.net","window5")

Question 2 of 20

5.0/ 5.0 Points

You define an JavaScript array using


A. var new Array() = myarray;

B. var myarray = array new;

C. var new array = myarray;

D. var myarray = new Array();

Question 3 of 20

What is the output of following JavaScript code?


<script type=""text/javascript"">

0.0/ 5.0 Points

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 / Wed

B. Tue / Thu

C. Thu / Tue

D. Wed / Thu

Question 4 of 20

5.0/ 5.0 Points

Which of the following is incorrect regarding Logical styles?


A. Keyboard looks like teletype

B. Code looks like teletype

C. Sample looks like teletype

D. Variable looks like teletype

Question 5 of 20

What is the correct way to write a JavaScript array?

5.0/ 5.0 Points

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

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

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

Question 6 of 20

5.0/ 5.0 Points

How do you write a conditional statement for executing some statements only if "i" is equal to
5?
A. if i=5

B. if i==5 then

C. if i=5 then

D. if (i==5)

Question 7 of 20

1.67/ 5.0 Points

3-Tier Architecture includes:


A.DATA/EIS TIER

B.PRESENTATION TIER

C."MIDDLE TIER/
APPLICATION TIER"
D.CLIENT TIER

Question 8 of 20

0.0/ 5.0 Points

What is the correct JavaScript syntax to write "Hello World"?


A. echo("Hello World")

B. response.write("Hello World")

C. ("Hello World")

D. document.write("Hello World")

Question 9 of 20

0.0/ 5.0 Points

How do you find the largest number of 6 and 8?


A. ceil(6,8)

B. Math.ceil(6,8)

C. Math.max(6,8)

D. top(6,8)

Question 10 of 20

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. FPT Software

5.0/ 5.0 Points

B. Software

C. Output Error

D. " Software
(with include space)"
Part 2 of 3 - Part 2
Question 11 of 20

20.0/ 20.0 Points


5.0/ 5.0 Points

AJAX Stands for:


A. Another Java Abstraction for X-Windows

B. Another Java and XML Library

C. Abstract JSON and XML

D. Asynchronous Javascript and XML

Question 12 of 20

What is AJAX ?
A. is a program

B. None

C. is a football club name

D. is a country name

5.0/ 5.0 Points

5.0/ 5.0 Points

Question 13 of 20

What does the XMLHttpRequest object accomplish in Ajax?


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

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

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

D. It provides the ability to asynchronously exchange data between Web browsers and a
Web server.
Question 14 of 20

5.0/ 5.0 Points

AJAX based on ______ .


A. JavaScript and HTTP requests

B. JavaScript and XML

C. JavaScript and Java

D. VBScript and XML

Part 3 of 3 - Part 3
Question 15 of 20

Which of the following jQuery syntax uses the class selector


A. $(.temp)

B. $(#temp)

25.0/ 30.0 Points


0.0/ 5.0 Points

C. $(class)

D. $(temp).class

Question 16 of 20

5.0/ 5.0 Points

Is it possible to use jQuery together with AJAX?


True
False

Question 17 of 20

5.0/ 5.0 Points

With jQuery, look at the following selector: $("div.intro"). What does it select?
A. The first div element with id="intro"

B. All div elements with class="intro"

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

D. All div elements with id="intro"

Question 18 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 19 of 20

5.0/ 5.0 Points

What does the <noscript> tag do?


A. Enclose text to be displayed by non-JavaScript browsers.

B. Prevents scripts on the page from executing.

C. Describes certain low-budget movies.

D. None of the above

Question 20 of 20

5.0/ 5.0 Points

$(selector).action() What does this jquery syntax format do?


A. Perform an action on an element and then select it

B. Perform selection and ignore the action

C. .Select an HTML element and perform some actin on it

D. Select an HTML element and then use HTML to act on it

Question 1 of 20

Which of the following statement is false for the tag?


A. Can include dynamically generated output.

B. Provides benefit of automatic recompilation.

C. It offers option of sharing local variables and better run time efficiency

0.0/ 5.0 Points

D. Can be used to incorporate contents from static documents

Question 2 of 20

0.0/ 5.0 Points

All the ___________ data is kept at the application server ___________ data is kept at the web
server
A. Servlet, HTML

B. static, dynamic

C. HTML, Servlet

D. dynamic, static

Question 3 of 20

5.0/ 5.0 Points

_______ is the process of creating a copy of an object suitable for passing to another object
A. Serialization

B. Cookies

C. Sockets

D. Reflection

Question 4 of 20

Which of the following are characteristics of JSP actions?


i) The tags are case-sensitive
ii) Actions can access, modify and create objects on the current server pages
iii) Tags must not have a closing delimiter
iv) new actions cannot be built

5.0/ 5.0 Points

A. iii-iv

B. i-ii

C. ii-iii

D. ii-iv

Question 5 of 20

1.67/ 5.0 Points

The three basic bean tags used in JavaServer Pages are


A.Jsp:useBean

B.Jsp:getProperty

C.Jsp:ReuseBean

D.Jsp:setProperty

Question 6 of 20

Which of the following statements is true about JSP tag library?


A. It defines the standard tag that works the same everywhere

B. It is a single library and we can use it in multiple jsp containers

C. It has support for the common structural tasks like iteration and condition.

5.0/ 5.0 Points

D. All of the above

Question 7 of 20

5.0/ 5.0 Points

Which tag in the jsp is used to define the error page?


A. location

B. exception-type

C. error-page

D. None of the above

Question 8 of 20

0.0/ 5.0 Points

Which of the following tools can be used to stress test the Servlet
1. JMeter from Apache
2. Mercury LoadRunner

A. 1 only

B. 2 only

C. 1,2 both

D. Neither 1 nor 2.

Question 9 of 20

Which of the tag contains a code fragment valid in the page scripting language?
A. <%-- comment -- %>

0.0/ 5.0 Points

B. <% code fragment %>

C. <%! Declarations %>

D. <%= expressions %>

Question 10 of 20

5.0/ 5.0 Points

Which of the tag is used to show the comments in the JSP page?
A. <%-- comment -- %>

B. <%! Declarations %>

C. <% code fragment %>

D. <%= expressions %>

Part 2 of 2 - Part 2
Question 11 of 20

Servlet mapping defines


A. an association between a URL pattern and a servlet

B. an association between a URL pattern and a request page

C. an association between a URL pattern and a response page

D. All of the above

30.0/ 50.0 Points


0.0/ 5.0 Points

Question 12 of 20

5.0/ 5.0 Points

How many ServletContext objects are available for an entire web application?
A. One each per response

B. Only one

C. One each per request

D. One each per servlet

Question 13 of 20

5.0/ 5.0 Points

The method forward(request,response) will


A. return back to the same method from where the forward was invoked

B. not return back to the same method from where the forward was invoked and the web
pages navigation continues
C. Both A and B are correct

D. None of the above

Question 14 of 20

To get the servlet environment information


A. ServletContext object is used

B. ServletConfig object is used

C. ServletException object is used

5.0/ 5.0 Points

D. ServletContainer object is used

Question 15 of 20

5.0/ 5.0 Points

The major difference between servlet and CGI is


A. Servlets are thread based and CGI is process based

B. Servlets executes slower compared to CGI

C. Servlet has no platform specific API, where as CGI has

D. All of the above

Question 16 of 20

0.0/ 5.0 Points

What is the disadvantage of Type-4 Native-Protocol Driver?


A. It does not support to read MySQL data.

B. The driver converts JDBC calls into vendor-specific database protocol

C. At client side, a separate driver is needed for each database.

D. Type-4 driver is entirely written in Java

Question 17 of 20

A deployment descriptor describes


A. web component response settings

0.0/ 5.0 Points

B. web component settings

C. web component request objects

D. All of the above

Question 18 of 20

0.0/ 5.0 Points

The values of <servlet-name> and <servlet-class> in web.xml file


A. must be same

B. must not be same

C. may be same

D. None of the above

Question 19 of 20

5.0/ 5.0 Points

A servlet maintain session in


A. Servlet response heap

B. Servlet context

C. Servlet container

D. Servlet request heap

Question 20 of 20

The life cycle of a servlet is managed by

5.0/ 5.0 Points

A. servlet context

B. servlet container

C. the supporting protocol (such as http or https)

D. all of the above

Das könnte Ihnen auch gefallen