wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Web Technologies(A6602)

Total questions: 20

Worksheet time: 24mins

Name
Class
Date
1.

Which instructs a Web browser on how to format and process a hypertext document?

a)

Code

b)

Document

c)

Tags

d)

parser

2.

To run HTML code we need to install software seperatly

a)

True

b)

False

3.

To add green button using bootstrap the following class is used

a)

btn-default

b)

btn-info

c)

btn-green

d)

btn-success

4.

In the SAX parser backward navigation is not possible.

a)

True

b)

False

5.

______________ returns the value of a field whose id is 'number' in java script.

a)

getElementById('number')

b)

getElementById("number").value

c)

getElementByValue("number").value

d)

getElementByField("number").value

6.

comments in java script can be specified using

a)

<!-- comment -->

b)

<%-- comment --%>

c)

/*-- comment --*/

d)

#comment#

7.

Which event occurs when the user clicks on an HTML element?

a)

onmouseclick  

b)

onclick

c)

onchange

d)

onmouseover

8.

which jdbc driver is the JDBC-ODBC Bridge

a)

Type 1

b)

Type 2

c)

Type 3

d)

Type 4

9.

IF you want to work with stored procedure with output parameters which of the following object should be used to call the procedure

a)

PreparedStatement()

b)

Statement()

c)

CallableStatement()

d)

ExecuteUpdate()

10.

which of the following are session tracking techniques

a)

URL rewriting

b)

using session object

c)

coockies

d)

Hidden form fields

e)

All of the above

11.

in web.xml servlet mapping used as

a)

An association between url pattern and servlet

b)

An association between class and servlet

c)

An association between url pattern and parameters

d)

An association between servlet and session

12.

init parameter in web.xml can be accessed using____________object

a)

ServletContext

b)

ServletInIt

c)

ServletConfig

d)

GetIniT

13.

function myFunction(a,b) {

var b=a;

return b * b;

}

if the above function called as:

var x = myFunction(4,5); what is the value of x?

a)

25

b)

9

c)

1

d)

16

14.

What is the output of the following code:

<%session.setAttribute("name","IT");%>

<%=session.getAttribute("name")%>

a)

name

b)

Value Error

c)

IT

d)

None

15.

default scope of an attribute in JSP is_____________

a)

application

b)

request

c)

page

d)

session

16.

Which is not an directive element of JSP

a)

page

b)

include

c)

taglib

d)

usebean

17.

s1="swap"

$a=21

$b=22

echo s1."(".a.", ".b.")";

the above code prints

a)

21,22

b)

22,21

c)

swap(21,22)

d)

swap(22,21)

18.

<?php  

 $x="Swapna";  

$$x="Shalini";    

echo "$x is ".$swapna." friend";  

?>  

a)

Shalini is Swapna friend

b)

Swapna is Swapna friend

c)

Swapna is Shalini friend

d)

Shalini is Shalini friend

19.

$cars=array("BMW"=>"GERMANY","FERRARI"=>"ITALY","TATA"=>"INDIA","TOYOTA","S.KOREA");

echo $cars["INDIA"]

The above code prints

a)

GERMANY

b)

ITALY

c)

INDIA

d)

NONE

20.

mysqli_query($conn, $sql_cmd) is used to______________

a)

create table

b)

delete a row

c)

update row

d)

all