Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AWD - Prelim Exam

Total questions: 49

Worksheet time: 38mins

Name
Class
Date
1.

This script works in the back end so it is not visible to the user.

a)

Server Side Scripting

b)

Client Side Scripting

c)

Static

d)

Dynamic

2.

This declaration defines that this document is an HTML5 document.

a)

<DOCTYPE html!>

b)

<!DOCTYPE html>

c)

<!DOCTYPE>

d)

<!DOCTYPE html5>

3.

This provides further instructions to the browser on how to handle the content contained within the element.

a)

Element

b)

Tags

c)

Attribute

d)

Selector

4.

It is used to identify what type of element you are going to use.

a)

Value

b)

Tags

c)

Attribute

d)

Selector

5.

A part of CSS that defines what elements the rule applies to.

a)

Selector

b)

Declarations

c)

Header

d)

Tags

6.

The _____ is defined inside the <style> element. It is usually added inside the head section but you can also put it in other sections of the document.

a)

Inline CSS

b)

External CSS

c)

Internal CSS

d)

Insider CSS

7.

This is used to apply styles directly to each element.

a)

Inline CSS

b)

External CSS

c)

Internal CSS

d)

Insider CSS

8.

What does  X stands for in XAMPP?

a)

Server

b)

Cross Site

c)

Static

d)

Cross Platform

9.

Use the ________ rule to style multiple elements but not necessary all elements of the same type. Place a period before the name to specify the selector.

a)

Id

b)

Element

c)

Class

d)

Universal

10.

An _____ is any object within your web page. It can be a paragraph, heading, logo, or form fields like radio button, text box, or dropdown.

a)

Element

b)

Tags

c)

Attribute

d)

Selector

11.

A powerful server side scripting language used for creating dynamic webpages

a)

Turbo C

b)

VB. Net

c)

PHP

d)

Assembly Language

12.

Rasmus Lerdorf created PHP in what year?

a)

1994

b)

1995

c)

1996

d)

1997

13.

What is the correct syntax in declaring a variable in PHP?

a)

$num1 = 1;

b)

$&hello = 1;

c)

$123num = 1;

d)

$@ucu = 1;

14.

Symbol that represents concatenation in PHP.

a)

+ (plus)

b)

. (dot)

c)

; (semicolon)

d)

: (colon)

15.

What PHP function returns the data type and value?

a)

type()

b)

var_dump()

c)

data_type()

d)

fetch()

16.

What does PHP stands for?

a)

Preprocessor Hypertext Page

b)

PHP HyperText Preprocessor

c)

PHP Hypertext Processor

17.

What is the correct syntax in creating a PHP code block?

a)

<$php echo $name; $>

b)

<?php echo $name;  ?>

c)

<php> Some Code </php>

18.

All of the following are global variables except

a)

$_POST

b)

$_GET

c)

$_METHOD

d)

$_REQUEST

19.

It is used to make single line comments in php

a)

///

b)

*//*

c)

//

d)

/**/

20.

The _______ statement enhances decision making process by providing alternative choice if the first condition evaluates false.

a)

if

b)

if else

c)

If elseif else

d)

switch

21.

Data passed using the _______ method is not visible in the URL

a)

POST

b)

GET

c)

METHOD

d)

PARAM

22.

This element allows you to enter a variety of options that will drop down for selection.

a)

select

b)

radio

c)

submit

d)

button

23.

It is an array of variable names and values sent by the HTTP.

a)

GET

b)

POST

c)

PARAM

24.

This element allows you to check a box to make a selection.

a)

radio

b)

select

c)

checkbox

d)

textarea

25.

The URL in the image is an example of a URL using the _____ method.

a)

POST

b)

GET

c)

PARAM

d)

ISSET

26.

This can be used to get result from data sent with both GET and POST.

a)

PARAM

b)

REQUEST

c)

SERVER

d)

ISSET

27.

This element allows you to pass along information to the form without showing the value to the user.

a)

invisible

b)

hide

c)

closed

d)

hidden

28.

This element fires the submission of a form.

a)

submit

b)

reset

c)

save

d)

go

29.

Based on the given code. What will be the output if the value of $gender is M?

a)

female

b)

Unknown Gender

c)

Male

d)

No Output

30.

Based on the given program above. What will be the output if the $gender is equal to Male?

a)

female

b)

Unknown Gender

c)

Male

d)

No Output

31.

PHP is not a case sensitive programming language.

a)

TRUE

b)

FALSE

32.

Variable’s data type is changed by the value that is assigned to the variable.

a)

TRUE

b)

FALSE

33.

PHP files can contain text, HTML, CSS, JavaScript, and PHP code.

a)

TRUE

b)

FALSE

34.

The <!DOCTYPE html> declaration defines that this document is an HTML4 document

a)

TRUE

b)

FALSE

35.

The <br> tag is an example of empty element.

a)

TRUE

b)

FALSE

36.

For STRING values, you can only use double qoute.

a)

TRUE

b)

FALSE

37.

A while loop will loop through a block of code once, and then repeats the loop as long as the specified condition is true.

a)

TRUE

b)

FALSE

38.

A foreach loop will loop through a block of code for each element in an array.

a)

TRUE

b)

FALSE

39.

A looping statement helps a program decide which route to take based on how the condition is evaluated.

a)

TRUE

b)

FALSE

40.

An array stores multiple values in one single variable.

a)

TRUE

b)

FALSE

41.

Write the exact output of the given code. You can write ERROR if you think there is something wrong with the code and will result to an error.

(a)  

42.

Write the exact output of the given code. You can write ERROR if you think there is something wrong with the code and will result to an error.

(a)  

43.

FILL IN THE BLANKS. Fill in the missing code in item #1. Be careful of your spellings and syntax.

(a)  

44.

FILL IN THE BLANKS. Fill in the missing code in item #2. Be careful of your spellings and syntax.

(a)  

45.

FILL IN THE BLANKS. Fill in the missing code in item #3. Be careful of your spellings and syntax.

(a)  

46.

FILL IN THE BLANKS. Fill in the missing code in item #4. Be careful of your spellings and syntax.

(a)  

47.

FILL IN THE BLANKS. Fill in the missing code in item #1. Be careful of your spellings and syntax.

(a)  

48.

FILL IN THE BLANKS. Fill in the missing code in item #2. Be careful of your spellings and syntax.

(a)  

49.

FILL IN THE BLANKS. Fill in the missing code in item #3. Be careful of your spellings and syntax.

(a)