Font size
WorksheetsExertnalLabExam_Web_Programming_CSE-1
Total questions: 20
Worksheet time: 11mins
Difference between XML and HTML?
HTML is used for exchanging data, XML is not
XML is used for exchanging data, HTML is not
HTML can have user defined tags, XML cannot
to make a comment in HTML you use
<!-- -->
//
/*....*/
#
Where in an HTML document is the correct place to refer to an external style sheet (such as style.css)?
In the <head> section
In the <body> section
At the end of the document
In the <css> section
Select the rule set to make all the text in your web page blue and centered.
p {
color: blue;
}
body {
text-align: left;
color: blue;
}
body {
text-align: center;
color: blue;
}
p {
text-align: center;
color: blue;
}
What is the name of the CSS selector to style the element with id named car?
.car
$car
#car
car
Caption Tag in HTML?
Is used to display the Title for the table at the bottom
Is used to display the Title for the table at the top
Both
None
Which of the following is not an implicit object in jsp?
exception
data
out
context
The code inside scriplet will be placed in _____ method of jsp life cycle.
jsp_init()
jsp_service()
_jspService()
httpService()
Which method is used to register a jdbc driver?
Class.ForName()
Class.forName()
class.forName()
class.ForName()
Which packages contain the JDBC classes?
java.jdbc and javax.jdbc
java.jdbc and java.jdbc.sql
java.sql and javax.sql
java.rdb and javax.rdb
Which of the following is correct about PreparedStatement?
Prepared statements offer better performance, as they are pre-compiled.
Prepared statements reuse the same execution plan for different arguments rather than creating a new execution plan every time.
Prepared statements use bind arguments, which are sent to the database engine.
All of the above.
To display writing on the screen you must include this direction;
Document Write
document.write( )
documentWrite
document.write
$colours = array("black, blue, Red, Green") - How do I access "Red" ?
$colours[3];
colours[3];
$colours[2];
colours[2];
How do you get information from a form that is submitted using the "get" method?
How do you get information from a form that is submitted using the "get" method?
$_GET[];
Request.Form;
How can we get the number of records or rows in a table?
Using COUNT
Using NUM
Using NUMBER
Both a and c above
How many root elements can we have in XML?
1
3
2
0
Which statement is true?
XML tags are case sensitive
XML documents must have a root tag
XML documents must have a root tag
ALL the given options
XML documents must have a root tag
my Element
#myElement
_myElement
What does a class do in CSS?
adds color to words
adds style to specific element
adds style to a whole page
adds a lot more work
Application is instance of which class?
javax.servlet.Application
javax.servlet.ServletContext
c) javax.servlet.Context
javax.servlet.HttpContext
