NEW
Font size
Worksheetsquiz based on web design
Total questions: 40
Worksheet time: 23mins
If you want to align text to the right side of an block element in a cascading style sheet (CSS) then which of the following property would you use?
Right align
Justify
Left align
Text align
In a Javascript Application what function can be used to send messages to users requesting for an text input?
Display()
Alert()
GetOutput()
Prompt()
Assume that an HTML form is designed to purchase the furniture. All the items required are being checked. After selecting the items the payment details are entered and the submit button is pressed. From the following options which one would you prefer to send the data to the server. Assume that all the security is handled.
Only POST
Only GET
Either of GET or POST
Neither GET nor POST
Which of the following attributes of text box control allow to limit the maximum character?
size
len
maxlength
Both a and c
Which of the following is a container?
<SELECT>
<BODY>
<INPUT>
Both (a) and (b)
<DT> tag is designed to fit a single line of our web page but <DD> tag will accept a
line of text
full paragraph
word
request
From which tag the descriptive list starts?
<DT>
<DD>
<DL>
<DS>
Choose the correct option.
<th> is used for defining the heading of a table.
By default, contents written between <th> and </th> are bold and centered.
Both A and B
None of the above
Fill in the blanks with the help of options given below in order to get the following table when the below code is executed.
colspan= "1"
colspan= "2"
rowspan= "1"
rowspan= "2"
In order to add space of 20px between cell content and its border of a table in html, which one of the following option is appropriate?
th,td{ padding: 20px;}
table{ margin:20px; }
table{ border : 20px;}
table{ padding: 20px; }
Fill in the blanks with the help of options given below in order to get the following table when the below code is executed.
colspan= "1"
colspan= "2"
rowspan= "1"
rowspan= "2"
In HTML tables space between cell content and cell border is called
Cell spacing
Cell difference
Cell padding
All of above
Headings of table lies inside ___________
<thead>
<tfoot>
<th>
<tbody>
Fill in the blanks in the above HTML code with a suitable option so as to get the list as follows when executed in a browser.
style="list-style-type:square;"
style="list-type:square;"
style="type:square;"
style= "style:square;"
Fill in the blanks with a suitable option in order to number items of an ordered list with small roman numbers.
style= "type:i"
style= "list-style-type:i"
type= "i"
type= "small roman"
A HTML code is given below
Fill in the blanks with appropriate option to get the output as below:
<dd>,</dd>,<dt>,</dt>
<dt>,</dt>,<dd>,</dd>
<li>,</li>,<dd>,</dd>
<dt>,</dt>,<li>,</li>
What is the default item marker in unordered lists of HTML?
Circle
Marker
disc
None of the above
Which of the following is a new input attribute introduce by HTML5?
text
checkbox controls
submit buttons
date
Which element is used to create multi-line text input?
text
textarea
submit
radio button
Which attribute is not used for the radio type?
name
value
checked
selected
Choose the correct option.
Use of method attribute determines by which method the datas in the form will be submitted.
Method can be POST or GET.
Default method in HTML is GET.
All of the above
How more than one option can be selected in drop down?
Use of multiple attribute inside <option> tag.
Use of multiple attribute inside <select> tag.
use of multiple attribute inside <text> tag.
It is not possible to select more than one option in drop down.
when form data contains sensitive and personal information the which method is more preferable.
GET method
POST method
Host method
Put methods
The ______ tag defines an image in an HTML page.
<pic>
<image>
<imge>
<img>
Pseudo-classes In CSS
Match A Specified Element
Select The Active Links
Are Used To Select All The Visited Links
Are Used To Define A Special State Of An Element
What Should Be The Table Width, So That The Width Of A Table Adjust To The Current Width Of The Browser Window?
640 Pixels
100.00%
Full-screen
1024 Px
Which Of The Following Selector Selects All Elements Of E That Have The Attribute Attr That End With The Given Value?
E[attr^=value]
E[attr$=value]
E[attr*=value]
None Of The Mentioned
Which Of The Following Selector Selects The Elements That Are Checked?
E ~ F
::after
:checked
None Of The Mentioned
Which CSS Property Sets The Stack Order Of An Element?
Z-index
Position
Overflow
Clip
Given the HTML below, how would you select it by id?
< p id="dorothea" >Perhaps we don't always discriminate between sense and nonsense.< /p >
dorothea
#dorothea
.dorothea
None of the given.
Examine the HTML and accompanying CSS below.
< p id="opening-paragraph" class="dorothea" >Miss Brooke had that kind of beauty which seems to be thrown into relief by poor dress.< /p >
#opening-paragraph { color: blue; }
.dorothea { color: red; }
With which color will the paragraph appear on the page?
green
blue
red
black (the default)
< ul id="forest" >
< li class="evergreen" >< a >pine< /a >< /li >
< li class="evergreen" >< a >lodgepole< /a >< /li >
< li class="evergreen fruit" >< a >holly< /a >< /li >
< li class="leaf fruit" >< a >apple< /a >< /li >
< li class="leaf" >< a >oak< /a >< /li >
< li class="leaf" >< a >maple< /a >< /li>
< /ul >
There may be other lists on the page, in addition to the one above. Given that, what selector would you use to select all the list items in the forest's unordered list?
ul li
#forest li
ul>li
li
.important {
color:red;
}
In CSS, when we use a selector like .important, it means that:
important is not correct, there is no such selector in CSS
We are going to select all HTML elements that have a class="important" attribute/value, and the CSS rule will be applied to all these elements
We are going to select a single HTML element that has the id="important" attribute. Two HTML elements cannot have the same value for the id attribute (it must be unique and it acts as an identifier)
None of the given.
< p id="physics" class="rainbow" >Rainbows result from refraction of sunlight in falling water droplets plus reflection of the light from the back of the droplet.< /p >
p { color: blue; }
html, body { color: black; }
With which color will the paragraph appear?
black
blue
red
green
The property that applies an underline does not accept which of the value below?
underline
overline
line-through
italic
What will be the output of the following JavaScript statement?
var grand_Total=eval("10*10+5");
10*10+5
105 as a string
105 as an integer value
Exception is thrown
Will the following JavaScript code work?
var tensquared = (function(x) {return x*x;}(10));
Yes, perfectly
Error
Exception will be thrown
Memory leak
What will be the output of the following JavaScript code?
var string2Num=parseInt("123xyz");
123
123xyz
Exception
NaN
what will be the result of this code
<html>
<body>
<script>
var fruit = 'apple'
{
var fruit = 'orange'
document.write(fruit+"<br>")
}
document.write(fruit)
</script>
</body>
</html>
orange
orange
orange
apple
apple
apple
apple
orange
what will be the output of the following code
<html>
<body>
<script>
let fruit = 'apple'
{
let fruit = 'orange'
document.write(fruit+"<br>")
}
document.write(fruit)
</script>
</body>
</html>
orange
orange
apple
apple
orange
apple
apple
orange
