Font size
WorksheetsWeb Mania - (Round 1)
Total questions: 25
Worksheet time: 19mins
Which HTML attribute is used to define inline styles?
class
style
font
styles
Which symbol is used for comments in CSS?
//
<!-- -->
/*
#
What is the purpose of the 'alt' attribute in an image tag?
To specify an alternative text if the image cannot be displayed
To define image size
To provide a link for the image
To define image resolution
What is the default display value for
in CSS?
inline
inline-block
block
flex
Which JavaScript function can be used to find the length of a string?
length()
getSize()
strlen()
sizeOf()
Which of the following specifies the distance between the borders of adjacent cells?
border-spacing-cell
border-width-spacing
border-spacing
cell-spacing
In CSS, how do you select an element with an id 'header'?
.header
header
#header
*header
What type of selector is used in this case?
p {line-height: 150%;}
class Selectors
element Selectors
id Selectors
none of the mentioned
What does API stands for?
Application Programming Interface
Advanced Programming Integration
Application Process Interface
Automated Programming Interface
Which of the following is not a valid HTML5 element?
<article>
<section>
<footer>
<blink>
Why JavaScript Engine is needed?
Both Compiling & Interpreting the JavaScript
Parsing the JavaScript
Interpreting the JavaScript
Compiling the JavaScript
Which of the following is used to center an element horizontally in CSS?
margin-left: auto; margin-right: auto;
text-align: center;
float: center;
padding: center;
In JavaScript, what is the 'this' keyword used for?
Refers to the current object
Refers to the previous function
Refers to the current function
Refers to a new object
In CSS, what is the 'z-index' property used for?
To determine the stacking order of elements
To adjust element opacity
To change element visibility
To add zoom effect
What will be the output of the following JavaScript code?
let a;
if (a !== null)
return 1;
else
return 0;
0
1
Runtime Error
Compiler Error
Which JavaScript method can be used to convert a JSON string into a JavaScript object?
JSON.parse()
JSON.stringify()
JSON.convert()
JSON.tobject()
What does DOM stand for in web development?
Document Object Model
Digital Object Management
Data Object Model
Document Oriented Model
Which is not a JavaScript data type?
Undefined
Number
Boolean
Float
Arrays in JavaScript are defined by which of the following statements?
It is an ordered list of values
It is an ordered list of objects
It is an ordered list of string
It is an ordered list of functions
In HTML5, which element is used to specify independent, self-contained content?
<article>
<section>
<aside>
<header>
In JavaScript, what will 'typeof undefined' return?
null
undefined
object
string
In CSS, how do you make text bold?
font-weight: bold;
text-style: bold;
font: bold;
weight: bold;
Which of the following CSS property defines the different properties of all four sides of an element’s border in a single declaration?
border
padding
border-collapse
border-width
The function definitions in JavaScript begins with _____________
Identifier and Parenthesis
Return type and Identifier
Return type, Function Keyword, Identifier and Parenthesis
Identifier and Return type
What does AJAX stand for?
Asynchronous JavaScript and XML
Advanced JavaScript and XML
Automated JavaScript and XML
Automated JavaScript and XML
