HTML, CSS, Javascript
HTML, CSS, Javascript
Which of the following HTML tag is used to add a Num_options Difficulty Reference
row in a table? 4 Medium HTML
Which
What isproperty is used
the correct to set
syntax colors
to write aninHTML
HTML? 4 Medium HTML
comment?
Apart from <i> tag, which of the following tag is 4 Medium HTML
used to render a text in italics? 4 Medium HTML
How
Whatare
tagquotations definedan
is used to render in image
HTML?on a 4 Medium HTML
webpage?
Which of the following properties is used to 4 Medium HTML
change the font
Which HTML of text?
element is used to define 4 Medium HTML
description data?
Which of the following is the correct syntax for 4 Medium HTML
using the HTML style attribute? 4 Medium HTML
What
Whichisattribute
the function of the
is used HTML style
to provide attribute?
a unique name 4 Medium HTML
to an HTML element?
What are the attributes used to change the size 4 Medium HTML
of an image? 4 Medium HTML
What
Whichisofmeant by an empty
the following tag in HTML?
tags doesn’t require a 4 Medium HTML
closing tag? 4 Medium HTML
How to display preformatted text in HTML? 4 Medium HTML
Which of the following is correct about HTML? 4 Medium HTML
What is the effect of the <b> tag? 4 Medium HTML
What
Whichare the following
of the types of unordered
things are lists in HTML?
necessary to 4 Medium HTML
create an HTML page? 4 Medium HTML
Colors are defined in HTML using? 4 Medium HTML
Which
Which
The CSS of the
type offollowing
CSSwhich
property CSS
is used property
in
is usedtheto is used
below thetoset
code?
define
add
the stroke to the text? 4 Medium CSS
Thedifference
CSS property between
whichtwo lines to
is used of define
your content
the set
<p- style = "border:2px solid red;"> Which type of
is 4 Medium CSS
the difference between two lines of your content
CSS is used in the below code?
is - 4 Medium CSS
<p styleof= the
Which "border:2px
followingsolid
CSSred;">
property specifies 4 Medium CSS
Which of the following CSS property defines
the
howorigin of the
an image orbackground-image?
video fits into container with 4 Medium CSS
The CSS property used to set the distance
established height
between the bordersandofwidth?
the adjacent cells in the 4 Medium CSS
The CSS property used to make the rounded
table is - or rounded corners around an element is
borders, 4 Medium CSS
Which of the following CSS property is used to
-specify whether the table cells share the common 4 Medium CSS
or separate
Which of theborder?
following is used to specify the 4 Medium CSS
Which of the following CSS property is used to
subscript
specify ofspace
the text using CSS?every letter inside an 4 Medium CSS
The CSS propertybetween
used to specify whether the
element?
text is written in the horizontal 4 Medium CSS
Which of the following syntax isorcorrect
verticalin CSS to
direction?
make 4 Medium CSS
Whicheach word
of the of a sentence
following start with
is the correct syntaxa capital
to
letter?
make the background-color of all paragraph 4 Medium CSS
elements to yellow?
Which of the following is the correct syntax to 4 Medium CSS
display
Whichofthe
ofthehyperlinks
followingwithout
thefollowing is the any underline?
correct syntax for 4 Medium CSS
Which has introduced text, list,
referring the external style sheet?
box, margin, border, color, and background 4 Medium CSS
properties?
Which of the following CSS framework is used to 4 Medium CSS
create a responsive design? 4 Medium CSS
Which of the following CSS selector is used to
specify a rule to bind a particular unique
element?
Which of the following type of HTML tag is used 4 Medium CSS
to define
Which of an
theinternal
following style
is thesheet?
correct output for the 4 Medium CSS
following JavaScript
See the given code of JavaScript and choose the code:
Which
correctof the following
output from thegivenfunctions
following: of the
Number
var Object formats a number with a different
grade='C';
Which
What
number
var
Find ofof
will
result;
out the
be following
the
digits output
to the function
of the
right of following
the
following
ofofthe
the String
JavaScript
decimal? 4 Medium JAVA Script
Which
functioncomparing()
object
code? ofthe
the
returns
correct
following
the
output
number
character in object
the string
given
function
starting
switch(grade)
piece
{returns ofthecode valuefrom of the
the given
number?options: 4 Medium JAVA Script
at
{intx=9; the specified position via the specified number
of
functioncomparison()
case'A':
functionfun() characters? 4 Medium JAVA Script
chary=9;
{{Suppose
In JavaScript we have the a text statement
x===y "human" that we want to
Choose
if(x==y)
"Which
int the
of
number=10; thecorrect
followingsnippet from
is the theimplies
correct outputthat:
following forto 4 Medium JAVA Script
convert
int
returntrue; into
result+="10";
y=10; string without using the "new"
the
check
if(number==="10") following
if the JavaScript
variable "a" code:
is not equal the "NULL": 4 Medium JAVA Script
operator.
break;
char
else Whichz=10;of Which is the correct
the following way from
is the correct the for
output
returntrue;
following
}the
if(y.tostring()===z) followingto do so:
JavaScript code: 4 Medium JAVA Script
returnfalse;
var
else grade='D';
case'B':
returntrue;
}returnfalse;
var result; 4 Medium JAVA Script
{varx=5,y=1 Which of the following is the correct output for
else
switch(grade)
the Which of theJavaScript
following following iscode: the correct output for
}What
In
var
returnfalse; the
obj following
={
will x:10}
result+="
happen, given
9"; if syntax
the of the
following switch code
JavaScript 4 Medium JAVA Script
the
{Which following
of these JavaScript code:
functions ofisthe Number Object
statement,
with(obj)
break;
}case'A':
is executed? the Expression compared with the 4 Medium JAVA Script
would
Int
}labels
{var grade='Z'; x=8; format a number with
using which one of the following different numbers of
digits
"if(x>9)
operators? Whichresult+=""10"";
to the
of decimal’s
the following right?
is the correct output for 4 Medium Java script
case'C':
var
case'B': alert(y)=0;
count
result;
{switch(expression)
the
} following
{while JavaScript code: 4 Medium Java script
switch(grade) (count <10)
result+=""
document.write(9); 9"";
{{ result+=" 8";
The
}case'C':
var "function"
statements
x=3; and " var" are known as: 4 Medium Java script
break;
case'A': console.log(count);
result+="" 8"";
else
} count++;
}var y=2; 4 Medium Java script
case
{var result+="10";
'D'
default:z=0;
}document.write(x);
case'B': 4 Medium Java script
result+=""
If(x==y) 6"";
result+="
default: result+=" 0";9";
}document.write(x);
} 4 Medium Java script
case'C':result+="" 0"";
elseif(x==y)
document.write(result);
result+=" 8"; 4 Medium Java script
}document.write(x);
default:
document.write(result); " 4 Medium Java script
else result+=" 0";
document.write(z);
} " 4 Medium JAVA Script
document.write(result);
Which one of the following is the correct way 4 Medium Java script
for calling the JavaScript code? 4 Medium Java script
option_1 option_2 option_3
<th> <td> <tr>
color background-color font-color
<!-- Comment --> // Comment # Comment
<em> <strong> <b>
<quote> <block> <blockquote>
image src img
text-align font-size font-family
<li> <dd> <ol>
It is used to add
<tagname style ><tagname
styles to an HTML style = “property;”>
It is used to uniquely identify some <tagname style = “property: value;”
element. specific styles of some element. Both 1 and 2.
id class type
There is no such
Top and of
concept bottom
an Big and Small
An empty tag does not require a Left and right
An empty tag cannot have any content
empty tag in HTML closing tag within it
<head> <hr> <br>
<p>
HTML usesthe
User <pre>
HTML uses tags defined within the <hr>
It converts text
Defined Tags.
within it to bold language. Both 1 and 2.
font.
Circle, square, It is used to write black-colored font. It is used to change the font size.
disc. Triangle, Square, disc. Triangle, Circle, Disc.
Web Browser A text editor. Both 1 and 2.
RGB Values HEX Values RGBA values
toLocaleString() option_2
toPrecision() option_2
search() option_3
Both are not same a option_3
if(a!=null) option_1
Both human.toStrin option_4
1 option_4
compilation error option_1
1 option_ 4
toPrecision() option_1
5 option_1
Prototypes option_3
equals option_1
The value of count option_3
Undefined option_3
0 option_3
0 option_2
2 option_2
0 option_4
Function/Method option_4
Explanation
In HTML, <tr> tag is used to create a row in the table. <th> tag is
used to setproperty
The color the header cell of a table.
is used to set and change colors in HTML.
The correct syntax of writing an HTML comment is shown in option A.
The <em> tag is used to emphasize text, which puts same effect as
<i>
Thetag.
<blockquote> tag is used to define a section that is quoted from
another source.
The img tag is used to display an image on a webpage
The font-family property is used to change text font in HTML
Description data is defined by <dd> tag.
The HTML style attribute is used to add styles like font, color, and
The
size correct syntax
to an HTML for the style attribute is shown in Option A.
element.
An id is used to provide a unique name for an HTML element that can
be used to identify it.
Width andempty
In HTML, Heighttags
attributes are tags
are those usedthat
to change the size
don’t require of an image
a closing tag
for completion
Both the <hr> and the <br> tag doesn’t require a closing tag
<pre> tags is used to handle preformatted text in HTML.
HTML can only use the tags defined within the language.
<b>
The is used to convert
unordered the text
lists in HTML within
can formit bullets
to boldoffont.
form Circle, Square
and Disc
With a text
Colors editor and
are defined a web
using browser
RGB, we can
HEX, HSL, createHSLA
RGBA, an HTML page
values or
with predefined color names
TheCSS
The text-stroke
line-height property in CSS
property is usedis used to addthe
to define a stroke
minimal to the textof
height
and
line also provides
boxes within thedecoration
element. options
It for differences
them. It defines the color
Thewidth
and CSS of line-height
strokes for property is used to define the minimal heighttwo
text characters
sets the between the of
lines
The boxes
line of your content.
background-origin
within the element.It defines
CSS property Itthesets amount
helps
the of
usspace
to adjust
differences above
betweenthe and thebelow
two
inline
background
lines elements. image of Itthe webpage. It specifies the background-
If youofwant
position
yourto content.
area, i.e., use theinline defines
CSS,
origin
the should
of you
amount
a background
of space
use the style
image.
above
This
and below
attribute
CSS to
inline
the elements.
relevant
property
The will tag.
object-fit notCSS
The inline
work whenCSS
property the is also
value
specifies ofathe
how
method to insert style
background-attachment
a video or an image is
sheets
is in
set to to HTML
befitfixed. document.
It is similar
resized its content box. Ittodefinesthe background-clip
how an element property,
fits intoexcept
the
that it
container resizes
with the
an background
established instead
width and of clipping
height. It it.
is generally applied
This CSS property is used to set the distance between the borders of
to
the images
adjacent or cells
videos. in the property
table. It applies
In
The
The
CSS, the vertical-align
border-radius
border-collapse CSSCSS
property
property setsis theonly
is used
used roundedwhenborders
to make
to set the
the text
the border-
borderand of used
the to
collapse
superscript
provides property
the or rounded is set
subscript. to
cornersseparate.
The "sub"
around of vertical-align
an element, property
tags, or is
div. It
table
make cells
the and
text specifies
subscript whether
incorners
CSS. the
The table
subscript cells share
text appears a separate
in a or
defines
The
common the radius
letter-spacing
border. of the
property
Thishalf property in CSS of
has belowan
is element.
used
two main to control
values that the space
are separate
smaller
between font
everyandletter
the inside character
an element orthethenormal
block ofline. text.It Itissets the
and collapse.
generally used to between
write chemical equationsoforthe chemical formulas such
spacing
The behavior
writing-mode CSS property the characters
specifies whether text. theUsing
text is this
written
as H2O,
property, H2SO4,
we can etc.
increase or decrease theproperty
space between the
in
The thetext-transform
vertical or horizontal
CSS property direction. allowsThis us to change setsthe whether
case ofthe the
characters
lines ofistext of the
aretolaidtext.out vertically or horizontally. It specifiesvalue the of
text.
The It used
background-color control text
propertyflowscapitalization.
in CSS is used The "capitalize"
to change the
direction
the in which the
text-transform content
property transforms on thethe page.
first character of each word
background
The color
text-decoration of an element.
property in CSS The correct
is used syntax
to after
decorate to make the thecontent
to uppercase.
background It will
color of not
all capitalize
paragraph the first
elements letter
to yellow the
is: number.
p
of the text.isIt aadds
Bootstrap free lines under, above, and through the fortext. It sets the
{background-color
appearance of :and
decorative
open-source
yellow;}. lines on
collection
text. The
of tools
correct syntax
creating
to display
websites and web applications. It contains
The external style sheet is generally used when you want to make HTML- and CSS-based
the
designhyperlinks
changes templates without any
for typography, underline forms,is: a {text-decoration
buttons, navigation : none;}.
and other
CSS is aon
interface
multiple
style
components, sheetpages.
language
asput
well
It uses
as that the
stands
optional
<link> for tag on everyStyle
Cascading
JavaScript
pages
extensions. It
and
the
Sheet.<link> tag should be inside the head section.
aims toCSS easehas the introduced
development text, of list,
dynamicbox, margin,
websites border,
and web color, and
background
applications. properties.
advertisement
document.write(true);
}
else{
document.write(false);
}
if (a===b){
Fordocument.write(true);
binding a particular unique element, id selectors are used. While
}else
for a group
<style> tag of elements,
is used classanselector
to define
{ document.write(false); internalcan besheet
style used.in HTML
document.
}
</script>
The "tofixed()" method formats the given number with a specific
</body>
The
number "=="ofisdigits only true to the if the
right type
of theanddecimal.
the content of both operands are
</html>
The
the method
same. The " valueOf()"
"==" is also returns
one ofthe
the value
common of the parameter
abstracts used thatforwas
The
Output method " Subtr()" in the javascript is used to return the
passed
comparing
characters in it.in
twothe operands
string startingto check whether
at the theyposition
specified are equal viaorthe not but it
will notcheck
specified number the data of the type of the variables. So, the "! ==" operator is
characters.
True
known as "non-equal", which is to
used in ourthe case,
There are
False three common ways convert text to into compare 0 to
NULL. It obtains the output
strings:value.toString(),"" + either and
value as true or false that
String(value). We totally
can dependsa
convert
The
on
The to "=="
the given
"===" operatorconverts
conditions.
is known as a strictthe both operand
comparison to the
operator same type
which will result in case
text
they string
both are without
of using
different "new"
datatype operator
and that
perform are: human.tostring()
comparison. A strict
as
Wetrue
and thewhen
can another
convert theaonedata-type, content
is String(human).
non-string "integer of" operand
into are by
a string theusing
same. For
the
comparison
example, will
Inmethod. give
JavaScript, true as output only when the content and the
".tostring()"
data type of both sequence, Thetwo
operands "===" strings
are (or
same.
cancan
we besay
considered as strict equal
strict comparison)
when the length, and same
results in true only when, the content and the data-type of the characters, are the same
when compared to each other.
operands are the same. So that's why the output of the above-given
The
codeoutputwill beofobtained the above as snippet
true. code will be one because, first of all,
The strict comparison
the interpreter will search operator
"obj" for returns true only(y).
the property if the
Butoperand
it fails toare findof
NA
the
"obj" same
for type and
property content
"y," so it matches.
chooses a When from
value the switch
outside statement
the object, is
The "function"
executed, the and "var"
value of theboth are the Declaration
expression is calculated statements.
and compared These to
which
both is available
are used for within theand
defining, given code. variable, function in
declaring
The
theThe "if-else"
case labels, is one
and of the
looks conditional
for a case statements
whose available
expressions in
produce the
The code
anywhere function
JavaScript
of the
in the given program
"console.log
program. uses
()"languages.
used a switch
in the above statement,
function isinone
which the
of the
same
value value
of
pre-defined thelike after several
expression
functions of
other
evaluations is (whereItwith
compared
JavaScript. the
takes
Here the
comparison
thevalues comparison
available as isarguments
determined
case labels. by If
performed
the
the ===
value in the "if"with
operator).
matches statement
any case evaluates
label, thetocode
false,written
so the instructions
passed
written intothe
it, andelse displays
partcase getsthat value in arguments
executed. insideperformed
the console
corresponding
when the code to
is that
executed. is executedIfotherwise
the comparison the instruction in
the
written"if" statement
to the default evaluates
is code
executed.to true, then
Another the instruction
important point written
is the
thatin the
Ifstatement
we look
ifswitch atwillthe begiven
executed. carefully, we can see that here
"break" statements
statement are also
is not used used afteras an alternative
any of themore casethanto "if-else"
labels.
The "if-and
statements if" statement
to cases theiscomplexity
reducefollowing used to examine
and size ofifthe code.oneWhichcondition.
means all the "A" get
This is an extension of the "if-else" statement and is also known as executes the following
program
the "if-else is ladder".
executed. We can contains extend the "if-else" statement tothecheck
The switch
The JavaScript casecode statement
can be called simply several bycases
making in the
which function call
several
Default conditions.
case also
to the element on one
which of the
them. The default
JavaScript code case only is has
execution get executed,
to be run.
when
There no areother
several case matches
other ways with to calltheJavaScript
expression's code value.
such as submit,
onclick, and onload, etc.
Question Num_options Difficulty Reference
<TD> … </TD> tag is used for _______ 4 Medium HTML
Which is true to change the text color to red? 4 Medium HTML
Why "href" attribute is used with <a> tag? 4 Medium HTML
Which ____ attribute specifies where to open the linked docum 4 Medium HTML
Which HTML tag is used to define a hyperlink? 4 Medium HTML
Which tag is used to override the current text direction? 4 Medium HTML
What HTML tag is used to define the contact information for the 4 Medium HTML
What is the correct HTML syntax of <abbr> tag? 4 Medium HTML
Which HTML tag is used to define an abbreviation or an acron 4 Medium HTML
Which HTML tag is used to define a table? 4 Medium HTML
Each table cell is defined by a ____ tag. 4 Medium HTML
Which tag is used to define ordered listing? 4 Medium HTML
Which tag is used to create an HTML form for user input? 4 Medium HTML
Which tag is used to display a single-line text input field? 4 Medium HTML
Which input type reset defines a reset button that will reset all f 4 Medium HTML
Which tag is a block-level element? 4 Medium HTML
Which attribute is often used to point to a class name in a style 4 Medium HTML
Which is the correct HTML statement to display H2O in a parag 4 Medium HTML
Which HTML tag is used to define superscript text? 4 Medium HTML
Which HTML tag is used to define underline inserted text? 4 Medium HTML
style
color: red, text-decoration: underline font
works only font-style: italic works
-chrome -web
<link rel=”stylesheet” src=”style.css”
<link rel=”stylesheet” href=”style.css” /> />
CSS level 2 (X)HTML CSS
gradient() linear-gradient()
background-image-source background-image
border-collapse border-width
in an external CSS file inside an HTML element
font-size text-size
margin color
writing-mode text-indent
text-style : capital; transform : capitalize;
p {background-color : yellow;} p {background-color : #yellow;}
a {text-decoration : underline;} a {decoration : no-underline;}
<style src = example.css> <style src = "example.css" >
bgcolor color
background-attachment background-image
font-weight : bold weight: bold
margin-left margin-right
toExponential() toFixed()
slice() split()
compilation error 0
search() substr()
if (a!) if(a!=null)
Function literal Function prototype
Functional Expression Property Access Expression
in within
Prototypes Properties
Hey There Hey_There
= ==
object boolean
debugger use strict
// \\
An object A String
Prototype of a function Function x
isarrayType() ===
goto statement break statement
a [ “x” ] ( g , h ); x (g) &&a.x (h);
function main
option_3 option_4 option_5
Table row None of the above
<BODY COLOR=RED> None of the above
To define destination URL All of the above
src target
<hyperlink> Both 1 and 2
<bdr> <abbr of the above
None
acronym="abbreviation
<address> <addr>
or
<abbr abbreviation="abbreviation or acronym">Text</abbr>
<acronym> acronym">Text</abbr>
<acr>
<tr> <th>
<th> ... </th> <td> ... </td>
<list> ... </list> <li> ... </li>
<form_get> <input>
<input type="text"> <input type="submit">
reset refresh
<div> ... </div> <divx> ... </divx>
src class
<p>H<sub>2</
<p>H<below>2</below>O</p> sub>O</p>
<s> <superscripted>
<text-decoration> <u>
text-decoration:
font-style @font-face
underline and font-style:
color: red, text-decoration: underline and font-style: italic all w italic works
-o- -webkit
<style rel=”stylesheet”
<style rel=”stylesheet” src=”style.css” /> link=”style.css” />
CSS level 1 CSS level 2.1
grayscale() image()
border-image-source border-image
padding border
inside the <head> section of an HTML page all of the mentioned
text size
width height
word-break None of the above
text-transform :
text-transform : capital; capitalize;
all p {background-color :
all {background-color : yellow;} #yellow;}
<link rel="stylesheet"
a {text-decoration : none;} None of the above
type="text/css"
<stylesheet> example.css </stylesheet> href="example.css">
background-color All of the above
background-color None of the above
font: bold style: bold
margin None of the above
toPrecision() toLocaleString()
substr() search()
runtime error 1
split() slice()
if(a!==null) if(a!null)
Function declaration Function calling
Primary Expression Invocation Expression
exist exists
Lvalue Definition
HeyThere undefined
=== &&
string undefined
with if
\* */ \* *\
Floating point An integer
Not valid A custom constructor
== Typeof
continue statement return statement
x( g&&h ); a (x )[ “g” , “h” ];
init Void
Correct Explanation
option_2
The href attribute of the <a> tag is most important, which indicates the link's destination.
option_2
option_3
option_4 The “target” attribute specifies where to open the linked document.
The HTML tag <bdo> is used to override the current text direction.
option_1 The HTML <a> tag defines a hyperlink.
option_2
The correct HTML syntax of <abbr> tag is,
option_3 The HTML tag <address> is used to define the contact information for the author/owner of a document or an a
The HTML tag <abbr> is used to define an abbreviation or an acronym.
option_1 <abbr title="abbreviation or acronym">Text</abbr>
The HTML tag <table> is used to define a table.
option_2
Each table cell is defined by a <td>and a </td> tag.
option_1
The HTML tag <ol> ... </ol> is used to define ordered listing.
option_4
The HTML tag <form> is used to create an HTML form for user input.
option_1
The HTML tag <input type="text"> is used to display a single-line input field.
option_1
The reset input type reset defines a reset button that will reset all form values to their default values. Here is th
option_3
The HTML tag <div> ... </div> is a block-level element.
option_3 <input type="reset">
The class attribute is often used to point to a class name in a style sheet.
option_3
The correct HTML statement to display H2O in a paragraph is: <p>H<sub>2</sub>O</p>
option_4
The HTML <sup> tag is used to define superscript text.
option_4
The HTML tag <ins> is used to define underline inserted text.
option_1
option_2
option_3 font-style property is used to specify an italic text. font-style property has three values (normal, italic & oblique)
option_2 In this case, we should see the browser continue to parse the value of color as “red text-decoration: underline
option_4 Browser sometimes adds prefixes to non-standard CSS properties. CSS Extension prefix for Webkit is -webkit
option_1 HTML file must contain a reference to the external style sheet file. External style sheet files are defined within t
option_3 The first CSS specification to become an official W3C Recommendation is CSS level 1, published
option_2 linear-gradient() function defines a linear gradient as a CSS image. Creating a linear gradient function we sho
option_3 The border-image-source property specifies the path to the image to be used as a border (instead of the norma
option_2 The border-width property sets the width of an element’s four borders. This property can have from one to four
CSS Syntax:
option_4 We can style
font-size: the| document
length percentageusing CSS
| larger in three| different
| smaller xx-small ways i.e embed,
| x-small | inline and external. An inline CSS me
option_1 small | medium | large | x-large | xx-larger | inherit
option_2 CSS box model include height, width, padding, margin and border. All text-fields have complete support for eve
option_1 The writing-mode CSS property specifies whether the text is written in the vertical or horizontal direction. This
option_4 The text-transform CSS property allows us to change the case of the text. It is used to control text capitalizatio
option_1 The background-color property in CSS is used to change the background color of an element. The correct syn
option_3 The text-decoration property in CSS is used to decorate the content of the text. It adds lines under, above, an
option_4 The external style sheet is generally used when you want to make changes on multiple pages. It uses the <link
option_3 The background-color property is used to specify the background color of an element. The background of an e
option_2 The background-image property is used to set an image as a background of an element. By default the image
option_1 The font-weight property is used for setting the thickness and boldness of the font. It is used to define the weig
option_3 CSS Margin property is used to define the space around elements. The Top, bottom, left and right margin can
option_2 The "tofixed()" method formats the given number with a specific number of digits to the right of the decimal.
option_3 The method " Subtr()" in the javascript is used to return the characters in the string starting at the spec
option_4 The "==" operatorconverts the both operand to the same type in case they both are of different datatype and p
option_2 NA
option_3 NA
option_1 NA
option_4 NA
option_1 NA
option_3 NA
option_3 NA
option_2 NA
option_4 NA
option_2 NA
option_1 NA
option_2 NA
option_1 NA
option_1 NA
option_4 NA
option_1 NA
option_1 NA
wner of a document or an article.
ave complete support for every property related to CSS box model. Browser relies on system default styles when displaying these widgets.
or horizontal direction. This property sets whether the lines of text are laid out vertically or horizontally. It specifies the direction in which the
d to control text capitalization. The "capitalize" value of the text-transform property transforms the first character of each word to uppercase.
an element. The correct syntax to make the background color of all paragraph elements to yellow is: p {background-color : yellow;}.
adds lines under, above, and through the text. It sets the appearance of decorative lines on text. The correct syntax to display the hyperlink
ltiple pages. It uses the <link> tag on every pages and the <link> tag should be put inside the head section.
ent. The background of an element covers the total size, including the padding and border and excluding margin.
ement. By default the image covers the entire element.
It is used to define the weight of the text. The available weight depends on the font-family, which is used by the browser.
m, left and right margin can be changed independently using separate properties. By using the shorthand margin property we can change a
ite all the needed style in <style></style> tag in the head section of the HTML document. We can create an external style sheet and provid
vertical-align:
vertical-align: sub vertical-align: super subscript
line-height None of the above
min-height property max-height property property None of the above
text-decoration pallet colour color
static position fix set
:checked E~F ::after none of the menti
scroll hidden auto all of the mentione
table:border table border none of the menti
text-align align text none of the menti
y-index
text-decoration: line- z-index x-index
text-decoration: all of the mentione
through text-decoration: none overline text-decoration: un
visibility property background-clip property clip-path property None of the above
text-decoration
text-indent property text-stroke property property text-overflow prope
order property float property overflow property None of the above
quotes property z-index property hyphens property
text-transform None of the above
font-stretch property font-weight property property
text-shadow font-variant proper
background-
text-align property
background-blend- text-transform property property
transform text-decoration
mode property background-collapse property property background-origin
tag id class both class and tag
heading
text-decoration: bold font-weight: bold font-style: bold
becomes dark- text-align: bold
nothings happen error occurs green heading becomes
1 Error If-then-else 10 5
Alternative to if-else Switch statement statement
Code 1 and immediate if
block that combines a number Both
both conditional
Code 1 Code 2
of statements into a single Code 2 a
block and Cannot Compare
Conditional block compound
Prompts to statement
complete the single statement block that contains
Shows a warning statement Throws an error Ignores the statem
Declaration
The values of
Keywords Data types statements
count variable
Assembly- Prototypes
Object-Oriented Object-Based are logged
language or High-level
stored in a
=== equals ==
particular location equals
An error is displayed An exception is thrown or storage The value of count
9 0 8 Undefined
10 9 8 0
10 6 33 0
3 0 Error 2
10 17 The two of the 18 0
Global variable The local element above None of the above
Preprocessor Triggering Event RMI Function/Method
Mutable variable Dynamic variable Volatile variable Immutable variable
option_1 In CSS, the vertical-align property is used to make the text superscript or subscript. The "sub" of vertical-align
option_3 The CSS line-height property is used to define the minimal height of line boxes within the element. It sets the d
option_4 The color property is used to set the color of the text. In CSS, colors can also be specified using RGB values, R
option_2 Position
:checkedproperty
selectorcontrols
selects how an element
the elements thatis are
positioned.
checked.When set to absolute or fixed, the element is removed
option_1 Example:
Overflow :checked
of or {color:
a divproperty blue;}
a container
In CSS, border is usedcan have the
to specify following
table values:
borders.
option_4 visible|hidden|scroll|auto|initial|inherit
Example:
In CSS, text-align property is used to align the text in a table.
option_3 table{border:
Example: 7px solid black;}
z-index property sets the stacking order of positioned elements.
option_1 table{text-align:
Syntax: left;}
option_2 z-index: auto|number|initial|inherit;
option_3 The text-decoration is a CSS property that decorates the content of the text. It sets the kind of text-decoration
option_3 The clip-path CSS property is used to create a clipping region and specifies the element's area that sho
option_1 This CSS property sets the indentation of the first line in a block of text. It specifies the amount of horizontal sp
option_1 This CSS property specifies the order of the flex item in the grid container or flex. It is basically used for orderin
option_1 The quotes property in CSS specifies the type of quotation mark for the quotation used in the sentence. It defin
option_1 The font-stretch property in CSS allows us to select a normal, expanded, or condensed face from the font's fam
option_1 The text-align property in CSS is used to set the horizontal alignment of a table-cell box or the block element. I
option_1 The background-blend-mode property in CSS is used to set the blend mode for each background layer (image
option_3 Class selectors are used to specify a group of elements. Id selector specifies a particular unique element.
option_2 The font-weight property is used for setting the thickness and boldness of the font. It is used to define the weig
option_1 Output of the above code snippet won’t happen as the declaration syntax is wrong. The correct declaration is :
option_1 The output of the above snippet code will be one because, first of all, the interpreter will search "obj" for the pro
option_4 A conditional expression can only evaluate two things, which either true or false, that are purely based on the e
option_1 Code 1 will be more efficient. In fact, the second code may encounter a runtime error because the value of "nu
option_2 A block of statement can be understand as the set of the zero or more statements. In general, a block of statem
option_4 In JavaScript, when the interpreter encounters a empty statements it normally ignores or not response to that e
option_3 The "function" and "var" both are the Declaration statements. These both are used for defining, and declaring v
option_2 JavaScript is not a pure OOP's (object oriented programming) based languages such as PHP, java or many ot
option_1 The strict comparison operator returns true only if the operand are of the same type and content matches. Whe
option_3 The function "console.log ()" used in the above function is one of the pre-defined functions of JavaScript. It tak
option_3 The "if-else" is one of the conditional statements available in JavaScript like several other languages. Here the
option_3 The code of the given program uses a switch statement, in which the value of the expression is compared with
option_2 If we look at the given code carefully, we can see that here the "break" statement is not used after any of the c
option_2 The "if-and if" statement is used to examine more than one condition. This is an extension of the "if-else" statem
option_4 The switch case statement contains several cases in which the Default case also one of them. The default cas
option_2 In JavaScript, the local variable takes precedence over the global variable if the name of both local and global
option_4 The JavaScript code can be called simply by making the function call to the element on which the JavaScript c
option_1 The variables whose value can be modified that kind of variable are known as Mutable variable. In the JavaSc
option_4 In general, the X and x both can be used to denote the hexadecimal values, so any integer literal that begins w
option_3 In the case, where the result of any arithmetic expression is beyond the largest represent-able number,JavaSc
option_3 Yes, you heard right that division of any integer by zero is not an error in the JavaScript. It just prints the infinity
ng website’s frontend.
pacity of a color.
tains all the contents and tags of the HTML document within it.
t. The "sub" of vertical-align property is used to make the text subscript in CSS. The subscript text appears in a smaller font and the half ch
thin the element. It sets the differences between the two lines of your content. It defines the amount of space above and below inline eleme
pecified using RGB values, RGBA values, HSL values, HEX values, etc.
xed, the element is removed completely from the normal flow of the document. When set to relative, the element is moved relative to its pos
er will search "obj" for the property (y). But it fails to find "obj" for property "y," so it chooses a value from outside the object, which is availab
hat are purely based on the evaluation of the condition
ror because the value of "number" is never going to be equal to or less than one.
In general, a block of statement has common definition "which combines one or a number of statements into a single statement for ease.
res or not response to that empty statement. The empty statements also sometimes very useful like we use the empty statements for creat
for defining, and declaring variable, function in anywhere in the program.
uch as PHP, java or many other languages, although it is an object-based language. It is not OOP's based language, because it doesn't hav
e and content matches. When the switch statement is executed, the value of the expression is calculated and compared to the case labels,
unctions of JavaScript. It takes values as arguments passed to it, and displays that value in arguments inside the console when the code is
al other languages. Here the comparison performed in the "if" statement evaluates to false, so the instructions written in the else part gets e
expression is compared with the available case labels. If the value matches with any case label, the code written corresponding to that case
s not used after any of the case labels. Which means all the cases following "A" get executes if the following program is executed.
tension of the "if-else" statement and is also known as the "if-else ladder". We can extend the "if-else" statement to check several condition
one of them. The default case only is get executed, when no other case matches with the expression's value.
me of both local and global variables is the same.
nt on which the JavaScript code execution has to be run. There are several other ways to call JavaScript code such as submit, onclick, and
able variable. In the JavaScript, only arrays and objects are mutable but not the primitive values.
y integer literal that begins with either 0X or 0x denotes a hexadecimal number.
present-able number,JavaScript prints the infinity. Similarly, if the result of any numerical operation is beyond the largest negative number, J
Script. It just prints the infinity as a result. However, there is an exception in JavaScript, dividing zero with zero will not have any defined num
smaller font and the half character below the normal line. It is generally used to write chemical equations or chemical formulas such as H2O
bove and below inline elements.
nt is moved relative to its position in the normal flow, but a space is left where it would normally have been. The default value, static, means
ea is hidden. Anything outside the clipping will be clipped by browsers, including borders, text-shadows, and many more.
ith the background color of the element. We can blend the background images together or can blend them with background-color.
ouble quotes.
uage, because it doesn't have three basic properties of object-oriented programming languages, such as polymorphism, encapsulation, and
ompared to the case labels, and looks for a case whose expressions produce the same value after evaluations (where the comparison is d
e console when the code is executed.
written in the else part gets executed. If the comparison performed in the "if" statement evaluates to true, then the instruction written in the if
n corresponding to that case is executed otherwise the instruction written to the default is executed. Another important point is that switch s
ogram is executed.
nt to check several conditions.
default value, static, means the element remains in the normal flow and is not positioned
background-color.
orphism, encapsulation, and inheritance.
(where the comparison is determined by the === operator).