WEB

Description

2017
Hello World
Quiz by Hello World, updated more than 1 year ago
Hello World
Created by Hello World over 7 years ago
1102
6

Resource summary

Question 1

Question
Variable names (PHP) can only contain _
Answer
  • letters, numbers and the underscore ( _ ) symbol
  • letters and numbers
  • letters, numbers and &^%$#@ ( _ ) symbol
  • no correct answer

Question 2

Question
Are all keywords (e.g. if, else, while, echo, etc.) in PHP, classes, functions, and user-defined functions case-sensitive
Answer
  • yes
  • no
  • do not know
  • not sure

Question 3

Question
A variable declared ________ a function has a GLOBAL SCOPE. (PHP)
Answer
  • outside
  • within
  • anywhere
  • nowhere

Question 4

Question
A variable declared ________ a function has a LOCAL SCOPE. (PHP)
Answer
  • outside
  • within
  • anywhere
  • nowhere

Question 5

Question
to access a numeric arrays elements, refer to the array (PHP) with___
Answer
  • appropriate index number in brackets
  • appropriate index number with dots
  • appropriate index number without brackets
  • no correct answer

Question 6

Question
The _______ is an array which associates an index value (instead of a number) to a certain value.(PHP)
Answer
  • string
  • associative array
  • dot
  • class

Question 7

Question
Syntax for associative array (PHP)
Answer
  • $arrayName[index_value] = value;
  • $arrayName[“index_value”] = value;
  • $arrayName(index_value) = value;
  • arrayName[index_value] = value;

Question 8

Question
PHP ______ function returns the length of a string
Answer
  • str_word_count()
  • strlen()
  • strops()
  • strrev()

Question 9

Question
PHP ______ function replaces some characters with some other characters in a string
Answer
  • str_word_count()
  • strlen()
  • str_replace()
  • strops()

Question 10

Question
To create a constant (PHP), use
Answer
  • define(name, value, case-insensitive)
  • constant(name, value, case-insensitive)
  • constant(name, value)
  • constant( value)

Question 11

Question
What will be the output of variable $a = abs(-123); (PHP)?
Answer
  • 321
  • -321
  • $a
  • 123

Question 12

Question
array indexes (PHP) start at ___
Answer
  • 0
  • 1
  • -1
  • no correct answer

Question 13

Question
The _______function is used to return the length (the number of elements) of an array (PHP).
Answer
  • length()
  • count()
  • array()
  • return length()

Question 14

Question
____________executes some code if one condition is true.(PHP)
Answer
  • if statement
  • if ….else statement
  • if….elseif…else statement
  • switch statement

Question 15

Question
_____ executes some code if a condition is true and another code if that condition is false.(PHP)
Answer
  • if statement
  • if ….else statement
  • if….elseif…else statement
  • switch statement

Question 16

Question
_____ executes different codes for more than two conditions.(PHP)
Answer
  • if statement
  • if ….else statement
  • if….elseif…else statement
  • switch statement

Question 17

Question
All variables in PHP start with symbol?
Answer
  • &
  • $
  • %
  • !

Question 18

Question
The PHP ________function counts the number of words in a string
Answer
  • str_word_count()
  • strlen()
  • strrev()
  • strops()

Question 19

Question
The PHP _____ function searches for a specific text within a string
Answer
  • str_word_count()
  • strlen()
  • strrev()
  • strops()

Question 20

Question
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
Answer
  • do…while
  • while
  • for
  • foreach

Question 21

Question
multiline comments declared with (PHP)
Answer
  • /
  • we cannot comment lines in PHP
  • //
  • /* */

Question 22

Question
Which of the following property (CSS) is used to make a font italic or oblique?
Answer
  • font-family
  • font-style
  • font-variant
  • font-weight

Question 23

Question
Which of the following property (CSS) specifies the top margin of an element?
Answer
  • :margin
  • :margin-bottom
  • :margin-top
  • :margin-left

Question 24

Question
Which of the following (CSS) defines a measurement as a percentage relative to another value, typically an enclosing element?
Answer
  • %
  • cm
  • em
  • ex

Question 25

Question
Which of the following property (CSS) is used to set the color of a text?
Answer
  • Color
  • Direction
  • Letter-spacing
  • Word-spacing

Question 26

Question
Which of the following property changes the width of bottom border?
Answer
  • :border-bottom-width
  • :border-top-width
  • :border-right-width
  • :border-left-width

Question 27

Question
Which of the following property (CSS) specifies a shorthand property for setting the margin properties in one declaration?
Answer
  • :margin
  • :margin-bottom
  • :margin-top
  • :margin-left

Question 28

Question
Which of the following property (CSS) is used to set the background color of an element?
Answer
  • Background-color
  • Background-image
  • Background-repeat
  • Background-position

Question 29

Question
Which of the following property (CSS) is used to add or subtract space between the words of a sentence?
Answer
  • Color
  • Direction
  • Letter-spacing
  • Word-spacing

Question 30

Question
Which of the following property (CSS) is used to set the opacity of an image?
Answer
  • Border
  • Height
  • Moz-opacity
  • Width

Question 31

Question
Which of the following property (CSS) specifies whether a border should be solid, dashed line, double line, or one of the other possible values?
Answer
  • :border-color
  • :border-style
  • :border-width
  • :border-bottom-color

Question 32

Question
Which of the following is correct about CSS?
Answer
  • 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

Question 33

Question
Which of the following (CSS) defines a measurement in screen pixels?
Answer
  • px
  • vh
  • vw
  • vmin

Question 34

Question
Which of the following property (CSS) is used as a shorthand to specify a number of other background properties?
Answer
  • background-attachment
  • background
  • background-repeat
  • background-position

Question 35

Question
Which of the following property (CSS) specifies whether a border should be solid, dashed line, double line, or one of the other possible values?
Answer
  • :border-color
  • :border-style
  • :border-width
  • :border-bottom-color

Question 36

Question
Which of the following is a component of CSS style rule?
Answer
  • Selector
  • Property
  • Value
  • All

Question 37

Question
Which of the following is a way to associate styles with your HTML document?
Answer
  • Embedded CSS - The <xmp><style></xmp> Element
  • Inline CSS –The style Attributes
  • None
  • Both of the above

Question 38

Question
Which of the following property (CSS) is used to create a small-caps effect?
Answer
  • font-family
  • font-style
  • font-weight
  • font-variant

Question 39

Question
Which of the following property (CSS) is used to increase or decrease how bold or light a font appears?
Answer
  • font-family
  • font-style
  • font-variant
  • font-weight

Question 40

Question
Which of the following property (CSS) is used to set the text shadow around a text?
Answer
  • white-space
  • text-shadow
  • text-decoration
  • text-transform

Question 41

Question
Which of the following property (CSS) of a table element specifies the width that should appear between table cells?
Answer
  • :Border – collapse
  • :Border-spacing
  • :Caption-side
  • :Empty-cell

Question 42

Question
Which of the following property (CSS) is used to increase or decrease the size of a font?
Answer
  • font-size
  • font
  • font-variant
  • font-weight

Question 43

Question
A relative measurement for the height of a font in_____ spaces. This unit is equivalent to the size of a given font. (CSS)
Answer
  • em
  • px
  • mm
  • cm

Question 44

Question
The _______ property specifies the stack order of an element (CSS).
Answer
  • z-index
  • type
  • p

Question 45

Question
This property is used to capitalize text or convert text to uppercase or lowercase letters. (CSS)
Answer
  • text-decoration
  • text-transform
  • font-family
  • white-space

Question 46

Question
This property is used to control the flow and formatting of text. (CSS)
Answer
  • text-decoration
  • text-transform
  • font-family
  • white-space

Question 47

Question
This property is used to add or subtract space between the letters that make up a word. (CSS)
Answer
  • letter-spacing
  • word-spacing
  • text-indent
  • text-align

Question 48

Question
This property is used to set the text shadow around a text.(CSS)
Answer
  • text-shadow
  • word-spacing
  • text-indent
  • text-align

Question 49

Question
This property is used to indent the text of a paragraph. (CSS)
Answer
  • letter-spacing
  • word-spacing
  • text-indent
  • text-align

Question 50

Question
___________ properties are CSS properties that let you set the values of several other CSS properties simultaneously
Answer
  • Shortland
  • Sortland

Question 51

Question
Which stylesheet has the second highest priority?
Answer
  • Inline stylesheets
  • Internal stylesheets
  • External stylesheets
  • stylesheets

Question 52

Question
Which stylesheet has the third highest priority?
Answer
  • Inline stylesheets
  • Internal stylesheets
  • stylesheets
  • External stylesheets

Question 53

Question
An external stylesheet is declared in an external file with a ________extension.
Answer
  • css
  • html
  • doc
  • txt

Question 54

Question
External stylesheets are called using the _______ tag.
Answer
  • <xmp><link></xmp>
  • <xmp><class></xmp>
  • <xmp><id></xmp>
  • <xmp><stylesheets></xmp>

Question 55

Question
If you define the position to be _________ it will be calculated from the upper left corner of the page. (CSS)
Answer
  • absolute
  • relative
  • stylesheets
  • normal

Question 56

Question
If you define the position to be _______ it will be relative to the position of the tag that carries the style. (CSS)
Answer
  • absolute
  • relative
  • normal
  • define

Question 57

Question
When using an external stylesheet on a webpage, this attribute takes the value "stylesheet"
Answer
  • rel
  • type
  • href
  • abs

Question 58

Question
When using an external stylesheet on a webpage, this attribute takes the value "text/css".
Answer
  • type
  • rel
  • href
  • abs

Question 59

Question
Denotes the name and location of the external stylesheet to be used.
Answer
  • rel
  • abs
  • type
  • href

Question 60

Question
___________ stylesheets are declared within individual tags and affect those tags only.
Answer
  • Inline stylesheets
  • Internal stylesheets
  • External stylesheets
  • define stylesheets

Question 61

Question
element is a block-level element that is often used as a container for other HTML elements. (CSS)
Answer
  • <xmp><div></xmp>
  • <xmp><span></xmp>
  • <xmp><spad></xmp>
  • None

Question 62

Question
The _______ element is an inline element that is often used as a container for some text. (CSS)
Answer
  • <xmp><div></xmp>
  • <xmp><ul></xmp>
  • <xmp><span></xmp>
  • None

Question 63

Question
You can define style rules based on the ______ attribute of the elements. (CSS)
Answer
  • class
  • type
  • img

Question 64

Question
Can we use negative values for position of the layer? (CSS)
Answer
  • True
  • False

Question 65

Question
How do you display hyperlinks without an underline? (CSS)
Answer
  • {decoration: no underline}
  • {underline: none}
  • {text-decoration: none}
  • {text-decoration: underline}

Question 66

Question
Which is the correct CSS syntax?
Answer
  • {body:color=black(body;}
  • {body;color:black;}
  • body:color=black;
  • body {color: black;}

Question 67

Question
What is the correct CSS syntax for making all the <xmp><p></xmp> elements bold?
Answer
  • p {text-decoration:bold;}
  • p {text-size:bold;}
  • p {text-style:bold;}
  • p {font-weight:bold;}

Question 68

Question
What is the correct XHTML for referring to an external style sheet?
Answer
  • <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>

Question 69

Question
What is the correct CSS syntax for making all the <xmp><p></xmp> elements bold?
Answer
  • <xmp><p style=”text-size:bold;”></xmp>
  • <xmp><p style=”font-size:bold;”></xmp>
  • d. p {text-size:bold;}
  • p {font-weight:bold;}

Question 70

Question
This property is used to underline, overline, and strike through text (CSS).
Answer
  • text-decoration
  • text-transform
  • font-family
  • white-space

Question 71

Question
Which of the following is correct about features of JavaScript
Answer
  • JavaScript is complementary to and integrated with HTML.
  • JavaScript is open and cross-platform
  • Both of the above
  • None of them

Question 72

Question
Which of the following type of variable is visible everywhere in your JavaScript code? (JavaScript)
Answer
  • local variable
  • global variable
  • both
  • none

Question 73

Question
Which built-in method returns the calling string value converted to upper case? (JavaScript)
Answer
  • toUpperCase()
  • toUpper()
  • changeCase()
  • none

Question 74

Question
Which of the following function of String object returns the character at the specified index? (JavaScript)
Answer
  • charAt()
  • charCodeAt()
  • concat()
  • indexOf()

Question 75

Question
Which of the following function of String object executes the search for a match between a regular expression and a specified string? (JavaScript)
Answer
  • match()
  • concat()
  • replace()
  • search()

Question 76

Question
Which of the following function of String object creates an HTML anchor that is used as a hypertext target? (JavaScript)
Answer
  • anchor()
  • link()
  • blink()
  • big()

Question 77

Question
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)
Answer
  • fixed()
  • fontcolor()
  • fontsize()
  • italics()

Question 78

Question
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)
Answer
  • indexOf()
  • join()
  • lastIndexOf()
  • map()

Question 79

Question
Which of the following function of Array object adds and/or removes elements from an array? (JavaScript)
Answer
  • sort()
  • toSourse()
  • splice()
  • unshift()

Question 80

Question
Which of the following is correct about features of JavaScript?
Answer
  • JavaScript is a lightweight, interpreted programming language.
  • JavaScript is designed for creating network-centric applications.
  • JavaScript is complementary to and integrated with Java
  • all

Question 81

Question
Which of the following function of String object returns a string representing the specified object? (JavaScript)
Answer
  • toLocaleUpperCase()
  • toUpperCase()
  • toString()
  • substring()

Question 82

Question
Which of the following function of String object creates an HTML hypertext link that requests another URL? (JavaScript)
Answer
  • link()
  • sub()
  • sup()
  • small()

Question 83

Question
Which of the following function of Array object joins all elements of an array into a string? (JavaScript)
Answer
  • concat()
  • join()
  • pop()
  • map()

Question 84

Question
Which of the following function of Array object sorts the elements of an array? (JavaScript)
Answer
  • toSourse()
  • sort()
  • toString()
  • unshift()

Question 85

Question
Which of the following is an advantage of using JavaScript?
Answer
  • Less server interaction
  • Immediate feedback to the visitors
  • Increased interactivity
  • All

Question 86

Question
86. How can you get the type of arguments passed to a function? (JavaScript)
Answer
  • using typeof operator
  • using getType function
  • both
  • none

Question 87

Question
Which built-in method returns the length of the string? (JavaScript)
Answer
  • length()
  • size()
  • index()
  • none

Question 88

Question
Which of the following function of Number object returns the number's value? (JavaScript)
Answer
  • toString()
  • valueOf()
  • toLocaleString()
  • toPrecision()

Question 89

Question
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)
Answer
  • anchor()
  • big()
  • blink()
  • italics()

Question 90

Question
Which of the following function of Array object returns true if every element in this array satisfies the provided testing function? (JavaScript)
Answer
  • concat()
  • every()
  • push()
  • some()

Question 91

Question
Is JavaScript a case-sensitive language?
Answer
  • true
  • false
  • not given

Question 92

Question
Which of the following function of Boolean object returns a string containing the source of the Boolean object? (JavaScript)
Answer
  • toSource()
  • valueOf()
  • toString()
  • none

Question 93

Question
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)
Answer
  • lastIndexOf()
  • search()
  • substr()
  • indexOf()

Question 94

Question
To access an HTML element, JavaScript can use the ___________ method.
Answer
  • document.getElementById(id)
  • var
  • sort
  • map

Question 95

Question
You declare a JavaScript variable with the ______ keyword
Answer
  • document.getElementById(id)
  • var
  • sort
  • map

Question 96

Question
To assign (JavaScript) a value to the variable, use the sign
Answer
  • =
  • ++
  • /
  • #

Question 97

Question
Once you create an _______, you can create new objects (JavaScript) of the same type.
Answer
  • object constructor
  • link
  • map
  • array

Question 98

Question
A JavaScript ______ is a block of JavaScript code, that can be executed when "asked" for
Answer
  • function
  • constant
  • link
  • map

Question 99

Question
External JavaScript files have the file extension _____
Answer
  • js
  • doc
  • jpg

Question 100

Question
Can functions return a value? (JavaScript)
Answer
  • True
  • False

Question 101

Question
JavaScript objects are containers for _____________
Answer
  • named values and methods
  • link
  • maps
  • fils

Question 102

Question
HTML DOM methods are ______ you can perform (on HTML Elements). (JavaScript)
Answer
  • actions
  • values
  • constants
  • links

Question 103

Question
The body section in HTML is set with the tag
Answer
  • <xmp><html></xmp>
  • <xmp><begin></xmp>
  • <xmp><body></xmp>
  • <xmp><title></xmp>

Question 104

Question
Which tag is used in HTML to set text size, font type, and color
Answer
  • <xmp>< font ></xmp>
  • <xmp>< size ></xmp>
  • <xmp>< type ></xmp>
  • <xmp>< color ></xmp>

Question 105

Question
Which attributes of the <xmp><font></xmp>tag in HTML specifies the size of the text?
Answer
  • Color
  • Size
  • Type
  • Face

Question 106

Question
Which attributes of the <xmp><font></xmp>tag in HTML specifies the font of the text?
Answer
  • Color
  • Size
  • Face
  • Type

Question 107

Question
Which attributes of the <xmp><font></xmp>tag in HTML specifies the color of the text?
Answer
  • Color
  • Size
  • Type
  • Face

Question 108

Question
Headings can be displayed in HTML using the tags
Answer
  • <xmp><i1> …<i6></xmp>
  • <xmp><u1> …<u6></xmp>
  • <xmp><f1> …<f6></xmp>
  • <xmp>< h1> …<h6></xmp>

Question 109

Question
The smallest heading in HTML:
Answer
  • <xmp><h1></xmp>
  • <xmp><h7></xmp>
  • <xmp><smallest></xmp>
  • <xmp><h6></xmp>

Question 110

Question
The <xmp><hr></xmp> tag has no closing tag in HTML
Answer
  • True
  • False

Question 111

Question
The <xmp><br></xmp> tag has no closing tag in HTML
Answer
  • True
  • False

Question 112

Question
The <xmp><u></xmp> tag has no closing tag in HTML
Answer
  • True
  • False

Question 113

Question
The <xmp><ol></xmp> tag has no closing tag in HTML
Answer
  • True
  • False

Question 114

Question
The <xmp><basefont></xmp> tag has no closing tag in HTML
Answer
  • True
  • False

Question 115

Question
The <xmp><font></xmp>tag has no closing tag in HTML
Answer
  • True
  • False

Question 116

Question
______________is the standard markup language used to create web pages
Answer
  • PHP
  • CSS
  • JavaScript
  • HTML

Question 117

Question
You can center text in HTML using the tag
Answer
  • <xmp><basefont></xmp>
  • <xmp><b></xmp>
  • <xmp><t></xmp>
  • <xmp><center></xmp>

Question 118

Question
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
Answer
  • <xmp><basefont></xmp>
  • <xmp><abbr></xmp>
  • <xmp>< acronym ></xmp>
  • <xmp><center></xmp>

Question 119

Question
Addresses in HTML are placed on a webpage with the tag
Answer
  • <xmp><address></xmp>
  • <xmp>< acronym ></xmp>
  • <xmp><abbr></xmp>
  • <xmp><center></xmp>

Question 120

Question
Computer output tags in HTML are used to display text as computer programming code
Answer
  • <xmp><address ></xmp>
  • <xmp>< code>, <kbd>, <tt>, <samp>, <var ></xmp>
  • <xmp>< dl>,<dt>,<dd ></xmp>
  • <xmp>< b>,<i ></xmp>

Question 121

Question
Definition lists in HTML are created using the tags
Answer
  • <xmp><address ></xmp>
  • <xmp>< code>, <kbd>, <tt>, <samp>, <var ></xmp>
  • <xmp>< dl>,<dt>,<dd ></xmp>
  • <xmp>< b>,<i ></xmp>

Question 122

Question
Deleted text in HTML is displayed with the tag
Answer
  • <xmp>< dt></xmp>
  • <xmp>< code ></xmp>
  • <xmp><dl></xmp>
  • <xmp>< del></xmp>

Question 123

Question
Inserted text in HTML is displayed with the tag
Answer
  • <xmp><i ></xmp>
  • <xmp><code ></xmp>
  • <xmp><ins></xmp>
  • <xmp><tt ></xmp>

Question 124

Question
Long quotations in HTML are displayed with the tag
Answer
  • <xmp>< blockquote ></xmp>
  • <xmp><q></xmp>
  • <xmp><ququ></xmp>
  • <xmp><tt ></xmp>

Question 125

Question
Short quotations in HTML are displayed with the tag
Answer
  • <xmp>< blockquote ></xmp>
  • <xmp><q></xmp>
  • <xmp><ququ></xmp>
  • <xmp><tt ></xmp>

Question 126

Question
Where in an HTML document is the correct place to refer to an external style sheet?
Answer
  • In the <head> section
  • In the <body> section

Question 127

Question
Which HTML tag is used to define an internal style sheet?
Answer
  • <style>
  • <script>

Question 128

Question
Which of the following property (CSS) is used to align the text of a document?
Answer
  • text-align
  • font-family

Question 129

Question
Which of the following property (CSS) of a table element controls the placement of the table caption?
Answer
  • :caption-side
  • :border-left-width

Question 130

Question
Which of the following property (CSS) changes the width of left border?
Answer
  • :border-left-width
  • :caption-side

Question 131

Question
Which of the following property specifies the width of a border?
Answer
  • :border-width
  • :border-left-width

Question 132

Question
CSS Comments:
Answer
  • /* */
  • * *

Question 133

Question
133. The ______________ is the HTML tag that a style will be applied to. (CSS)
Answer
  • Selector
  • Inlinestyle

Question 134

Question
The __________ is an aspect of the HTML tag that will be affected by the stylesheet definition. (CSS)
Answer
  • value
  • property

Question 135

Question
The ______ that the property of a selector will have. (CSS)
Answer
  • value
  • property

Question 136

Question
Which stylesheet has the highest priority?
Answer
  • Inlinestyle
  • :link

Question 137

Question
We use this pseudo-classes to add special style to an unvisited link. (CSS)
Answer
  • :link
  • :hover

Question 138

Question
138. We use this class to add special style to a visited link. (CSS)
Answer
  • :visited
  • :hover

Question 139

Question
We use this class to add special style to an element when you mouse over it. (CSS)
Answer
  • :visited
  • :hover

Question 140

Question
What is the correct CSS syntax for making all the <p> elements bold?
Answer
  • p {font-weight:bold}
  • p {font:bold}

Question 141

Question
PHP stands for
Answer
  • Hypertext Preprocessor
  • Hypertext Postprocessor

Question 142

Question
PHP files have a default file extension of _____ .
Answer
  • php
  • p
  • css

Question 143

Question
PHP is a _______
Answer
  • Server-scripting language
  • WEB-scripting language

Question 144

Question
Syntax for declaring variables (PHP)
Answer
  • $txt = "Hello world!"; $x = 5; $y = 10.5;
  • $txt == "Hello world!"; $x == 5; $y == 10.5;

Question 145

Question
A PHP script begins with ____ and ends with ___.
Answer
  • <?php__?>
  • <? __?>

Question 146

Question
Single line comments (PHP) are declared with
Answer
  • // 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

Question 147

Question
Multi-line comments (PHP) are declared with a starting ____ and an ending ___.
Answer
  • /* */
  • //

Question 148

Question
You can print text on a webpage in PHP using the ____ or ____ commands.
Answer
  • print or echo
  • cout
  • printf

Question 149

Question
Are all variable names case-sensitive in PHP?
Answer
  • True
  • False

Question 150

Question
Correct syntax for a function (PHP):
Answer
  • Function function_name () {code for runction goes here;}
  • Function function_name {code for runction goes here;}

Question 151

Question
To call a function (PHP)_______________(if the function has any parameters).
Answer
  • function_name(parameters);
  • function_name(parameters).

Question 152

Question
An external file in which a PHP script is declared will be included within the PHP source code of a webpage using the ________ function
Answer
  • Include
  • link

Question 153

Question
For text variables (PHP), the value is surrounded by “”
Answer
  • True
  • False

Question 154

Question
You can print variables together (PHP) with regular text using Dot
Answer
  • True
  • False

Question 155

Question
Which of the PHP's built-in functions will return the absolute value of a number?
Answer
  • abs()
  • max()

Question 156

Question
Which of the PHP's built-in functions returns the highest value from a set of specified numbers?
Answer
  • abs()
  • max()

Question 157

Question
Which of the PHP's built-in functions will print a text string backwards?
Answer
  • strrev()
  • strtoupper()

Question 158

Question
Which of the PHP's built-in functions will print a text string in all uppercase letters?
Answer
  • strtoupper()
  • strrev()

Question 159

Question
What will be the output of variable ? (PHP) $highest = max(5, 10, 15, 20);
Answer
  • 20
  • 5

Question 160

Question
The ____ keyword is used to access a global variable from within a function. (PHP)
Answer
  • $GLOBALS
  • $SESSION

Question 161

Question
PHP stores all __________in an array called $GLOBALS[index].
Answer
  • Global variables
  • Local variables

Question 162

Question
When we want a local variable NOT to be deleted, use the ________ keyword when you first declare the variable. (PHP)
Answer
  • static keyword
  • final keyword

Question 163

Question
The PHP ________function returns the data type and value.
Answer
  • var_dump()
  • var_value()

Question 164

Question
A ____ is a number with a decimal point or a number in exponential form. (PHP)
Answer
  • Floating point number
  • Fixed point number

Question 165

Question
Syntax for array (PHP):
Answer
  • $cars = array("Volvo","BMW","Toyota");
  • $cars = array{"Volvo","BMW","Toyota"};

Question 166

Question
How do you write "Hello World" in PHP
Answer
  • echo "Hello World";
  • "Hello World";

Question 167

Question
What is the correct way to end a PHP statement?
Answer
  • ;
  • }
  • .

Question 168

Question
In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:
Answer
  • True
  • False

Question 169

Question
The PHP ______ function reverses a string.
Answer
  • strrev
  • strtoupper()

Question 170

Question
The while loop executes a block of code as long as the specified condition is ____. (PHP)
Answer
  • True
  • False

Question 171

Question
Which built-in method adds one or more elements to the end of an array and returns the new length of the array? (JavaScript)
Answer
  • Push()
  • Add()

Question 172

Question
Which of the following function of String object causes a string to be italic, as if it were in an <i> tag? (JavaScript)
Answer
  • italics()
  • toitalics()

Question 173

Question
How do you get information from a form that is submitted using the "get" method?
Answer
  • $_GET[];
  • $_POST[];

Question 174

Question
Include files must have the file extension ".inc"
Answer
  • True
  • False

Question 175

Question
When using the POST method, variables are displayed in the URL:
Answer
  • True
  • False

Question 176

Question
In this example variable x has the _____scope. (PHP)
Answer
  • LOCAL
  • GLOBAL

Question 177

Question
In this example variable x has the _____scope.(PHP)
Answer
  • LOCAL
  • GLOBAL

Question 178

Question
How do you display a border like this(CSS):
Answer
  • border-width:10px 1px 5px 20px
  • border-width:20px 10px 1px 5px

Question 179

Question
You can access object properties(JavaScript) in two ways: ObjectName.propertyName or objectName[“propertyName”]
Answer
  • True
  • False

Question 180

Question
You access an object method (JavaScript)with the following syntax: ObjectName.methodName()
Answer
  • True
  • False

Question 181

Question
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?
Answer
  • border-width:11px 21px 51px 11px
  • border-width:11px 11px 51px 21px
  • border-width:51px 21px 11px 11px
  • border-width:11px 51px 21px 11px
Show full summary Hide full summary

Similar

Biology Revision - Y10 Mock
Tom Mitchell
Biology- Genes and Variation
Laura Perry
AQA Physics P1 Quiz
Bella Statham
Acids and Bases
Sarah Egan
Using GoConqr to teach science
Sarah Egan
Using GoConqr to study science
Sarah Egan
GCSE Combined Science
Derek Cumberbatch
Physics Revision
Tom Mitchell
The Circulatory System
Shane Buckley
Acids and Bases
silviaod119
Elements, Compounds and Mixtures
silviaod119