Web Programming and Applications Final Exam MCQ and Fill in the blanks.

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

The full form of BOM is __________

Browser Object Model (BOM)

is a computer language that annotates a document in a way that is syntactically distinguishable from the text.

Mark up language

The procedures associated with an object are called _________.

Methods

_________ property specifies the transparency of an element.

Opacity

What method is used to convert JavaScript to object?

Parse()

For the following styling, the color of "Text" will be ________. <style> .text span {color: red;} span {color: blue;} div {color: green;} div span {color: black;} p span {color: yellow;} </style> <div> <p> <span class = "text"> <span>Text</span> </span> </p> </div>

Red

A sticky element toggles between _________ and __________ position depending on the scroll position

Relative and Fixed

Which for element is useful for limiting user option to a set of choices?

Selection List

During debugging, there are two different statements that you can add to your code to provide you with additional information. They are ______________ and ______________.

console.log(value) and window.alert()

Which method of the Array class removes the last element from the end of an array?

pop()

Which method returns all the elements in a document that math the selector p figure img?

querySelectorAll("p figure img")

Which of the following statements creates an empty object called newObj?

var newObj = {};

___________ or ___________ tag can be used to define a bold text.

<b> and Strong

Which Web Storage does not have an expiration date?

Local Storage

What value of the selectedIndex property of a select object corresponds to no selection?

-1

The total width of the following element is ________. div{ width: 120px; padding: 10px; border: 5px solid gray; margin: 0; outline-width: 4px; }

150px (width + padding*2 + border*2)

The bottom margine for a paragraph which has the following style will be ____________________. p{ margin: 25px 50px 40px; }

40 px

The bottom margine for a paragraph which has the following style will be ____________________. p{ margin: 25px 50px 75px; }

75px

An example styling of a pseudo class is ________.

:hover

HTML comments start with _____________ and ends with ________.

<!-- -->

All HTML documents must start with a document type declaration which is ________________.

<!DOCTYPE html>

An example of an empty HTML Element is ____________.

<br>

An example of block element is ______.

<div>

tag defines the least important/smallest heading in HTML.

<h6>

An example of an inline element is ______________.

<span>

For multiline input, _________ form element is used.

<textarea>

The ______ tag defines a title in the browser tab for the web page.

<title>

The strict equal operator in JavaScript is __________.

===

During a web request, ____________ finds the real address of the server that the requested website lives on.

DNS Server

The full for of DOM is ____________

Document Object Model (DOM)

The code that tells a browser what to do in response to a specific event on a specific element is called an _____________________.

Event Handler

In a try block, which statement executes regardless of whether its associated try block throws an exception or not?

Finally

To make a window the active window, you use the ______ method of the window object.

Focus()

To execute the same statement or command block for all properties within a custom object, you can use the ________ statement.

For/in

Where can you find JavaScript error message in a browser?

In the console

Different types of errors in JS?

Syntax, Run-time, and Logic

An __________ variable is a variable that never had a value assigne to it, has not been declared, or does not exist.

Undefined

Which of the following is not a falsy value?

Unknown

___________ property specifies the stack order of an element (which element shoukd be placed in front of or behind the others)

Z-index

If you set the target attribute to ______ inside <a>, the link will open in a new browser window or tab.

_blank

Which method displays a dialog box with an OK button?

alert()

Inside the <img> tag, the ____________ attribute specifies the alternative text used, if an image cannot be displayed.

alt

Two methods for adding a note to DOM are ________ and _________.

appendChild() and insertBefore()

The __________ attribute inside <a> is used to specify link address.

href

What built-in JavaScript function do you use to test whether a value is not a number?

isNan()


संबंधित स्टडी सेट्स

Environmental Economics: Economics of pollution control

View Set

Chapter 29- Caring for Older Adults at the End of Life

View Set

icev risk management, Contract & Employment Law, Ethics In Business, Aspects of a Business Plan

View Set

Chapter 7 - Production, Costs, and Industry Structure

View Set

2017 Fall Exam 2 histo review questions

View Set