Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

MIDTERM EXAM IN WEB DEV 101

Total questions: 40

Worksheet time: 20mins

Name
Class
Date
1.

The action attribute of a form

a)

tells how the information should be sent to the server.

b)

tells what web page or script will process the form.

c)

lets the user select from a set of options

d)

is a button command that processes the form

2.

The method attribute of a form

a)

tells which web page or script should process the form

b)

lets a user select from a set of options

c)

tells how the form data should be sent to the server

d)

verifies whether an email address is valid

3.

When retrieving information, the ___ method will work.

a)

search

b)

put

c)

get

d)

post

4.

The select field in a form

a)

is used inside an input element.

b)

provides users with a set of options to choose from.

c)

auto-completes as the user types data.

d)

cannot have a default option setting.

5.

In a form, <input type="text" ...>

a)

cannot be set to "required"

b)

is not valid

c)

will accept multiple lines of characters.

d)

will accept only a single line of characters.

6.

To help users know what to put in field, use

a)

<input name="firstname">

b)

<label for="firstname">

<input type="text" id="firstname>

c)

<input type="text" id="firstname" name="label">

d)

<input label="First Name" type="text">

7.

An Email address field in a form

a)

<input type="email" id="email">

b)

<input type="text" id="email">

c)

<label for="email">

<email type="text" id="email">

d)

<input text="email" id="email">

8.

In a form, a drop-down list of options

a)

begins with a select tag followed by a list of option tags.

b)

begins with an option tag followed by a list of select tags.

c)

begins with a select tag followed by a list of datalist tags.

d)

begins with a datalist tag followed by a let of option tags.

9.

A comment field for multiple lines of text

a)

<label for="comments">

<comments type="textarea" id="comments">

b)

<label for="textarea">

<input type="textarea" id="textarea">

c)

<input type="textarea" rows="6" cols="50">

d)

<textarea rows="6" cols="50"></textarea>

10.

A button tag

a)

<input type="button" value="Name on Button"></input>

b)

<input type="button">Name on Button</input>

c)

<button name="abc" onclick="">

d)

<button name="abc" onclick="">Name on Button</button>

11.

To submit a form for processing, use

a)

<input type="button" method="submit">

b)

<button type="submit"></button>

c)

<input type="submit">Submit</input>

d)

<input type="submit" value="Submit">

12.

An organized collection of data, generally stored and accessed electronically from a computer system?

a)

Information System

b)

Information Management

c)

Database

d)

Database Management Systems

13.
A database application can perform which of the following activities?
a)
Add records
b)
Display / read records
c)
Update records
d)
All of the above
14.
A relational database consists of a collection of
a)
Field
b)
Record
c)
Table
d)
Keys
15.
SQL stands for _____.
a)
structured query language
b)
sustainable query language
c)
structured question language
d)
sustainable question language
16.

What is a table?

a)

One type or one piece of information

b)

All the data about a person or an object

c)

A collection of all the database’s fields and records

d)

A collection of data or information that has been

stored in an organised way

17.

What is a field?

a)

One type or one piece of information

b)

All the data about a person or an object

c)

A collection of all the database’s fields and records

d)

A collection of data or information that has been

stored in an organised way

18.

What is a record?

a)

One type or one piece of information

b)

All the data about a person or an object

c)

A collection of all the database’s fields and records

d)

A collection of data or information that has been

stored in an organised way

19.

What datatype should you choose to use for a unique field like an emirate ID card '1429239201' in a database?

a)

Text

b)

Number

c)

Date/Time

d)

Currency

e)

Yes/No

20.

In a Database table, Records appear as ______________

a)

a row

b)

a column

c)

a form

d)

a cell

21.

How many records do we have in this table?

a)

12

b)

1

c)

5

d)

3

22.

SELECT * FROM employee WHERE salary>10000 AND dept_id=101;

Which of the following fields are displayed as output?

a)

Salary, dept_id

b)

Employee

c)

Salary

d)

All the field of employee relation

23.

Which SQL statement is used to extract data from a database?

a)

EXTRACT

b)

OPEN

c)

SELECT

d)

GET

24.

Which SQL statement is used to create a table in a database?

a)

CREATE DB

b)

CREATE DATABASE TABLE

c)

CREATE TABLE

d)

CREATE DATABASE TAB

25.

Which tag below represents a canvas tag?

a)

<can> </can>

b)

<canvas> </canvas>

c)

<cvs> </cvs>

d)

<svg> </svg>

26.

What is the default frame rate of window.requestAnimationFrame() method?

a)

60 fps

b)

30 fps

c)

120 fps

d)

90 fps

27.

What is the unit of measurement for the setTimeout() method?

a)

milliseconds

b)

seconds

c)

nanoseconds

d)

centiseconds

28.

Which of the following method would draws a rectangle in javaScript?

a)

rec(10, 20, 100, 200);

b)

rectangle(10, 20, 100, 200);

c)

rect(10, 20, 100, 200);

d)

ellipse(10, 20, 40, 40);

29.

Which method below will help us create a new shape or line that is not connected to another shape or line?

a)

beginPath()

b)

newPath()

c)

startLine()

d)

newLine()

30.

Which method below make the drawing visible?

a)

stroke()

b)

beginPath()

c)

var ctx = c.getContext("2d");

d)

var c = document.getElementById("myCanvas");

e)

fill()

31.

Which command do you use to change the color of a closed shape to red?

a)

ctx.fillStyle="red";

b)

ctx.fillColor="red";

c)

ctx.strokeStyle="red";

d)

ctx.strokeColor="red";

32.

Before the ctx.stroke() method, which method should you use to completely fill in a close shape with a color?

a)

ctx.fillStyle();

b)

ctx.fill();

c)

ctx.color();

d)

ctx.pour();

33.

The <canvas> element is only a container for graphics?

a)

False

b)

True

34.

Which element does not support form attribute?

a)

input

b)

output

c)

meta

d)

button

35.

What is the name of the location address of the hypertext documents?

a)

A. Uniform Resource Locator

b)

B. Web server

c)

C. File

d)

D. Web address

36.

HTML allows us to use ___ levels of headings

a)

A. Two

b)

B. Three

c)

C. Five

d)

D. Six

37.

____ are ignored by browser

a)

A. Title tag

b)

B. Comments

c)

C. Body section

d)

D. Head section

38.

Which tag is used with JavaScript?

a)

canvas

b)

table

c)

article

d)

footer

39.

What is the correct syntax of doctype in HTML5?

a)

A. <!doctype html>

b)

B. <doctype html!>

c)

C. <doctype html>

d)

D. </doctype html>

40.

Which semantic element of HTML5 is used with JavaScript to output certain thing?

a)

A. <input>

b)

B. <output>

c)

C. <aside>

d)

D. <time>