Test Series - html

Test Number 73/72

Q: How many classes does bootstrap grid system has?
A. 3
B. 2
C. 1
D. 4
Solution: Bootstrap grid system has four classes. Xs, sm, md, lg. as is for phones having screens less than 786px wide, sm is for tablets. Screens equal to or greater than 768px, md is for small laptops, screen equal to or greater than 992px wide, lg is for laptops and desktops, Screens equal to or greater than 1200px wide.
Q: What is bootstrap’s global default font-size?
A. 12px
B. 14px
C. 10px
D. 9px
Solution: Bootstrap’s global default font-size is 14px, with line-height of 1.428. This is applied to element and all paragraphs. In addition all 

elements have bottom margins.

Q: Progress bars are not supported in __________
A. Internet Explorer 10
B. Internet Explorer 9
C. Opera
D. Chrome
Solution: Progress bars are not supported in Internet Explorer 9 and earlier versions, because they use CSS3 transitions and animations to achieve some of the effects. For improving accessibility for people using screen readers, we should include aria-* attributes.
Q: Which of the following clears bottom-margin of each panel?
A. .panel-group
B. .panel-footer
C. .panel-heading
D. .panel-body
Solution: .panel-group class clears bottom-margin of each panel. It also group many panels together, we can wrap 
with class .panel-group around them. Footer to the panel is added by .panel-footer. Heading to the panel is given by .panel-heading class. The content inside the panel is in .panel-body.
Q: For inserting plain text we use __________
A. .form-control-static
B. .input-group
C. .input-group-addon
D. .input-group-btn
Solution: If we need to insert plain text next to a form label within horizontal form we can use .form-control-static class on 

element. The .input-group class is a container to enhance input by adding an icon, text or button in front or behind it. An icon or help text next to the input field and button next to input is attached by .input-group-addon and .input-group-btn respectively.

Q: Which attribute is used to input to prevent user input?
A. readonly
B. .sr-only
C. disabled
D. .has-feedback
Solution: A button is disabled by .disabled class. We can add readonly attribute to an input to prevent user input. .sr-only class is applied on non-visible labels, disabled attribute is added to disabled an input field.
Q: What is the range of dimension for small devices?
A. 450px to 700px
B. 768px to 991px
C. 992px to 1199px
D. 120px to 500px
Solution: Small devices are defined as a screen width from 768px to 991px. For small devices we use the class .col-sm-*, for medium devices the screen width from 992px to 1199px.
Q: Which will change the order of a grid columns?
A. .col-md-push-*
B. .col-md-offset-*
C. .clearfix
D. .col-sm-*
Solution: We can change order of the grid columns with .col-md-push-* and .col-md-pull-* classes, we can move columns to right using .col-md-offset class. .clearfix class clears float. A column layout for small device is done by .col-sm-*.
Q: What is the default value of offset?
A. 20
B. 10
C. 30
D. 50
Solution: The default value of offset is 10, it specifies number of pixels to offset from top when calculating the position of scroll.
Q: Which of the following method will hide and destroy tooltip?
A. .tooltip(“hide”)
B. .tooltip(“toggle”)
C. .tooltip(“destroy”)
D. .tooltip(options)
Solution: .tooltip(“destroy”) hides and destroys the tooltip, .tooltip(“hide”) hides the tooltip, .tooltip(options) activates the tooltip with an option. .tooltip(“toggle”) toggles the tooltip.

You Have Score    /10