Font size
Worksheetshex Quiz
Total questions: 60
Worksheet time: 3600secs
Which symbol represents notes or comments?
<head>
<em>
<!--...-->
Change the border size of the body or image
border-style
border-width
border-color
width
The blue is called an _____________
Declaration
Selector
Property
Value
What are the three types of style sheet
Internal, external, inline
Inline, internal, extreme
Insidious, internal, external
None of the above
placed within his webpage?
Following CSS code is written -
<style>
a:link {
color:#FF0000;
}
a:visited {
color:#00FF00;
}
a:hover {
color:#FF00FF;
}
a:active {
color:#0000FF;
}
</style>
User have created 5 pages and included same css in each page. Each page having list of all 5 pages with links. User is currently viewing 5.html then color of 5.html will be _______.
RED
Green
BLUE
I don't know
How do you change the left margin of an element?
margin-left:
margin_left
left-margin:
How do you insert a comment in a CSS file?
/* this is a comment */
// this is a comment
// this is a comment //
can not comment in css
What is the usage of alt value in <img> tag?
Alternative text for an Image
Alternative source of an Image
Caption of an Image
All of above
When you use class selector
What should present infront of classname
#
&
@
.
What defines the beginning and ending of the visible part of a webpage?
<head> main part of the document </body>
<body> main part of the document </html>
d) </body> main part of the document <html>
<body> main part of the document </body>
The correct syntax for a rule set:
h1 {
property:value;
}
h1<
property:value
>
h1{
property;value;
}
h1{
value:property;
>
What is the output for this code?
The value of z is z
The value of z is 11
The value of z is: 11
The value of z is: x + y
What are variables? Choose two from the answers.
container for storing data
storing data values
A cupboard
hold a water in it
What is the value of x?
3
83
80
803
If I want to change the mathematical expression from addition into division, what symbol should I use?
/
*
-
x
If I want to change the mathematical expression from addition into multiplication, what symbol should I use?
/
*
-
x
JavaScript : value of z should be the increment of y. What operation should z use?
z = x ++ y
z += y
z = ++ y
z = z + y
JavaScript : What is the alert display for z?
Hello5
10
55
Hello15
What is first index value of an array?
2
-1
0
1
What is the value of:
”41” + 1
42
“42”
411
“411”
Which of these is a method?
getElementById( )
style
document
color
How do you create a function in JavaScript?
function:myFunction()
function = myFunction()
function myFunction()
Which of the following is primitive?
string
Array
Object
function
Which event occurs when the user clicks on an HTML element?
onmouseover
onmouseclick
onchange
onclick
Change the border size of the body or image
border-style
border-width
border-color
width
What css rule creates a flexbox container?
flex: box
display: flexbox
flex: container
display: flex
What are the two options for flex-direction?
row
vertical
column
horizontal
Which css value forces flex items onto a new line once the width of the container has been filled?
newline
wrap
continue
float
Which flexbox properties aligns items on the same axis as the flex-direction?
justify-content
align-items
align-content
justify-items
The CSS overflow property controls what happens to content that is too big to fit into an area.
True
False
Which of the following values does not belong to the overflow property?
visible
hidden
scroll
invisible
p {color: red;}
In CSS, colors can also be specified using RGB values, HEX values, HSL values, RGBA values, and HSLA values.
True
False
Which one of these variables has an ILLEGAL name?
$my_Var
$my-Var
All variables in PHP start with which symbol?
$
&
What is the CORRECT way to add 1 to the $count variable?
$count =+1
$count++;
PHP is executed on
The Server
The Browser
The Website
The Machine
We create re-usable code blocks by placing them inside?
Variables
Parameters
Code Blocks
Functions
What is a integer?
It's a Whole Number
It's a Decimal Number
It's a True or False Declaration
It's a String of Text
What if we want a block of code to execute several times?
Use a Variable
Use a Function
Use a Loop
Use a Leap
$colours = array("black, blue, Red, Green") - How do I access "Red" ?
$colours[0];
$colours[2];
$colours[1]
$colours[3];
What type of variable is this: $isMale = false;
Integer
Boolean
String
char
In an IF statement we can have 2 conditions tested. Which keyword allows this?
Else
if Else
Else if
OR
PHP stands for
Hypertext processor
Homepage processor
Hypertext preprocessor
$a = "Ram"; $n = "Kumar"; $fullName = $f + $n; What is the value of $fulName
RamKumar
Ram Kumar
Ram
None
Function calls can have____________ inside them.
Parameters
Arguments
Variables
Types
Get the length of the string "Hello World!".
Leng
substring
strlen
len
Use the correct function to output the number of items in an array.
$fruits = array("Apple", "Banana", "Orange");
echo $fruits[0]
echo $fruits["Apple"]
echo count($fruits)
echo $fruits[0][1]
