Programming Homework Help

UC San Diego Basic Javascript Html and Css Multiple Choice Questions

Get Your Custom Essay Written From Scratch
We have worked on a similar problem. If you need help click order now button and submit your assignment instructions.
Just from $13/Page
Order Now

CSS:

1) What best describes the difference between these two selectors: #myElement & .myElement *

A)The first selector is an ID and the second is a class

B)The second should only be used once

C)#myElement & .myElement do the same thing

D)The second selector is not a css selector

2) Which is an example of grouped selectors?

A)div .myClass

B)h1, h2, p

C)div > .myClass

D)div > div > #myId

3)What is true of an element with the CSS property display set to inline? *

A)An inline element only takes up as much width as necessary

B)An inline element starts on a new line

C)An inline element takes up as much width as possbile

D)An inline element must be displayed inside of another inline element

4)Which of these options correctly describes the behavior of the CSS properties margin & padding? *

A)padding is inside the border & margin is outside the border

B)margin is above & below the element, while padding is to the left and right of the element

C)padding is outside the border & margin is inside the border

D)padding is above & below the element, while margin is to the left and right of the element

5)Which selector correctly selects all p tags inside of a div tag?

A)div p

B)div > p

C)div + p

D)div ~ p

F)div .p

E)div .all p

HTML

6)Which element(s) can exist inside of a block level element? Select all that apply *

A)<div></div>

B)<article></article>

C)<dialog></dialog>

D)<mark></mark>

E)<summary></summary>

7)Which option best answers the following? valid attribute for any element *

A)id

B)class

C)title

D)data-*

E)all of the above

8)What is the valid way of commenting out this line of HTML code? <div></div> *

A)<!– <div></div> –>

B)/** <div></div> **/

C)“` <div></div>

D)// <div></div>

E) none of the above

9)Which elements are block level elements? Choose all that are correct *

A)<div></div>

B)<a></a>

C)<p></p>

D)<span></span>

E)<h1></h1>

10)Which statement(s) are true about forms & form elements? *

A)Radio buttons let a user select ONE of a limited number of choices

B)<input type=”text”> defines a one-line input field for text input

C)<input type=”submit”> defines a button for submitting a form to a form-handler

D)When a form is submitted, each input element’s value will be associated with its id attribute

E)The <li> element defines a drop-down list