Quiz
Spring 2017 Developer Training - Week 1
Questions in this quiz (13)
1Please choose the description which best matches how the following HTML will render.
- A
- B
- C
- D
- A
2The anchor tag attribute "href" should contain a URI. This URI ...
- Amust use fully qualified domain names.
- Bshould be relative to the anchor tag.
- Cshould be relative to the site root.
- Dshould be relative to the html page.
- Eis case sensitive.
3Character entity references allow designers to display special symbols in html. Please select the correct format for specifying these.
- Aprefix with %, and optional : suffix
- Bprefix with #, and optional ; suffix
- Cprefix with &, and require ; suffix
- Dprefix with %, and require ; suffix
- Eprefix with & and #, and optional ; suffix
4Which one of the following answers only contain valid semantic tags added in HTML5.
- Aarticle, aside, details, figcaption, figure, footer, header, nav, section, summary, time
- Barticle, aside, figure, footer, header, main, mark, navigation, section, summary
- Carticle, header, navigation, section, sidebar, footer, summary, time
- Darticle, caption, details, figure, footer, header, main, mark, nav, section, sidebar, summary, time
5What is the purpose of semantic tag elements?
- ATo provide more meaning for the parser.
- BTo make the HTML page render according to modern standards.
- CTo sunset confusing markup standards.
- DTo increase the number of tags available to write HTML with.
6How many header and footer tags are allowed in an HTML5 page?
- AYou should only have 1 header and 1 footer per page.
- BYou should only have 1 header and 1 footer per section.
- CThere is no limit to the number of headers and footers per page.
- DThere is no limit to the of headers and footers per section.
7You are working on a site which isn't rendering properly in Firefox and see the following code. What approach should you take to fix the problem?
- ARemove the comment because it is likely confusing the browser.
- BRemove the comment because it has no effect in Firefox.
- CLeave the comment because it only affects IE browsers.
- DLeave the comment because it is unknown what effect it has.
- EEdit the html5shiv.js and add an exception to fix the render bug in Firefox.
8How is the id attribute of a tag different than the class attribute?
- AYou can assign style by id or by class, so there is no difference.
- BYou may only assign one style class to an id, but any number of CSS classes to the class tag.
- CIt is an error to have a duplicate id assignments in an html page. But it is allowed to have duplicate class assignments.
- DThe id attribute of a tag is primarily used for JavaScript and the class tag is used for styling, but a style can be assigned to an Id tag.
9The CSS margin property of an element "margin: 20px 40px;" has the same meaning as "margin: 20px 40px 20px 40px;"
- ATrue
- BFalse
10The CSS padding property of an element "padding: 10px 20px 30px 0;" is equivalent to "padding-top: 10px; padding-bottom: 30px; padding-left: 20px; padding-right: 0;"
- ATrue
- BFalse
11What will be the actual rendered width of this box?
- A100px
- B110px
- C140px
- D150px
- E125px
- F70px
12Which CSS selector should you use to mark only the text "Greetings!" in green?
- A#main > .greet > span
- B#main < .greet < span
- C#main div span
- Dbody > main > greet > span
- E#main > .greet span
13Given the following CSS styles, what color will the word Greetings! appear in?
#main .greet span {
color: green;
}
#main .first span {
color: blue;
}
div div span {
color: red;
}- AGreen
- BBlue
- CRed
- DBlack
Information
- Description
- Computer Science Quiz on Spring 2017 Developer Training - Week 1, created by Stefcho Stefchov on 14/04/2017.
- Author
- Stefcho Stefchov
- Language
- English
- Views
- 47
- Tags
- Rating
- 5.0 out of 5 · 1 rating Rate this quiz