Font size
WorksheetsHTML CSS JS Teacher Assessment
Total questions: 40
Worksheet time: 21mins
URL for link is specified using ___ attribute.
src
href
link
rel
For defining internal links in a page we use -
class
target
src
id
What is the correct syntax for writing ‘doctype’ in HTML5?
<!DOCTYPE HTML>
<!doctype html>
<!DOCTYPE html>
All of the above
To start a list at the count of 3, use -
<ol begin="3">
<ol start="3">
<ol num = "3">
<ol list="3">
Which of the following is used to open documents in a new window?
<a target="_self">Link</a>
<a target="_top">Link</a>
<a target="_parent">Link</a>
<a target="_blank">Link</a>
Which of the following will show an image located in folder named ‘image’, which is in the parent folder of the current page?
<img src="pic.img">
<img src="../pic.img">
<img src="../image/pic.img">
<img src="image/pic.img">
The element <DIV> has which of the following property?
provides some properties to some elements inside it
define content to be block-level
define content to be inline
none of the above
How will the elements in the given code be shown:
<img src=”img.jpg” width=”100” />
<a href=””>This is image</>
The link will be displayed above the image.
The link will be displayed next to the image.
The link will be displayed below the image.
The link will be displayed before the image.
Increasing the cell padding means -
increase the softness of your site
increase the space between cells
increase the distance between cell and content
all of the above
How will the code above look like in the browser?
Which attribute is used to provide an advisory text about an element or its contents?
tooltip
value
title
none of the above
Which element is used to take input from the user that can be sent to the server?
<form>
<label>
<input>
<select>
Adding which of the following to the input box makes it compulsory to be filled out when submitting the form?
type="required"
important
compulsory
required
To create a drop-down which tag will you use?
<select>
<list>
<input type="dropdown">
Any of the above
What does the action attribute define?
Specify the action to be performed on the form content.
Specify the address on the server to send the form content to.
Specify the method to call when the form is submitted.
None of the above.
Which of the following is not the keyword of form method attribute?
GET
POST
PUT
OUT
Which of the following attributes adds audio controls, like play, pause, and volume?
audio
source
src
controls
Which attribute gives the value associated with the http-equiv or name attribute?
content
name
charset
http-equiv
In which of the following ways can a submit button be created?
<input type=”submit” value=”Submit” />
<button>Submit</button>
<button type=”submit”>Submit</button>
<button submit>Submit</>
How to apply styles to para’s having class ‘style’? (There are other elements with the same class name)
p
p.style
p-style
.style
An HTML code is written as the following, how would this look in the browser?
None of the above.
Which of the following is not used with the text-decoration property?
overline
underline
line-through
inline
For the code:
<div>This is div.</div>
<span>This is span.</span>
<p>This is para.</p>
The page is as shown in figure above, How will the page look like, when the <span> and <p> elements are moved inside the <div> element and ‘display:inline;’ style is added to the <div> element?
None of the above.
The 3 boxes with the position value set are shown on the web page as in the image above, if the property “top: 0;” is added to the element with a blue border, then how will it be shown on the web page?
Which property is used to align flex lines?
align-items
justify-content
flex-align
align-content
In the shortened property flex: 1 0 auto; which property refers to the 2nd value (here 0)?
flex-grow
flex-basis
flex-shrink
flex-grow
A small necessary code is provided for the given flex container as shown in the image above -
.flex-container {
display: flex;
justify-content: space-between;
width: 300px;
flex-wrap: nowrap;
}
.flex-container > div {
background-color: #f1f1f1;
width: 50px;
margin: 10px;
}
What is the space between any of the 2 divs?
20px
30px
10px
15px
Which of the following media features can be used in defining a media query?
min-width
orientation
frame
max-height
The CSS for a web page is provided above. Now, what will be the background color of the page, when the width of the device is 600px?
lightgrey
lightblue
lightgreen
white
What can we achieve using Javascript?
Add visual graphics to the web page.
Add interaction on a web page.
Change HTML content on certain event conditions.
Handle events on buttons and inputs.
Which of the following are basic data types in Javascript?
integer
null
character
object
What will be printed on the console from the following code,
var a;
console.log(a);
0
undefined
null
Show error- "a is not defined"
What will the below line print on the console?
console.log(1 + '1')
98
11
2
Show error- "TypeMismatch"
Which of the following statements will print 'hii' at least once?
A
B
C
D
Which of the following will display an alert box on the web page?
window.alert();
alert();
Both of the above
None of the above
What will the below statement print on the console?
typeof( typeof( typeof( 100 ) ) )
"number"
"integer"
"string"
None of the above
Consider the code given below -
var arr = [ 1, , 3, 4 ];
What is the observation made?
The omitted values take "undefined".
This results in an error.
This results in an exception.
The omitted value takes an integer value 0.
What will be the output of the following code snippet?
var a = 1;
function b() {
a = 10;
return;
function a() { }
}
b();
console.log(a);
10
1
f b() { a=10; return; function a() {} }
a
What is the output of the following code?
var words = ['one', 'two', 'three', 'four'];
words.forEach(function(word) {
console.log(word);
if (word === 'two') {
words.shift();
}
});
two three four
one three four
one two four
one two three four
Which of the method will run a function 'abc' after 5 seconds?
setTimeOut(abc, 5000);
window.setTimeOut(abc, 5000);
Function.setTimeOut(abc, 5000);
None of the above
