Jede Frage dieses Quiz ist zeitlich begrenzt. Drücke auf die Schaltfläche um das Quiz zu starten.
In CSS the selector .par matches
all <p> elements whose class is par
all <p> elements whose id is par
all <p> elements
all elements whose class is par
all elements whose id is par
In PHP what is the data type of the variable $c? $a = 10; $b = 1.238; $c = $a * $b;
string
array
float
integer
boolean
In CSS, which property would be used to allow an image to be positioned on the right?
overflow: hidden
float: right
clear: right
align: right
In CSS a rule has the syntax a { b : c ; }. In this rule the symbol a is known as a
comment
parameter
selector
value
property
Which of the following is not a valid variable in PHP?
$name
$1name
$name1
jim
$_name1
In CSS the selector #p matches
all <p> elements whose id is p
all elements whose id is p
all <p> elements whose class is p
all elements whose class is p
Considering the CSS box model, what is the final width of an element of this class: .item { width: 100px; margin: 10px; padding-left: 10px; padding-right: 0px; }
100
140
130
120
150
In CSS to apply color: red to h1 and h2 you could use the rule(s)
h1 { color : red; } h2 { color : blue; }
h1 { red : color; } h2 { red : color; }
h1:h2 { color : red; }
h1, h2 { color : red; }
h1.h2 { color : red; }
CSS enables links to be styled differently depending on what state they are in. To set the hover colour for a link to be white, one would code a CSS rule
a { color : white ; hover : true ;}
a { hover-color : white ;}
a:link { color : white ; }
d. a:hover { color : white ; }
e. a { color : white ; hover-dwell : true ;}
What is the order of priority (from highest to lowest) that styles are applied to an element?
default html style, embedded style, inline style, externally linked style
externally linked style, embedded style, inline style, default html style
embedded style, inline style, externally linked style, default html style
embedded style, externally linked style, inline style, default html style
inline style, embedded style, externally linked style, default html style style sheet, the browser default
In PHP, what will be the output of the following code $a = "hello "; $b = "world "; $c = 10; print $a . $c . $b ;
hello world
you will get an error
hello 10 world
hello
10
In CSS which property is used to control the background color?
bgcolor
background-color
color
colour
color-background
It is possible to define CSS in
only in external style sheets
only inline
only in internal style sheets
external style sheets, internal style sheets, and inline
only in external style sheets and internal style sheets
In CSS, what is the range for the R, G, B when specifying a color using rgb(R, G, B) ?
1-256
0-255
1-100
0-1
0xFFFFFF
In CSS the selector p matches
The background of a given HTML element can be manipulated with
you cannot change the background of an element
only background-image
only background-color
background-color, background-image
In PHP, what is the output of the following code $a = 2 + 3 * 5 + 10; print $a;
20
25
35
27
50
In CSS which property is used to control the horizontal alignment of text in an element?
center-align
alignment
align
text-align
center
In PHP what is the value of $a $s = "Hello World"; $a = $s[7];
7
"W"
"o"
"Hello"
In CSS, considering the CSS Box Model, would be the final width of an element with the following id? #item { width: 100px; border: 5px; margin: 5px; padding: 0px; }
0
105
115
Which of the following is a valid CSS selector ?
p color: red
p color: red;
p { color: red; }
p { color red }
p.color { red; }
if you wanted a CSS rule to have all paragraphs of class silly to be centered on the page, which CSS rule would you use?
p < silly { align: center; }
p.silly { align: center, }
p.silly { text-align: center; }
p
silly { text-align: center; }
The following PHP code has an error. What line is this error on? 0: $a = 10 + 1; 1: $b = "10" 2: if ($a <> $b) 3: { 4: print "Not equal"; 5: } 6: else 7: { 8: $b++; 9: }
5
1
4
Which of the following is the correct HTML to refer to an external style sheet style.css ?
<css rel="stylesheet" type="text/css" href="style.css">
<style> style.css</style>
<css> style.css</css>
<style "style.css\">
<link rel="stylesheet" type="text/css" href="style.css">
In CSS which property is used to control the size of the text?
text-size
text-style
font-size
font
font-style
The difference between serif and sans-serif fonts is thatThe difference between serif and sans-serif fonts is thatThe difference between serif and sans-serif fonts is thatThe difference between serif and sans-serif fonts is thatv
serif fonts are monospaced while sans-serif have variable width
sans-serif fonts have small lines at the end of some characters while serif do not
serif fonts have small lines at the end of some characters while sans-serif do not
sans-serif fonts are monospaced while serif have variable width
sans-serif fonts can be used without paying a royalty, while a royalty must be paid for serif fonts
In PHP, what is the output of the following code: $a = 10;
$b = "10";
if ($a == $b)
{
print "hello ";
}
print "world";
$a
$b
world
$a = "10"; $b = "20"; $c = $a * $b;
What does CSS stand for?
Cascading Style Sheets
Cascading Symbols and Symptoms
Computer Symbol Sheets
Computer Style Sheets
CSS does not stand for anything
$a = 10; $b = 5; print '$a*$b';
$a*$b
10*5
$a = 10; $b = 10; print "$a * $b";
$a * $b
10 * 10