wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ExertnalLabExam_Web_Programming_CSE-1

Total questions: 20

Worksheet time: 11mins

Name
Class
Date
1.

Difference between XML and HTML?

a)

HTML is used for exchanging data, XML is not

b)

XML is used for exchanging data, HTML is not

c)

HTML can have user defined tags, XML cannot

2.

to make a comment in HTML you use

a)

<!-- -->

b)

//

c)

/*....*/

d)

#

3.

Where in an HTML document is the correct place to refer to an external style sheet (such as style.css)?

a)

In the <head> section

b)

In the <body> section

c)

At the end of the document

d)

In the <css> section

4.

Select the rule set to make all the text in your web page blue and centered.

a)

p {

color: blue;

}

b)

body {

text-align: left;

color: blue;

}

c)

body {

text-align: center;

color: blue;

}

d)

p {

text-align: center;

color: blue;

}

5.

What is the name of the CSS selector to style the element with id named car?

a)

.car

b)

$car

c)

#car

d)

car

6.

Caption Tag in HTML?

a)

Is used to display the Title for the table at the bottom

b)

Is used to display the Title for the table at the top

c)

Both

d)

None

7.

Which of the following is not an implicit object in jsp?

a)

exception

b)

data

c)

out

d)

context

8.

The code inside scriplet will be placed in _____ method of jsp life cycle.

a)

jsp_init()

b)

jsp_service()

c)

_jspService()

d)

httpService()

9.

Which method is used to register a jdbc driver?

a)

Class.ForName()

b)

Class.forName()

c)

class.forName()

d)

class.ForName()

10.

Which packages contain the JDBC classes?

a)

java.jdbc and javax.jdbc

b)

java.jdbc and java.jdbc.sql

c)

java.sql and javax.sql

d)

java.rdb and javax.rdb

11.

Which of the following is correct about PreparedStatement?

a)

Prepared statements offer better performance, as they are pre-compiled.

b)

Prepared statements reuse the same execution plan for different arguments rather than creating a new execution plan every time.

c)

Prepared statements use bind arguments, which are sent to the database engine.

d)

All of the above.

12.

To display writing on the screen you must include this direction;

a)

Document Write

b)

document.write( )

c)

documentWrite

d)

document.write

13.

$colours = array("black, blue, Red, Green") - How do I access "Red" ?

a)

$colours[3];

b)

colours[3];

c)

$colours[2];

d)

colours[2];

14.

How do you get information from a form that is submitted using the "get" method?

a)

How do you get information from a form that is submitted using the "get" method?

b)

$_GET[];

c)

Request.Form;

15.

How can we get the number of records or rows in a table?

a)

Using COUNT

b)

Using NUM

c)

Using NUMBER

d)

Both a and c above

16.

How many root elements can we have in XML?

a)

1

b)

3

c)

2

d)

0

17.

Which statement is true?

a)

XML tags are case sensitive

b)

XML documents must have a root tag

c)

XML documents must have a root tag

d)

ALL the given options

18.

XML documents must have a root tag

a)

my Element

b)

#myElement

c)

_myElement

19.

What does a class do in CSS?

a)

adds color to words

b)

adds style to specific element

c)

adds style to a whole page

d)

adds a lot more work

20.

Application is instance of which class?

a)

javax.servlet.Application

b)

javax.servlet.ServletContext

c)

c) javax.servlet.Context

d)

javax.servlet.HttpContext