Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1.Which function in JavaScript is usedto check type of a variable? Select one: a. type b. typeof c. var d. None of the above 2.DOM

1.Which function in JavaScript is usedto check type of a variable?

Select one:

a.

type

b.

typeof

c.

var

d.

None of the above

2.DOM enables Javascript to


Select one:

a.

Change HTML elements

b.

Change HTML attributes

c.

Change CSS styles

d.

All of the above

3.JavaScript Objects contain

Select one:

a.

Data members

b.

Member function

c.

Both A and B

d.

None of the above

4.In JavaScript, arrays come withwhich of the following functions?

Select one:

a.

Push


b.

Pop

c.

Reverse


d.

All of the above

5.Which of the following operators areused for a logical AND in JavaScript?

Select one:

a.

&&

b.

||

c.

and

d.

None of the above

6.DOM stands for


Select one:

a.

Data Object Model


b.

Document Object Model


c.

Deal Object Model


d.

None of the above

7.Java Script supports which of thefollowing types of loops

Select one:

a.

For loop

b.

while loop

c.

Do while loop

d.

All of the above

8.Elements in an HTML page can beselected using which of the following functions?


Select one:

a.

getElementById


b.

getElementsByTagName


c.

querySelector


d.

All of the above

9.Which attribute allows you to changethe text of an element?


Select one:

a.

innerHTML


b.

outerHTML


c.

textContent


d.

All of the above

10.Using JavaScript DOM, we cannotchange the class of an element


Select one:

True

False

11.Which are types of DOM EventListeners?


Select one:

a.

Keypress events


b.

Mouse events


c.

Both A and B


d.

Ony A.

12.We can use JS DOM to add eventlisteners to elements

Select one:

True

False

PLEASE SOLVE ASAP

Step by Step Solution

3.49 Rating (149 Votes )

There are 3 Steps involved in it

Step: 1

The detailed answer for the above question is provided below 1 b typeof The typeof operator is used to check and identify the type of a variable It re... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Electrical Engineering questions

Question

1. Explain reasons for rules.

Answered: 1 week ago