WEB_JS_MCQ
WEB_JS_MCQ
a.Object-oriented
b.Object-based
c.Procedural
d.None
a.var
b.let
c.Both a and b
d.None
a.Throws an error
c.Give a warning
d.None
4.which of the following methods can be used to display data in some form using javascript
a.document write()
b.console log()
c.window alert()
d.all above
5.which of the following method is used to access HTML elements using javascript
a.getElementbyid()
b.getElementbyclassName()
c.both a and b
d.None
6.How can a datatype be declared to be a constant type?
a.const
b.var
c.let
d.constant
<script type="text/javascript">
a=5+"9";
documnet.write(a);
</script>
a.compilation error
b.14
c.runtime error
d.59
a.in
b.is in
c.exits
d.lies
9.When an operator value is null,the type of returned by the unary operator is:
a.Boolean
b.Undefined
c.Object
d.integers
print(a)
a.3
b.0
c.error
d.5
a. web browser
b. web page
c. web site
d. none of these
a. web browser
c. web site
d. web page
13.Which of the following represents both the data and function that operate on data are bundled as a
unit
a. object
b. class
c. methods
d. parent class
a. objects
b. methods
c. class
d. constructor
c.4 d.3
a.8
b.6
c.7
d.9
d. none of these
18.____________provides you properties and methods for mathematical constants and function
a. Math Object
b. String object
c. Math method
d. math function
a. Date()
b. Date(milliseconds)
c. Date(dateString)
d.Date(year,month,date[,hour,minute,second,millisecond])
a.1 b.2
c.3 d.4