WEB

Beschreibung

2017
Hello World
Quiz von Hello World, aktualisiert more than 1 year ago
Hello World
Erstellt von Hello World vor etwa 7 Jahre
1099
6

Zusammenfassung der Ressource

Frage 1

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

Frage 2

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

Frage 3

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

Frage 4

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

Frage 5

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

Frage 6

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

Frage 7

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

Frage 8

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

Frage 9

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

Frage 10

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

Frage 11

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

Frage 12

Frage
array indexes (PHP) start at ___
Antworten
  • 0
  • 1
  • -1
  • no correct answer

Frage 13

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

Frage 14

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

Frage 15

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

Frage 16

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

Frage 17

Frage
All variables in PHP start with symbol?
Antworten
  • &
  • $
  • %
  • !

Frage 18

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

Frage 19

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

Frage 20

Frage
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
Antworten
  • do…while
  • while
  • for
  • foreach

Frage 21

Frage
multiline comments declared with (PHP)
Antworten
  • /
  • we cannot comment lines in PHP
  • //
  • /* */

Frage 22

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

Frage 23

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

Frage 24

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

Frage 25

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

Frage 26

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

Frage 27

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

Frage 28

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

Frage 29

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

Frage 30

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

Frage 31

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

Frage 32

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

Frage 33

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

Frage 34

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

Frage 35

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

Frage 36

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

Frage 37

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

Frage 38

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

Frage 39

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

Frage 40

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

Frage 41

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

Frage 42

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

Frage 43

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

Frage 44

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

Frage 45

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

Frage 46

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

Frage 47

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

Frage 48

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

Frage 49

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

Frage 50

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

Frage 51

Frage
Which stylesheet has the second highest priority?
Antworten
  • Inline stylesheets
  • Internal stylesheets
  • External stylesheets
  • stylesheets

Frage 52

Frage
Which stylesheet has the third highest priority?
Antworten
  • Inline stylesheets
  • Internal stylesheets
  • stylesheets
  • External stylesheets

Frage 53

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

Frage 54

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

Frage 55

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

Frage 56

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

Frage 57

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

Frage 58

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

Frage 59

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

Frage 60

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

Frage 61

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

Frage 62

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

Frage 63

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

Frage 64

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

Frage 65

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

Frage 66

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

Frage 67

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

Frage 68

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

Frage 69

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

Frage 70

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

Frage 71

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

Frage 72

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

Frage 73

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

Frage 74

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

Frage 75

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

Frage 76

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

Frage 77

Frage
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)
Antworten
  • fixed()
  • fontcolor()
  • fontsize()
  • italics()

Frage 78

Frage
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)
Antworten
  • indexOf()
  • join()
  • lastIndexOf()
  • map()

Frage 79

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

Frage 80

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

Frage 81

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

Frage 82

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

Frage 83

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

Frage 84

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

Frage 85

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

Frage 86

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

Frage 87

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

Frage 88

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

Frage 89

Frage
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)
Antworten
  • anchor()
  • big()
  • blink()
  • italics()

Frage 90

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

Frage 91

Frage
Is JavaScript a case-sensitive language?
Antworten
  • true
  • false
  • not given

Frage 92

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

Frage 93

Frage
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)
Antworten
  • lastIndexOf()
  • search()
  • substr()
  • indexOf()

Frage 94

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

Frage 95

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

Frage 96

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

Frage 97

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

Frage 98

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

Frage 99

Frage
External JavaScript files have the file extension _____
Antworten
  • js
  • doc
  • jpg

Frage 100

Frage
Can functions return a value? (JavaScript)
Antworten
  • True
  • False

Frage 101

Frage
JavaScript objects are containers for _____________
Antworten
  • named values and methods
  • link
  • maps
  • fils

Frage 102

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

Frage 103

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

Frage 104

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

Frage 105

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

Frage 106

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

Frage 107

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

Frage 108

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

Frage 109

Frage
The smallest heading in HTML:
Antworten
  • <xmp><h1></xmp>
  • <xmp><h7></xmp>
  • <xmp><smallest></xmp>
  • <xmp><h6></xmp>

Frage 110

Frage
The <xmp><hr></xmp> tag has no closing tag in HTML
Antworten
  • True
  • False

Frage 111

Frage
The <xmp><br></xmp> tag has no closing tag in HTML
Antworten
  • True
  • False

Frage 112

Frage
The <xmp><u></xmp> tag has no closing tag in HTML
Antworten
  • True
  • False

Frage 113

Frage
The <xmp><ol></xmp> tag has no closing tag in HTML
Antworten
  • True
  • False

Frage 114

Frage
The <xmp><basefont></xmp> tag has no closing tag in HTML
Antworten
  • True
  • False

Frage 115

Frage
The <xmp><font></xmp>tag has no closing tag in HTML
Antworten
  • True
  • False

Frage 116

Frage
______________is the standard markup language used to create web pages
Antworten
  • PHP
  • CSS
  • JavaScript
  • HTML

Frage 117

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

Frage 118

Frage
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
Antworten
  • <xmp><basefont></xmp>
  • <xmp><abbr></xmp>
  • <xmp>< acronym ></xmp>
  • <xmp><center></xmp>

Frage 119

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

Frage 120

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

Frage 121

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

Frage 122

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

Frage 123

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

Frage 124

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

Frage 125

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

Frage 126

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

Frage 127

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

Frage 128

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

Frage 129

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

Frage 130

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

Frage 131

Frage
Which of the following property specifies the width of a border?
Antworten
  • :border-width
  • :border-left-width

Frage 132

Frage
CSS Comments:
Antworten
  • /* */
  • * *

Frage 133

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

Frage 134

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

Frage 135

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

Frage 136

Frage
Which stylesheet has the highest priority?
Antworten
  • Inlinestyle
  • :link

Frage 137

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

Frage 138

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

Frage 139

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

Frage 140

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

Frage 141

Frage
PHP stands for
Antworten
  • Hypertext Preprocessor
  • Hypertext Postprocessor

Frage 142

Frage
PHP files have a default file extension of _____ .
Antworten
  • php
  • p
  • css

Frage 143

Frage
PHP is a _______
Antworten
  • Server-scripting language
  • WEB-scripting language

Frage 144

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

Frage 145

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

Frage 146

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

Frage 147

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

Frage 148

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

Frage 149

Frage
Are all variable names case-sensitive in PHP?
Antworten
  • True
  • False

Frage 150

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

Frage 151

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

Frage 152

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

Frage 153

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

Frage 154

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

Frage 155

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

Frage 156

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

Frage 157

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

Frage 158

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

Frage 159

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

Frage 160

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

Frage 161

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

Frage 162

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

Frage 163

Frage
The PHP ________function returns the data type and value.
Antworten
  • var_dump()
  • var_value()

Frage 164

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

Frage 165

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

Frage 166

Frage
How do you write "Hello World" in PHP
Antworten
  • echo "Hello World";
  • "Hello World";

Frage 167

Frage
What is the correct way to end a PHP statement?
Antworten
  • ;
  • }
  • .

Frage 168

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

Frage 169

Frage
The PHP ______ function reverses a string.
Antworten
  • strrev
  • strtoupper()

Frage 170

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

Frage 171

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

Frage 172

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

Frage 173

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

Frage 174

Frage
Include files must have the file extension ".inc"
Antworten
  • True
  • False

Frage 175

Frage
When using the POST method, variables are displayed in the URL:
Antworten
  • True
  • False

Frage 176

Frage
In this example variable x has the _____scope. (PHP)
Antworten
  • LOCAL
  • GLOBAL

Frage 177

Frage
In this example variable x has the _____scope.(PHP)
Antworten
  • LOCAL
  • GLOBAL

Frage 178

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

Frage 179

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

Frage 180

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

Frage 181

Frage
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?
Antworten
  • border-width:11px 21px 51px 11px
  • border-width:11px 11px 51px 21px
  • border-width:51px 21px 11px 11px
  • border-width:11px 51px 21px 11px
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

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