0% found this document useful (0 votes)
34 views

HTML, CSS, Javascript

Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views

HTML, CSS, Javascript

Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 34

Question

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

text-stroke property text-transform property text-decoration property


min-height property max-height property line-height property
min-height property max-height property line-height property
Inline CSS Internal CSS External CSS
background-origin background-attachment background-size
object-fit object-position position
border-collapse border-radius border-spacing
border-collapse border-radius border-spacing
border-collapse border-radius border-spacing
vertical-align: sub vertical-align: super vertical-align: subscript
alpha-spacing character-spacing letter-spacing
writing-mode text-indent word-break
text-style : capital; transform : capitalize;
p {background- text-transform : capital;
color : yellow;}
a {text-decoration : p {background-color : #yellow;} all {background-color : yellow;}
underline;}
<style src = a {decoration : no-underline;} a {text-decoration : none;}
example.css> <style src = "example.css" > <stylesheet> example.css </stylesheet>
HTML PHP CSS
django rails larawell
tag id class
<script> <link> <class>

toExponential() toFixed() toPrecision()


Both x and y are
toString() valueOf() toLocaleString()
equal in value, type
slice()
and reference split()
Both are x and y are equal in value substr()
Both are equal in the value and data
address as well. only. type.
if(a!==null) if (a!) if(a!null)
toString() String(human) String newvariable="human"
compilation error 0 runtime error
1 0 runtime error
logical error 0 runtime error
toFixed() toExponential() toLocaleString()
1 Error 10
Keywords Data types Declaration statements
The values of count variable are logged
triple equals
An error is equals double equals
or stored in a particular location or
displayed An exception is thrown storage
9 0 8
10 9 8
10 6 33
3 0 Error
10 17 18
Preprocessor Triggering Event RMI
option_4 option_5 Correct
<tt> option_3
text-color option_1
/* Comment */ option_1
None of the above option_1
None of the above option_3
None of the above option_3
font-color option_3
<dl> option_2
None of the above option_3
None of the above option_1
property option_1
Width and height option_4
None of the above option_2
Both 2 and 3 option_4
All of the above option_2
None of the above option_2
None of the above option_1
All of the above option_1
None of the above option_3
All of the above option_4

None of the above option_1


None of the above option_3
None of the above option_3
None of the above option_1
None of the above option_1
None of the above option_1
None of the above option_3
None of the above option_2
None of the above option_1
None of the above option_1
alphabet-spacing option_3
None of the above option_1
text-transform : cap option_4
all p {background-c option_1
None of the above option_3
<link rel="styleshe option_4
Ajax option_3
bootstrap option_4
both class and tag option_2
<style> option_4

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

What will be the output of following CSS code snippet?


Which of the following CSS style property is used to specify an i 4 Medium CSS
h1 {color: red text-decoration: underline; font-style: italic;} 4 Medium CSS
Which of the following are the CSS Extension Prefixes for Webk 4 Medium CSS
Which of the following is the correct syntax to link an external 4 Medium CSS
Which of the following is the first CSS specification to becom 4 Medium CSS
Which of the following function defines a linear gradient as a 4 Medium CSS
Which of the following CSS property can be used to set the imag 4 Medium CSS
Which of the following CSS property defines the different propert 4 Medium CSS
Which of the following is the correct way to apply CSS Styles? 4 Medium CSS
Which of the following CSS property sets the font size of text? 4 Medium CSS
Which of the following is not the property of the CSS box model 4 Medium CSS
The CSS property used to specify whether the text is written in t 4 Medium CSS
Which of the following syntax is correct in CSS to make each word 4 Medium CSS
Which of the following is the correct syntax to make the backgr 4 Medium CSS
Which of the following is the correct syntax to display the hyper 4 Medium CSS
Which of the following is the correct syntax for referring the ext 4 Medium CSS
The property in CSS used to change the background color of an 4 Medium CSS
Which of the following CSS property is used to set the backgro 4 Medium CSS
See the given code of JavaScript and choose the correct output from the following:
The CSS property used to make the text bold is -
functioncomparing() 4 Medium CSS
{Which of the following property is used as the shorthand proper 4 Medium CSS
intx=9;
chary=9;
if(x==y)
Which of the following givenfunctions of the Number O
returntrue; 4 Medium Java script
else
Which of the following function of the String object returns the
returnfalse; 4 Medium Java script
} 4 Medium Java script
Out of the following functions of the string object, which one wou 4 Medium Java script
Look at the snippets given below and check the one in which the 4 Medium JAVA Script
Which of thesewhat
In JavaScript, is a do
correct output
we use for the the
for calling JavaScript codeforgiven
expression functbelow? 4 Medium JAVA Script
Which of these
string X= “Hey”;is used in JavaScript for calling a method or a f 4 Medium JAVA Script
Which of these operators are used for checking if a specific prop 4 Medium JAVA Script
string Y=”There”;
“The expression that can appear legally on an assignment expre 4 Medium JAVA Script
alert(X+Y); 4 Medium JAVA Script
Which of these is known as the Equality operator used for chec 4 Medium JAVA Script
In case a value of an operator is NULL, then the unary operat 4 Medium JAVA Script
Which of these is not a keyword? 4 Medium JAVA Script
In the line of code given below, what will the “datatype” written in brackets be called?
Which of these symbols is used to create comments in JavaScri 4 Medium JAVA Script
In the line of code given below, the prototype represents the _____________.
article[datatype]=assignment_value; 4 Medium JAVA Script
functionx(){}; 4 Medium JAVA Script
Which of these methods or operators are used for identifying an 4 Medium JAVA Script
Which of these codes is equivalent to the code given below?
A function’s execution would stop whenever a program control 4 Medium JAVA Script
a.x(g,h); 4 Medium JAVA Script
Which of these keywords is used to define various functions in 4 Medium JAVA Script
option_1 option_2
Table heading Table Records
<BODY BGCOLOR=RED> <BODY TEXT=RED>
To define title text To define reference of a document
href link
<a> <h>
<bdi> <bdo>
<contact>
<abbr title="abbreviation or <authorinfo>
<abbr description="abbreviation or
acronym">Text</abbr> acronym">Text</abbr>
<abbreviation> <abbr>
<table> <tables>
<cell> ... </cell> <tr> ... </tr>
<ol> ... </ol> <ul> ... </ul>
<form> <form_put>
<input type="textbox"> <input type="checkbox">
clear clear:both
<block> ... </block> <b> ... </b>
style css
<p>H<sup>2</sup>O</p> <p>H<ins>2</ins>O</p>
<sup> <superscript >
<underline> <ins>

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.

eir default values. Here is the syntax:

ues (normal, italic & oblique).


d text-decoration: underline” before it sees a closing semicolon. The font-style property that follows would then be used. Because the color
n prefix for Webkit is -webkit which is supported by almost all ios browsers. -o is used by opera where as -moz is used by firefox browser.
heet files are defined within the <link> element and it should be inside the <head> section. href attribute specifies the URL of the linked reso
is CSS level 1, published on December 17, 1996. Håkon Wium Lie and Bert Bos are credited as the original developers.
ear gradient function we should define minimum of two color stops. color stops will tell the browser which colors to use in the gradients for s
border (instead of the normal border around an element).
ty can have from one to four values.
d external. An inline CSS means applying styles rules directly to the HTML element. In embed, we declare or write all the needed style in <s

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

o the right of the decimal.


string starting at the specified position via the specified number of the characters.
e of different datatype and perform comparison. A strict comparison will give true as output only when the content and the data type of both
be used. Because the color property has an illegal value, it should be ignored.
s used by firefox browser.
es the URL of the linked resource.
e original developers.
to use in the gradients for smooth transitions.

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

en displaying these widgets.


ies the direction in which the content flows on the page.
of each word to uppercase. It will not capitalize the first letter after the number.
und-color : yellow;}.
ntax to display the hyperlinks without any underline is: a {text-decoration : none;}.
in property we can change all margin properties at once.

nt and the data type of both operands are same.


ernal style sheet and provide its link to the document.
Question
Which HTML tag is used to set up a Javascript-like client-side Num_options Difficulty Reference
scripting
What arelanguage?
the main components of the front end of any working 4 Medium HTML
website? 4 Medium HTML
What is the select tag used for? 4 Medium HTML
The
Whatmost basic part
are those of any
objects HTML
called page
which areis?
used for storing data 4 Medium HTML
on the client provided by the HTML local storage? 4 Medium HTML
The default value of the BORDER attribute is? 4 Medium HTML
What are some valid character sets available? 4 Medium HTML
How
Whichmany characters
of the following can be written of
are examples in block-level
1KB? elements in 4 Medium HTML
HTML? 4 Medium HTML
What are the properties of block-level elements? 4 Medium HTML
Which
Which property allows tags
of the following an image linktotoadd
is used show a text
a row to alabel?
table in 4 Medium HTML
HTML?
What is the speciality about the <small> and <big> tags in 4 Medium HTML
HTML? 4 Medium HTML
Which of the following colors contain equal amounts of RBG? 4 Medium HTML
How to set a font for a whole page? 4 Medium HTML
What does the Alpha value of 0.0 represent? 4 Medium HTML
What does the Alpha value in RGBA represent? 4 Medium HTML
How
Whichis HTML
black color
tag isrepresented in terms
called the root of RGB
element of anvalues?
HTML 4 Medium HTML
document? 4 Medium HTML
Which of the following is true about HTML tags? 4 Medium HTML

Which of the following is used to specify the subscript of text


using CSS?
The CSS property which is used to define the set the difference 4 Medium CSS
between two lines of your
Which of the following CSScontent is -is used to set the color of
property 4 Medium CSS
the text?
Which of the following CSS Property controls how an element is 4 Medium CSS
Which of the following CSS selector selects the
positioned? 4 Medium CSS
elements that are checked? 4 Medium CSS
Which of the following is an appropriate value for the overflow
element?
Which of the following CSS property is used to specify table 4 Medium CSS
borders
Which ofinthe
CSS?
following property is used to align the text in a 4 Medium CSS
table?
Which of the following CSS Property sets the stacking order of 4 Medium CSS
positioned elements? 4 Medium CSS
The correct
Which of thesyntax to give
following CSSa property
line overcreates
text is -a clipping region 4 Medium CSS
and
The specifies
CSS propertythe visible
used toarea
setofthe
theindentation
element? of the first line in a 4 Medium CSS
block of text
The CSS is - used to specify the order of flex item in the
property 4 Medium CSS
grid container
Which is -
of the following CSS property is used to specify the type 4 Medium CSS
of quotation mark?
The CSS property which is used to set the text wider or 4 Medium CSS
narrower compare
Which of the to the
following default
CSS width
property is of the to
used font
setisthe
- 4 Medium CSS
horizontal alignment
Which of the followingofCSS
a table-cell
propertybox or thetoblock
is used element?
set the blend 4 Medium CSS
mode
Whichfor each
of the background
following CSS layer of anare
selectors element?
used to specify a 4 Medium CSS
group of elements? 4 Medium CSS
Code
WhichAof the following is the correct output for the following
JavaScript code:
for(var number=10;number>=1;number--)
{var
Which of the following is the correct output for the following
grade='C';
document.writeln(number);
JavaScript
var result; code:
Which
}What of the
will be thefollowing
outputCSS propertyCSS
of following is used
codetosnippet?
make the text
switch(grade)
bold? 4 Medium CSS
varx=5,y=1
{
Code
var
case'A': h1 obj
{color: "green";}
B={ x:10} 4 Medium CSS
{with(obj)
Which of the following is the correct output for the following
var
{ number=10; result+="10";
JavaScript
while(number>=1) code:
break; alert(y)
{} 4 Medium JAVA Script
Which
var one of the following also known as Conditional
grade='D';
document.writeln(number);
case'B':
Expression:
var result; 4 Medium JAVA Script
Which
{Which of the following is the correct output for the following
number++;
switch(grade)
JavaScript of the following is the correct output for the following
code:
} theresult+="
In following given syntax of the switch statement, the
9"; 4 Medium JAVA Script
{JavaScript
Expression
code:
is compared with the labels usingcode
which one of the
break;
In
What
case'A': JavaScript,
will happen,what if is a block
the of statement?
following JavaScript iswhat
executed? 4 Medium JAVA Script
When
Int
following
} grade='Z'; x=8; interpreter
operators? encounters an empty statements, it will
var
do:
if(x>9) result+="10"; 4 Medium JAVA Script
Which
case'C':
var countof the
result; =0; following is the correct output for the following
case'B':
{JavaScript
{switch(expression)
The
while
switch(grade) (countcode:
"function"
result+=" and " var" are known as:
<10)
9"; 4 Medium JAVA Script
document.write(9);
{{ result+=" 8";
Which
case'C':
}break;
var type of JavaScript language is ___
statements
x=3; 4 Medium JAVA Script
case'A':
else console.log(count);
result+=" 8";
}} count++;
var y=2;
result+="10"; 4 Medium JAVA Script
case
{var 'D'
z=0;
default:
}document.write(x);
case'B':
result+=" 6"; 4 Medium JAVA Script
If(x==y)
result+="
result+=" 0";9";
default:
}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 of the following variables takes precedence over the 4 Medium JAVA Script
others if theofnames
Which one are the issame?
the following the correct way for calling the 4 Medium JAVA Script
JavaScript code? 4 Medium JAVA Script
Which
Which of
of the
theisfollowing
following type
optionof a variable is volatile? literal 4 Medium JAVA Script
When there an indefinite orisanused as hexadecimal
infinite value during an
beginning?
arithmetic computation in a program, then JavaScript 4 Medium JAVA Script
prints______.
In the JavaScript, which one of the following is not considered 4 Medium JAVA Script
as an error: 4 Medium JAVA Script
option_1 option_2 option_3 option_4 option_5
<script> <select> <anchor> None of these
Node.js. HTML
Select only
some attributes and Java script only HTML, CSS, Java
Creates a combo box. change their style. Change text font. None of these
Unicode Text Ascii Text Binary Text Text
Windows.localStorage Window.sessionStorage Both 1 and 2 None of these
1 pixel 2 pixel 3 pixel 8 pixel
UTF-8 ANSI ASCII All of the above
1048 1024 1000 2048
<div>
It always starts on a <p>
It always takes the full width <h1>
It has a top and All of the above
new line. available. bottom margin. All of the above
alternative str alt None of these
<tr>
They work on <td>
They can be used for text <th>
They can be None of these
anything. only. repeated. None of these
White Gray Black All of the above
<targetfont> <defaultfont> <body> <font>
Fully Opaque.
Opacity value for a Fully Transparent. 50% transparent. None of these
color. The shade of a color. Both A and B. None of these
RGB(0, 0, 0) RGB(100, 100, 100) RGB(100, 100, 0) RGB(100, 0, 0)
<title> <body> <head> <html>
Are case sensitive Are not case sensitive Are in uppercase Are in lowercase

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

Prints an exception 0 0x 0X Both 0x and 0X


error Prints an overflow error Displays "Infinity" Prints the value as
Syntax error Missing of semicolons Division by zero Missing of Bracket
Correct Explanation
option_1 <script> tag is used for the purpose of setting up a client-side scripting language.
option_4 HTML, CSS, and Javascript combined to form the basic components of any working website’s frontend.
option_1 A HTML combo box is created using the select tag.
option_2 ASCII Text comprises the most basic part of any HTML page, as it is the simplest character set a webpage can
option_3 Such objects with the property mentioned above are called as Windows.localStorage or Window.sessionStorag
option_1 1pixel is the default value for the BORDER attribute in HTML.
option_4 All of the above options are examples of valid character sets
option_2 1024 characters can be written in a file of size 1KB.
option_4 All the above examples satisfy the properties in Prob. 41 and hence are block-level elements
option_4 All the above properties are valid properties of block-level elements.
option_3 The alt property allows an image link to show a text label
option_1 <tr> is used to add a row to a table in HTML.
option_3 The tags can be repeated and their effects and stacked on top of each other.
option_4 Gray is RGB(50, 50, 50), White is RGB(100, 100, 100) and Black is RGB(0, 0, 0)
option_2 <defaultfont> tag is used to set up a default font type for a whole page
option_2 The Alpha value varies between 0.0 (fully transparent) to 1.0(fully opaque).
option_1 A in RGBA represents the value of the Alpha Channel which is a measure of the Opacity of a color.
option_1 RGB(0, 0, 0) is equivalent to black color in terms of RGB values.
option_4 The <html> tag is the root element of an HTML document, which means that it contains all the contents and ta
option_2 HTML tags are not case-sensitive in nature.

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.

character set a webpage can use.


ge or Window.sessionStorage.

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

s the kind of text-decoration like overline, underline, or line-through.


the element's area that should be visible. The area inside the region will be visible, while the outside area is hidden. Anything ou
the amount of horizontal space that puts before the lines of text.
t is basically used for ordering the flex items. It is to note that if the element isn't flexible, then this property will not work.
used in the sentence. It defines which quotation mark to be used when the quotation is inserted by using the open-quote and close-quote va
nsed face from the font's family. This property sets the text wider or narrower to compare to the default width of the font. It will not work on a
l box or the block element. It is similar to the vertical-align property but in the horizontal direction.
ch background layer (image/color) of an element. It defines how the background image of an element blends with the background color of t
ticular unique 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.
. The correct declaration is : h1 { color: green; } which will yield an output. In CSS, we don’t write the value in double quotes.

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.

en-quote and close-quote values of the content property.


the font. It will not work on any font but only works on the font-family that has a width-variant face.

ith the background color of the element. We can blend the background images together or can blend them with background-color.
ouble quotes.

e the object, which is available within the given code.

single statement for ease.


e empty statements for creating loop for nothing.

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.

such as submit, onclick, and onload, etc.

e largest negative number, JavaScript prints negative infinity.


will not have any defined number/value so, the result of this specific operation is a special value "Not a Number" (or NaN) and printed as Na
emical formulas such as H2O, H2SO4, etc.

default value, static, means the element remains in the normal flow and is not positioned

ws, and many more.

background-color.
orphism, encapsulation, and inheritance.
(where the comparison is determined by the === operator).

e instruction written in the if statement will be executed.


portant point is that switch statements are also used as an alternative to "if-else" statements to reduce the complexity and size of the code.

(or NaN) and printed as NaN.


plexity and size of the code.

You might also like