WorksheetsMIDTERM EXAM IN WEB DEV 101
Total questions: 40
Worksheet time: 20mins
The action attribute of a form
tells how the information should be sent to the server.
tells what web page or script will process the form.
lets the user select from a set of options
is a button command that processes the form
The method attribute of a form
tells which web page or script should process the form
lets a user select from a set of options
tells how the form data should be sent to the server
verifies whether an email address is valid
When retrieving information, the ___ method will work.
search
put
get
post
The select field in a form
is used inside an input element.
provides users with a set of options to choose from.
auto-completes as the user types data.
cannot have a default option setting.
In a form, <input type="text" ...>
cannot be set to "required"
is not valid
will accept multiple lines of characters.
will accept only a single line of characters.
To help users know what to put in field, use
<input name="firstname">
<label for="firstname">
<input type="text" id="firstname>
<input type="text" id="firstname" name="label">
<input label="First Name" type="text">
An Email address field in a form
<input type="email" id="email">
<input type="text" id="email">
<label for="email">
<email type="text" id="email">
<input text="email" id="email">
In a form, a drop-down list of options
begins with a select tag followed by a list of option tags.
begins with an option tag followed by a list of select tags.
begins with a select tag followed by a list of datalist tags.
begins with a datalist tag followed by a let of option tags.
A comment field for multiple lines of text
<label for="comments">
<comments type="textarea" id="comments">
<label for="textarea">
<input type="textarea" id="textarea">
<input type="textarea" rows="6" cols="50">
<textarea rows="6" cols="50"></textarea>
A button tag
<input type="button" value="Name on Button"></input>
<input type="button">Name on Button</input>
<button name="abc" onclick="">
<button name="abc" onclick="">Name on Button</button>
To submit a form for processing, use
<input type="button" method="submit">
<button type="submit"></button>
<input type="submit">Submit</input>
<input type="submit" value="Submit">
An organized collection of data, generally stored and accessed electronically from a computer system?
Information System
Information Management
Database
Database Management Systems
What is a table?
One type or one piece of information
All the data about a person or an object
A collection of all the database’s fields and records
A collection of data or information that has been
stored in an organised way
What is a field?
One type or one piece of information
All the data about a person or an object
A collection of all the database’s fields and records
A collection of data or information that has been
stored in an organised way
What is a record?
One type or one piece of information
All the data about a person or an object
A collection of all the database’s fields and records
A collection of data or information that has been
stored in an organised way
What datatype should you choose to use for a unique field like an emirate ID card '1429239201' in a database?
Text
Number
Date/Time
Currency
Yes/No
In a Database table, Records appear as ______________
a row
a column
a form
a cell
How many records do we have in this table?
12
1
5
3
SELECT * FROM employee WHERE salary>10000 AND dept_id=101;
Which of the following fields are displayed as output?
Salary, dept_id
Employee
Salary
All the field of employee relation
Which SQL statement is used to extract data from a database?
EXTRACT
OPEN
SELECT
GET
Which SQL statement is used to create a table in a database?
CREATE DB
CREATE DATABASE TABLE
CREATE TABLE
CREATE DATABASE TAB
Which tag below represents a canvas tag?
<can> </can>
<canvas> </canvas>
<cvs> </cvs>
<svg> </svg>
What is the default frame rate of window.requestAnimationFrame() method?
60 fps
30 fps
120 fps
90 fps
What is the unit of measurement for the setTimeout() method?
milliseconds
seconds
nanoseconds
centiseconds
Which of the following method would draws a rectangle in javaScript?
rec(10, 20, 100, 200);
rectangle(10, 20, 100, 200);
rect(10, 20, 100, 200);
ellipse(10, 20, 40, 40);
Which method below will help us create a new shape or line that is not connected to another shape or line?
beginPath()
newPath()
startLine()
newLine()
Which method below make the drawing visible?
stroke()
beginPath()
var ctx = c.getContext("2d");
var c = document.getElementById("myCanvas");
fill()
Which command do you use to change the color of a closed shape to red?
ctx.fillStyle="red";
ctx.fillColor="red";
ctx.strokeStyle="red";
ctx.strokeColor="red";
Before the ctx.stroke() method, which method should you use to completely fill in a close shape with a color?
ctx.fillStyle();
ctx.fill();
ctx.color();
ctx.pour();
The <canvas> element is only a container for graphics?
False
True
Which element does not support form attribute?
input
output
meta
button
What is the name of the location address of the hypertext documents?
A. Uniform Resource Locator
B. Web server
C. File
D. Web address
HTML allows us to use ___ levels of headings
A. Two
B. Three
C. Five
D. Six
____ are ignored by browser
A. Title tag
B. Comments
C. Body section
D. Head section
Which tag is used with JavaScript?
canvas
table
article
footer
What is the correct syntax of doctype in HTML5?
A. <!doctype html>
B. <doctype html!>
C. <doctype html>
D. </doctype html>
Which semantic element of HTML5 is used with JavaScript to output certain thing?
A. <input>
B. <output>
C. <aside>
D. <time>
