wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

IMSD_Week-2_CSE-1

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which attribute of <table> is used to merge two or more columns?

a)

rowspan

b)

colspan

c)

merge

d)

cellspan

2.

What will be the output of this code?

<table border="1">

<tr>

<td rowspan="2">A</td>

<td>B</td>

</tr>

<tr>

<td>C</td>

</tr>

</table>

a)

"A" occupies two rows, "B" and "C" next to it

b)

"A" and "B" on same line, "C" below

c)

All three cells in one row

d)

Error

3.

Which tag defines a table caption?

a)

<thead>

b)

<caption>

c)

<title>

d)

<summary>

4.

Identify the correct nesting order for table elements.

a)

<table><tr><td></td></tr></table>

b)

<table><td><tr></tr></td></table>

c)

<tr><table><td></td></table></tr>

d)

<td><tr><table></table></tr></td>

5.

In HTML5, which element groups header content in a table?

a)

<thead>

b)

<header>

c)

<th>

d)

<tgroup>

6.

What will be displayed by this code?

<form>

<input type="text" name="username" value="Guest" readonly>

</form>

a)

Editable textbox with “Guest”

b)

Non-editable textbox with “Guest”

c)

Hidden field

d)

Textarea

7.

Which attribute ensures a form field must be filled before submitting?

a)

mandatory

b)

validate

c)

required

d)

mustfill

8.

Which HTML tag is used to group related form fields?

a)

<legend>

b)

<group>

c)

<section>

d)

<fieldset>

9.

Which tag creates a dropdown menu?

a)

<dropdown>

b)

<select>

c)

<menu>

d)

<list>

10.

What does this code do?

<iframe src="https://www.example.com" width="400" height="200"></iframe>

a)

Creates a link to the site

b)

Opens site in new window

c)

Displays example.com webpage inside current page

d)

Displays a blank box