Frage 1
Frage
In CSS the selector .par matches
Antworten
-
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
Frage 2
Frage
In PHP what is the data type of the variable $c?
$a = 10;
$b = 1.238;
$c = $a * $b;
Antworten
-
string
-
array
-
float
-
integer
-
boolean
Frage 3
Frage
In CSS, which property would be used to allow an image to be positioned on the right?
Antworten
-
overflow: hidden
-
float: right
-
clear: right
-
align: right
Frage 4
Frage
In CSS a rule has the syntax a { b : c ; }. In this
rule the symbol a is known as a
Antworten
-
comment
-
parameter
-
selector
-
value
-
property
Frage 5
Frage
Which of the following is not a valid variable in PHP?
Antworten
-
$name
-
$1name
-
$name1
-
jim
-
$_name1
Frage 6
Frage
In CSS the selector #p matches
Antworten
-
all <p> elements whose id is p
-
all elements whose id is p
-
all <p> elements
-
all <p> elements whose class is p
-
all elements whose class is p
Frage 7
Frage
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;
}
Frage 8
Frage
In CSS to apply color: red to
h1 and h2 you could use the rule(s)
Frage 9
Frage
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
Antworten
-
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 ;}
Frage 10
Frage
What is the order of priority (from highest to lowest) that styles are applied to an element?
Antworten
-
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
Frage 11
Frage
In PHP, what will be the output of the following code
$a = "hello ";
$b = "world ";
$c = 10;
print $a . $c . $b ;
Antworten
-
hello world
-
you will get an error
-
hello 10 world
-
hello
-
10
Frage 12
Frage
In CSS which property is used to control the background
color?
Antworten
-
bgcolor
-
background-color
-
color
-
colour
-
color-background
Frage 13
Frage
It is possible to define CSS in
Antworten
-
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
Frage 14
Frage
In CSS, what is the range for the R, G, B when specifying a color using rgb(R, G, B) ?
Antworten
-
1-256
-
0-255
-
1-100
-
0-1
-
0xFFFFFF
Frage 15
Frage
In CSS the selector p matches
Antworten
-
all elements whose class is p
-
all <p> elements whose class is p
-
all <p> elements whose id is p
-
all <p> elements
-
all elements whose id is p
Frage 16
Frage
The background of a given HTML element can be manipulated with
Frage 17
Frage
In PHP, what is the output of the following code
$a = 2 + 3 * 5 + 10;
print $a;
Frage 18
Frage
In CSS which property is used to control the
horizontal alignment of text in an element?
Antworten
-
center-align
-
alignment
-
align
-
text-align
-
center
Frage 19
Frage
In PHP what is the value of $a
$s = "Hello World";
$a = $s[7];
Antworten
-
7
-
"W"
-
"o"
-
you will get an error
-
"Hello"
Frage 20
Frage
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;
}
Frage 21
Frage
Which of the following is a valid CSS selector ?
Antworten
-
p color: red
-
p color: red;
-
p { color: red; }
-
p { color red }
-
p.color { red; }
Frage 22
Frage
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?
Antworten
-
p < silly { align: center; }
-
p.silly { align: center, }
-
p.silly { text-align: center; }
-
p
-
silly { text-align: center; }
Frage 23
Frage
In PHP what is the data type of the variable $c?
$a = 10;
$b = 1.238;
$c = $a * $b;
Antworten
-
array
-
integer
-
string
-
boolean
-
float
Frage 24
Frage
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: }
Frage 25
Frage
Which of the following is the correct HTML to refer to an external style sheet style.css ?
Antworten
-
<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">
Frage 26
Frage
In CSS which property is used to control the
size of the text?
Antworten
-
text-size
-
text-style
-
font-size
-
font
-
font-style
Frage 27
Frage
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
Antworten
-
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
Frage 28
Frage
In PHP, what is the output of the following code:
$a = 10;
$b = "10";
if ($a == $b)
{
print "hello ";
}
print "world";
Antworten
-
$a
-
hello world
-
$b
-
world
-
10
Frage 29
Frage
$a = "10";
$b = "20";
$c = $a * $b;
Antworten
-
string
-
boolean
-
integer
-
float
-
array
Frage 30
Frage
What does CSS stand for?
Frage 31
Frage
$a = 10;
$b = 5;
print '$a*$b';
Antworten
-
50
-
$a*$b
-
10*5
-
you will get an error
Frage 32
Frage
$a = 10;
$b = 10;
print "$a * $b";
Antworten
-
$a * $b
-
you will get an error
-
100
-
10 * 10