Variable names (PHP) can only contain _
letters, numbers and the underscore ( _ ) symbol
letters and numbers
letters, numbers and &^%$#@ ( _ ) symbol
no correct answer
Are all keywords (e.g. if, else, while, echo, etc.) in PHP, classes, functions, and user-defined functions case-sensitive
yes
no
do not know
not sure
A variable declared ________ a function has a GLOBAL SCOPE. (PHP)
outside
within
anywhere
nowhere
A variable declared ________ a function has a LOCAL SCOPE. (PHP)
to access a numeric arrays elements, refer to the array (PHP) with___
appropriate index number in brackets
appropriate index number with dots
appropriate index number without brackets
The _______ is an array which associates an index value (instead of a number) to a certain value.(PHP)
string
associative array
dot
class
Syntax for associative array (PHP)
$arrayName[index_value] = value;
$arrayName[“index_value”] = value;
$arrayName(index_value) = value;
arrayName[index_value] = value;
PHP ______ function returns the length of a string
str_word_count()
strlen()
strops()
strrev()
PHP ______ function replaces some characters with some other characters in a string
str_replace()
To create a constant (PHP), use
define(name, value, case-insensitive)
constant(name, value, case-insensitive)
constant(name, value)
constant( value)
What will be the output of variable $a = abs(-123); (PHP)?
321
-321
$a
123
array indexes (PHP) start at ___
0
1
-1
The _______function is used to return the length (the number of elements) of an array (PHP).
length()
count()
array()
return length()
____________executes some code if one condition is true.(PHP)
if statement
if ….else statement
if….elseif…else statement
switch statement
_____ executes some code if a condition is true and another code if that condition is false.(PHP)
_____ executes different codes for more than two conditions.(PHP)
All variables in PHP start with symbol?
&
$
%
!
The PHP ________function counts the number of words in a string
The PHP _____ function searches for a specific text within a string
The ________ loop will always execute the block of code once, it will then check the condition, and repeat the loop while the specified condition is true
do…while
while
for
foreach
multiline comments declared with (PHP)
/
we cannot comment lines in PHP
//
/* */
Which of the following property (CSS) is used to make a font italic or oblique?
font-family
font-style
font-variant
font-weight
Which of the following property (CSS) specifies the top margin of an element?
:margin
:margin-bottom
:margin-top
:margin-left
Which of the following (CSS) defines a measurement as a percentage relative to another value, typically an enclosing element?
cm
em
ex
Which of the following property (CSS) is used to set the color of a text?
Color
Direction
Letter-spacing
Word-spacing
Which of the following property changes the width of bottom border?
:border-bottom-width
:border-top-width
:border-right-width
:border-left-width
Which of the following property (CSS) specifies a shorthand property for setting the margin properties in one declaration?
Which of the following property (CSS) is used to set the background color of an element?
Background-color
Background-image
Background-repeat
Background-position
Which of the following property (CSS) is used to add or subtract space between the words of a sentence?
Which of the following property (CSS) is used to set the opacity of an image?
Border
Height
Moz-opacity
Width
Which of the following property (CSS) specifies whether a border should be solid, dashed line, double line, or one of the other possible values?
:border-color
:border-style
:border-width
:border-bottom-color
Which of the following is correct about CSS?
Style sheets allow content to be optimized for more than one type of device.
Using CSS, we can view offline websites. The cache also ensures faster loading and better overall performance of the website.
CSS can store web applications locally with the help of an offline cache.
All
Which of the following (CSS) defines a measurement in screen pixels?
px
vh
vw
vmin
Which of the following property (CSS) is used as a shorthand to specify a number of other background properties?
background-attachment
background
background-repeat
background-position
Which of the following is a component of CSS style rule?
Selector
Property
Value
Which of the following is a way to associate styles with your HTML document?
Embedded CSS - The <xmp><style></xmp> Element
Inline CSS –The style Attributes
None
Both of the above
Which of the following property (CSS) is used to create a small-caps effect?
Which of the following property (CSS) is used to increase or decrease how bold or light a font appears?
Which of the following property (CSS) is used to set the text shadow around a text?
white-space
text-shadow
text-decoration
text-transform
Which of the following property (CSS) of a table element specifies the width that should appear between table cells?
:Border – collapse
:Border-spacing
:Caption-side
:Empty-cell
Which of the following property (CSS) is used to increase or decrease the size of a font?
font-size
font
A relative measurement for the height of a font in_____ spaces. This unit is equivalent to the size of a given font. (CSS)
mm
The _______ property specifies the stack order of an element (CSS).
z-index
type
p
This property is used to capitalize text or convert text to uppercase or lowercase letters. (CSS)
This property is used to control the flow and formatting of text. (CSS)
This property is used to add or subtract space between the letters that make up a word. (CSS)
letter-spacing
word-spacing
text-indent
text-align
This property is used to set the text shadow around a text.(CSS)
This property is used to indent the text of a paragraph. (CSS)
___________ properties are CSS properties that let you set the values of several other CSS properties simultaneously
Shortland
Sortland
Which stylesheet has the second highest priority?
Inline stylesheets
Internal stylesheets
External stylesheets
stylesheets
Which stylesheet has the third highest priority?
An external stylesheet is declared in an external file with a ________extension.
css
html
doc
txt
External stylesheets are called using the _______ tag.
<xmp><link></xmp>
<xmp><class></xmp>
<xmp><id></xmp>
<xmp><stylesheets></xmp>
If you define the position to be _________ it will be calculated from the upper left corner of the page. (CSS)
absolute
relative
normal
If you define the position to be _______ it will be relative to the position of the tag that carries the style. (CSS)
define
When using an external stylesheet on a webpage, this attribute takes the value "stylesheet"
rel
href
abs
When using an external stylesheet on a webpage, this attribute takes the value "text/css".
Denotes the name and location of the external stylesheet to be used.
___________ stylesheets are declared within individual tags and affect those tags only.
define stylesheets
element is a block-level element that is often used as a container for other HTML elements. (CSS)
<xmp><div></xmp>
<xmp><span></xmp>
<xmp><spad></xmp>
The _______ element is an inline element that is often used as a container for some text. (CSS)
<xmp><ul></xmp>
You can define style rules based on the ______ attribute of the elements. (CSS)
img
Can we use negative values for position of the layer? (CSS)
How do you display hyperlinks without an underline? (CSS)
{decoration: no underline}
{underline: none}
{text-decoration: none}
{text-decoration: underline}
Which is the correct CSS syntax?
{body:color=black(body;}
{body;color:black;}
body:color=black;
body {color: black;}
What is the correct CSS syntax for making all the <xmp><p></xmp> elements bold?
p {text-decoration:bold;}
p {text-size:bold;}
p {text-style:bold;}
p {font-weight:bold;}
What is the correct XHTML for referring to an external style sheet?
<xmp><style src="style.css"></xmp>
<xmp><stylesheet></xmp>style.css</xmp></stylesheet></xmp>
<xmp><link rel="stylesheet" type="text/css" href="style.css" /></xmp>
<xmp><script rel="stylesheet" type="text/css" href="style.css" /></xmp>
<xmp><p style=”text-size:bold;”></xmp>
<xmp><p style=”font-size:bold;”></xmp>
d. p {text-size:bold;}
This property is used to underline, overline, and strike through text (CSS).
Which of the following is correct about features of JavaScript
JavaScript is complementary to and integrated with HTML.
JavaScript is open and cross-platform
None of them
Which of the following type of variable is visible everywhere in your JavaScript code? (JavaScript)
local variable
global variable
both
none
Which built-in method returns the calling string value converted to upper case? (JavaScript)
toUpperCase()
toUpper()
changeCase()
Which of the following function of String object returns the character at the specified index? (JavaScript)
charAt()
charCodeAt()
concat()
indexOf()
Which of the following function of String object executes the search for a match between a regular expression and a specified string? (JavaScript)
match()
replace()
search()
Which of the following function of String object creates an HTML anchor that is used as a hypertext target? (JavaScript)
anchor()
link()
blink()
big()
Which of the following function of String object causes a string to be italic, as if it were in an <xmp><i></xmp> tag? (JavaScript)
fixed()
fontcolor()
fontsize()
italics()
Which of the following function of Array object returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found? (JavaScript)
join()
lastIndexOf()
map()
Which of the following function of Array object adds and/or removes elements from an array? (JavaScript)
sort()
toSourse()
splice()
unshift()
Which of the following is correct about features of JavaScript?
JavaScript is a lightweight, interpreted programming language.
JavaScript is designed for creating network-centric applications.
JavaScript is complementary to and integrated with Java
all
Which of the following function of String object returns a string representing the specified object? (JavaScript)
toLocaleUpperCase()
toString()
substring()
Which of the following function of String object creates an HTML hypertext link that requests another URL? (JavaScript)
sub()
sup()
small()
Which of the following function of Array object joins all elements of an array into a string? (JavaScript)
pop()
Which of the following function of Array object sorts the elements of an array? (JavaScript)
Which of the following is an advantage of using JavaScript?
Less server interaction
Immediate feedback to the visitors
Increased interactivity
86. How can you get the type of arguments passed to a function? (JavaScript)
using typeof operator
using getType function
Which built-in method returns the length of the string? (JavaScript)
size()
index()
Which of the following function of Number object returns the number's value? (JavaScript)
valueOf()
toLocaleString()
toPrecision()
Which of the following function of String object creates a string to be displayed in a big font as if it were in a <xmp><big></xmp> tag? (JavaScript)
Which of the following function of Array object returns true if every element in this array satisfies the provided testing function? (JavaScript)
every()
push()
some()
Is JavaScript a case-sensitive language?
true
false
not given
Which of the following function of Boolean object returns a string containing the source of the Boolean object? (JavaScript)
toSource()
Which of the following function of String object returns the index within the calling String object of the last occurrence of the specified value? (JavaScript)
substr()
To access an HTML element, JavaScript can use the ___________ method.
document.getElementById(id)
var
sort
map
You declare a JavaScript variable with the ______ keyword
To assign (JavaScript) a value to the variable, use the sign
=
++
#
Once you create an _______, you can create new objects (JavaScript) of the same type.
object constructor
link
array
A JavaScript ______ is a block of JavaScript code, that can be executed when "asked" for
function
constant
External JavaScript files have the file extension _____
js
jpg
Can functions return a value? (JavaScript)
JavaScript objects are containers for _____________
named values and methods
maps
fils
HTML DOM methods are ______ you can perform (on HTML Elements). (JavaScript)
actions
values
constants
links
The body section in HTML is set with the tag
<xmp><html></xmp>
<xmp><begin></xmp>
<xmp><body></xmp>
<xmp><title></xmp>
Which tag is used in HTML to set text size, font type, and color
<xmp>< font ></xmp>
<xmp>< size ></xmp>
<xmp>< type ></xmp>
<xmp>< color ></xmp>
Which attributes of the <xmp><font></xmp>tag in HTML specifies the size of the text?
Size
Type
Face
Which attributes of the <xmp><font></xmp>tag in HTML specifies the font of the text?
Which attributes of the <xmp><font></xmp>tag in HTML specifies the color of the text?
Headings can be displayed in HTML using the tags
<xmp><i1> …<i6></xmp>
<xmp><u1> …<u6></xmp>
<xmp><f1> …<f6></xmp>
<xmp>< h1> …<h6></xmp>
The smallest heading in HTML:
<xmp><h1></xmp>
<xmp><h7></xmp>
<xmp><smallest></xmp>
<xmp><h6></xmp>
The <xmp><hr></xmp> tag has no closing tag in HTML
The <xmp><br></xmp> tag has no closing tag in HTML
The <xmp><u></xmp> tag has no closing tag in HTML
The <xmp><ol></xmp> tag has no closing tag in HTML
The <xmp><basefont></xmp> tag has no closing tag in HTML
The <xmp><font></xmp>tag has no closing tag in HTML
______________is the standard markup language used to create web pages
PHP
CSS
JavaScript
HTML
You can center text in HTML using the tag
<xmp><basefont></xmp>
<xmp><b></xmp>
<xmp><t></xmp>
<xmp><center></xmp>
This tag in HTML works similarly to the <xmp><abbr></xmp> tag but is used to display the value of data which is displayed as an acronym
<xmp><abbr></xmp>
<xmp>< acronym ></xmp>
Addresses in HTML are placed on a webpage with the tag
<xmp><address></xmp>
Computer output tags in HTML are used to display text as computer programming code
<xmp><address ></xmp>
<xmp>< code>, <kbd>, <tt>, <samp>, <var ></xmp>
<xmp>< dl>,<dt>,<dd ></xmp>
<xmp>< b>,<i ></xmp>
Definition lists in HTML are created using the tags
Deleted text in HTML is displayed with the tag
<xmp>< dt></xmp>
<xmp>< code ></xmp>
<xmp><dl></xmp>
<xmp>< del></xmp>
Inserted text in HTML is displayed with the tag
<xmp><i ></xmp>
<xmp><code ></xmp>
<xmp><ins></xmp>
<xmp><tt ></xmp>
Long quotations in HTML are displayed with the tag
<xmp>< blockquote ></xmp>
<xmp><q></xmp>
<xmp><ququ></xmp>
Short quotations in HTML are displayed with the tag
Where in an HTML document is the correct place to refer to an external style sheet?
In the <head> section
In the <body> section
Which HTML tag is used to define an internal style sheet?
<style>
<script>
Which of the following property (CSS) is used to align the text of a document?
Which of the following property (CSS) of a table element controls the placement of the table caption?
:caption-side
Which of the following property (CSS) changes the width of left border?
Which of the following property specifies the width of a border?
CSS Comments:
* *
133. The ______________ is the HTML tag that a style will be applied to. (CSS)
Inlinestyle
The __________ is an aspect of the HTML tag that will be affected by the stylesheet definition. (CSS)
value
property
The ______ that the property of a selector will have. (CSS)
Which stylesheet has the highest priority?
:link
We use this pseudo-classes to add special style to an unvisited link. (CSS)
:hover
138. We use this class to add special style to a visited link. (CSS)
:visited
We use this class to add special style to an element when you mouse over it. (CSS)
What is the correct CSS syntax for making all the <p> elements bold?
p {font-weight:bold}
p {font:bold}
PHP stands for
Hypertext Preprocessor
Hypertext Postprocessor
PHP files have a default file extension of _____ .
php
PHP is a _______
Server-scripting language
WEB-scripting language
Syntax for declaring variables (PHP)
$txt = "Hello world!"; $x = 5; $y = 10.5;
$txt == "Hello world!"; $x == 5; $y == 10.5;
A PHP script begins with ____ and ends with ___.
<?php__?>
<? __?>
Single line comments (PHP) are declared with
// This is a single-line comment # This is also a single-line comment
/* This is a single-line comment # This is also a single-line comment
Multi-line comments (PHP) are declared with a starting ____ and an ending ___.
You can print text on a webpage in PHP using the ____ or ____ commands.
print or echo
cout
printf
Are all variable names case-sensitive in PHP?
Correct syntax for a function (PHP):
Function function_name () {code for runction goes here;}
Function function_name {code for runction goes here;}
To call a function (PHP)_______________(if the function has any parameters).
function_name(parameters);
function_name(parameters).
An external file in which a PHP script is declared will be included within the PHP source code of a webpage using the ________ function
Include
For text variables (PHP), the value is surrounded by “”
You can print variables together (PHP) with regular text using Dot
Which of the PHP's built-in functions will return the absolute value of a number?
abs()
max()
Which of the PHP's built-in functions returns the highest value from a set of specified numbers?
Which of the PHP's built-in functions will print a text string backwards?
strtoupper()
Which of the PHP's built-in functions will print a text string in all uppercase letters?
What will be the output of variable ? (PHP) $highest = max(5, 10, 15, 20);
20
5
The ____ keyword is used to access a global variable from within a function. (PHP)
$GLOBALS
$SESSION
PHP stores all __________in an array called $GLOBALS[index].
Global variables
Local variables
When we want a local variable NOT to be deleted, use the ________ keyword when you first declare the variable. (PHP)
static keyword
final keyword
The PHP ________function returns the data type and value.
var_dump()
var_value()
A ____ is a number with a decimal point or a number in exponential form. (PHP)
Floating point number
Fixed point number
Syntax for array (PHP):
$cars = array("Volvo","BMW","Toyota");
$cars = array{"Volvo","BMW","Toyota"};
How do you write "Hello World" in PHP
echo "Hello World";
"Hello World";
What is the correct way to end a PHP statement?
;
}
.
In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:
The PHP ______ function reverses a string.
strrev
The while loop executes a block of code as long as the specified condition is ____. (PHP)
Which built-in method adds one or more elements to the end of an array and returns the new length of the array? (JavaScript)
Push()
Add()
Which of the following function of String object causes a string to be italic, as if it were in an <i> tag? (JavaScript)
toitalics()
How do you get information from a form that is submitted using the "get" method?
$_GET[];
$_POST[];
Include files must have the file extension ".inc"
When using the POST method, variables are displayed in the URL:
In this example variable x has the _____scope. (PHP)
LOCAL
GLOBAL
In this example variable x has the _____scope.(PHP)
How do you display a border like this(CSS):
border-width:10px 1px 5px 20px
border-width:20px 10px 1px 5px
You can access object properties(JavaScript) in two ways: ObjectName.propertyName or objectName[“propertyName”]
You access an object method (JavaScript)with the following syntax: ObjectName.methodName()
How do you display a border like this (CSS): - The top border = 11 pixels; - The bottom border = 51 pixels; - The left border = 21 pixels; - The right border = 11pixel?
border-width:11px 21px 51px 11px
border-width:11px 11px 51px 21px
border-width:51px 21px 11px 11px
border-width:11px 51px 21px 11px