Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Answer the following Multiple Choice Questions :

QUESTION 1

Which of the following are new HTML5 tags. Choose all that apply.

section

header

footer

nav

tuple

QUESTION 2

The following instruction would return the local storage value associated with the key="January"

x = localStorage['January'];

True

False

QUESTION 3

The localStorage object stores data that has an expiration data of 1 month.

True

False

QUESTION 4

_____ would retrieve the local storage value associated with a key = "city".

localStorage.getItem(v, "city")

v = localData.getValue("city", "Chicago")

localStorage.setItem("city", v)

v = localStorage.getItem('city')

QUESTION 5

Only DOM nodes that are part of a HTML form have a style property.

True

False

QUESTION 6

The _____ property of the document object contains an array of all the style sheets on a page.

styleChildren

styleSheets

styleLink

styleSrc

QUESTION 7

CSS vendor prefixes are a way for browser companies to add support for experimental features before those features become part of the CSS specification.

True

False

QUESTION 8

The dom is not available for programming until the page finishes loading.

True

False

QUESTION 9

"With the exception of a few array methods that can't be used, a collection of DOM child nodes looks and behaves like an array."

True

False

QUESTION 10

Assume a html unordered list tag with an id property, like this:

    ... We execute this statement:

    L = document.getElementById("todoList");

    L.childNodes[0]; refers to the first list item (li)

    L.childNode[0]; refers to the first list item (li)

    L.childNode[1]; refers to the first list item (li)

    L.childNodes[1]; refers to the first list item (li)

    QUESTION 11

    getElementsByClassName() is not supported by Microsoft until IE9

    True

    False

    QUESTION 12

    Adding a new node to the DOM tree requires 2 steps. Which 2?

    createChild()

    createElement()

    appendElement()

    appendChild()

    QUESTION 13

    If the following code were placed in a style sheet, #hottag would be a CSS _____.

    .caution {font-size: 12pt; color: blue;}
    #hottag {width: 620px;}

    tag selector

    ID selector

    class selector

    class property

    QUESTION 14

    The form tag's method attribute ____.

    determines the URL the form is submitted to

    determines how form data is submitted

    determines if cookies are encrypted or not

    determines whether the form submission occurs or not

    QUESTION 15

    You have 6 radio buttons all with the name radColor on a html form named f1. If the user checks the last radio button listed, what is the value of x after this code runs?

    for(var i=0; i<6; i++) {
    if(document.f1.radAge[i].checked == true) {
    var x = i;
    }
    }

    4

    5

    0

    6

    QUESTION 16

    The ____ method returns the first element in a document with a matching id attribute.

    getElementByTab()

    getElementByName()

    getElementById()

    getElementByIdTag()

    QUESTION 17

    "If a HTML select element (a drop-down list) displays only a single option, then the item at index 1 is selected by default."

    True

    False

    QUESTION 18

    "The options for a HTML select list are ordered like an array, with the first option being at index 0, the second option at index 1, and so on."

    True

    False

    QUESTION 19

    The ____ property of the Image object allows JavaScript to dynamically change an image.

    img

    src

    path

    file

    QUESTION 20

    Which of the following return an array? Choose all that apply.

    getElementById()

    getEementsByTagName()

    getElementsByName()

    getElementsByClassName()

    QUESTION 21

    "You want a submitted form to be validated before submittion, the form is to be submitted using a submit button, and you use the onsubmit() event handler of the form tag to call the function that validates the HTML form. So _____."

    such an approach would never work in a million years

    the validation function that is called must return either true or false

    QUESTION 22

    The _____ DOM method allows inserting a new DOM node before an existing DOM element.

    setAttribute()

    insertBefore()

    appendChild()

    addFirst()

    QUESTION 23

    Which of the following would create a new script element?

    createElement("script").value = x;

    x = createElement("script");

    document.createElement = "script";

    x = document.createElement("script");

    QUESTION 24

    The form tag's _____ attribute determines the URL of the page on the web server that a form is submitted to.

    accept-charset

    enctype

    method

    action

    QUESTION 25

    The _____ DOM method puts a created element into the DOM as the last child of the parent node.

    setAttribute()

    insertBefore()

    appendChild()

    append()

    QUESTION 26

    "If an element has a default action, the event handler for that element runs before the default bahavior occurs."

    True

    False

    QUESTION 27

    "When you have a group of radio buttons or checkboxes, you can use the ____ property to determine which element or elements in the group is selected."

    value

    size

    checked

    option

    QUESTION 28

    You have a form named f1 and a textbox in that form named txtName. What happens when the if-block executes?

    if(document.f1.txtName.value != "")

    the test is true if the user has typed something in the textbox.

    the test is false if the user has not typed something in the textbox.

    QUESTION 29

    Using a select list with an id of "toppings", you can get the selected option value using ____.

    opt = document.getElementbyId("toppings").value;

    "opt = document.getElementbyId("toppings") {value};

    opt = document.getElementbyId("toppings")[value];

    opt = document.getElementbyId("value");

    QUESTION 30

    ____ allows JavaScript to store and retrieve an image from memory rather than download the image each time it is needed from the web server.

    Image refreshing

    Image caching

    Image quick loading

    Double buffering

    QUESTION 31

    "If a CSS property is called font-weight, what would the corresponding javaScript reference be?"

    fontWeight

    font.weight

    font-Weight

    FontWeight

    QUESTION 32

    In a style sheet, #sidebar and .caution, as shown below, would be called CSS _____.

    tokens

    selectors

    labels

    markers

    QUESTION 33

    The _____ DOM method allows removing a node

    removeChild()

    removeItem()

    deleteItem()

    deleteChild()

    QUESTION 34

    "If a HTML element has a default event, you can cancel the default action by _____ the event handler."

    returning false from

    quashing

    executing the document.noEvents() method of

    QUESTION 35

    If the following code was placed in a style sheet, .caution would be a CSS _____.

    tag selector

    ID selector

    class selector

    class property

    QUESTION 36

    "In a group of checkboxes, all of which have the same name, only one of the boxes can be selected by the usesr."

    True

    False

    QUESTION 37

    A web page has a single paragraph. That paragraph contains a single phrase: "pie are round". How would you change the contents of the paragraph to "pi r square"?

    document.getElementsByTagName("p").innerHTML =="pi r square";

    document.getElementsByTagName("p")[0].innerHTML= "pi r square";

    document.getElementsByTagName("p")[1] = "pi r square";

    document.getElementsByTagName("p").innerHTML("pi r square");

    QUESTION 38

    "To be certain that all images are downloaded into a cache before commencing an animation sequence, you can use the ____ event handler of the Image object."

    oncache

    onsaved

    onopen

    onload

     

     

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M93104597

Have any Question?


Related Questions in Computer Engineering

You are a systems analyst at outback outsourcing a firm

You are a systems analyst at Outback Outsourcing, a firm that handles payroll processing for many large companies. Outback Outsourcing uses a combination of payroll package programs and in-house developed software to del ...

Solve the question given belowwhat is the relative market

Solve the question given below What is the relative market share for the top three cell phone service providers in the united states? The response must be typed, single spaced, must be in times new roman font (size 12) a ...

What is the difference between dekkers algorithm and igloo

What is the difference between Dekkers Algorithm and Igloo approach? Please provide examples that can explain this.

How can deferred cancellation ensure that thread

How can deferred cancellation ensure that thread termination occurs in an orderly manner as compared to asynchronous cancellation?

Select three interfaces and consider how the teamwork

select three interfaces, and consider how the teamwork application could be redesigned for each of these types. Use your imagination. How about using a tangible interface or even a drone to help remote students collabora ...

Question suppose that you have a balanced binary search

Question : Suppose that you have a balanced binary search tree that does not support delete. (It does support the other dictionary operations, e.g., search, insert, and in-order traversal of the elements in the structure ...

Create login form to enter user name and a password textbox

Create login form to enter user name and a password textbox to enter password, and write procedure to simulate the process of triggering the login process after hitting the Enter Key.

Question why are the error terms in cross-sectional data

Question: Why are the error terms in cross-sectional data unlikely to be serially correlated? Can you give an example in which serial correlation could be present in a cross-sectional dataset? The response must be typed, ...

For this problem assume the box contains 5 blue balls 7 red

For this problem, assume the box contains 5 blue balls, 7 red balls, and 6 white balls, and that we choose two balls at random from the box. What is the probability of neither being blue given that neither is red?

Doolittle co is expected to pay a dividend of 23 next year

Doolittle Co. is expected to pay a dividend of $2.3 next year. Doolittle is expected to pay 20% of its earnings as dividends and will have an ROE of 9% until the fourth year. After that, its ROE is expected to decrease t ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As