WorksheetsAWD - Prelim Exam
Total questions: 49
Worksheet time: 38mins
This script works in the back end so it is not visible to the user.
Server Side Scripting
Client Side Scripting
Static
Dynamic
This declaration defines that this document is an HTML5 document.
<DOCTYPE html!>
<!DOCTYPE html>
<!DOCTYPE>
<!DOCTYPE html5>
This provides further instructions to the browser on how to handle the content contained within the element.
Element
Tags
Attribute
Selector
It is used to identify what type of element you are going to use.
Value
Tags
Attribute
Selector
A part of CSS that defines what elements the rule applies to.
Selector
Declarations
Header
Tags
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.
Inline CSS
External CSS
Internal CSS
Insider CSS
This is used to apply styles directly to each element.
Inline CSS
External CSS
Internal CSS
Insider CSS
What does X stands for in XAMPP?
Server
Cross Site
Static
Cross Platform
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.
Id
Element
Class
Universal
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.
Element
Tags
Attribute
Selector
A powerful server side scripting language used for creating dynamic webpages
Turbo C
VB. Net
PHP
Assembly Language
Rasmus Lerdorf created PHP in what year?
1994
1995
1996
1997
What is the correct syntax in declaring a variable in PHP?
$num1 = 1;
$&hello = 1;
$123num = 1;
$@ucu = 1;
Symbol that represents concatenation in PHP.
+ (plus)
. (dot)
; (semicolon)
: (colon)
What PHP function returns the data type and value?
type()
var_dump()
data_type()
fetch()
What does PHP stands for?
Preprocessor Hypertext Page
PHP HyperText Preprocessor
PHP Hypertext Processor
What is the correct syntax in creating a PHP code block?
<$php echo $name; $>
<?php echo $name; ?>
<php> Some Code </php>
All of the following are global variables except
$_POST
$_GET
$_METHOD
$_REQUEST
It is used to make single line comments in php
///
*//*
//
/**/
The _______ statement enhances decision making process by providing alternative choice if the first condition evaluates false.
if
if else
If elseif else
switch
Data passed using the _______ method is not visible in the URL
POST
GET
METHOD
PARAM
This element allows you to enter a variety of options that will drop down for selection.
select
radio
submit
button
It is an array of variable names and values sent by the HTTP.
GET
POST
PARAM
This element allows you to check a box to make a selection.
radio
select
checkbox
textarea
The URL in the image is an example of a URL using the _____ method.
POST
GET
PARAM
ISSET
This can be used to get result from data sent with both GET and POST.
PARAM
REQUEST
SERVER
ISSET
This element allows you to pass along information to the form without showing the value to the user.
invisible
hide
closed
hidden
This element fires the submission of a form.
submit
reset
save
go
Based on the given code. What will be the output if the value of $gender is M?
female
Unknown Gender
Male
No Output
Based on the given program above. What will be the output if the $gender is equal to Male?
female
Unknown Gender
Male
No Output
PHP is not a case sensitive programming language.
TRUE
FALSE
Variable’s data type is changed by the value that is assigned to the variable.
TRUE
FALSE
PHP files can contain text, HTML, CSS, JavaScript, and PHP code.
TRUE
FALSE
The <!DOCTYPE html> declaration defines that this document is an HTML4 document
TRUE
FALSE
The <br> tag is an example of empty element.
TRUE
FALSE
For STRING values, you can only use double qoute.
TRUE
FALSE
A while loop will loop through a block of code once, and then repeats the loop as long as the specified condition is true.
TRUE
FALSE
A foreach loop will loop through a block of code for each element in an array.
TRUE
FALSE
A looping statement helps a program decide which route to take based on how the condition is evaluated.
TRUE
FALSE
An array stores multiple values in one single variable.
TRUE
FALSE
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)
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)
FILL IN THE BLANKS. Fill in the missing code in item #1. Be careful of your spellings and syntax.
(a)
FILL IN THE BLANKS. Fill in the missing code in item #2. Be careful of your spellings and syntax.
(a)
FILL IN THE BLANKS. Fill in the missing code in item #3. Be careful of your spellings and syntax.
(a)
FILL IN THE BLANKS. Fill in the missing code in item #4. Be careful of your spellings and syntax.
(a)
FILL IN THE BLANKS. Fill in the missing code in item #1. Be careful of your spellings and syntax.
(a)
FILL IN THE BLANKS. Fill in the missing code in item #2. Be careful of your spellings and syntax.
(a)
FILL IN THE BLANKS. Fill in the missing code in item #3. Be careful of your spellings and syntax.
(a)
