Test Series - css

Test Number 57/59

Q: What is the default value of object-fit?
A. fill
B. contain
C. none
D. cover
Solution: Object-fit has can be set with five values. When set to the value fill, it is the default value which stretches the image to fit the content box, regardless of its aspect-ratio, contain increases or decreases the size of the image to fill the box whilst preserving its aspect-ratio.
Q: Which value will compare the difference between none and contain?
A. contain
B. scale-down
C. none
D. cover
Solution: When setting the value to scale-down the image will compare the difference between none and contain in order to find the smallest concrete object size when set to cover the image will fill the height and width of its box.
Q: object-fit is not supported by _______
A. Chrome
B. IE
C. Opera
D. Firefox
Solution: In the desktop, object-fit is not supported by Internet Explorer but supported by chrome, opera, firefox, edge, safari. In mobiles or tablets iOS Safari, Opera Mobile, Opera Mini, Android, Android Chrome, Android Firefox support this.
Q: Which of the following is a library for JavaScript?
A. PlotKit
B. List bar chart
C. Pie chart
D. Stacked bar graphs
Solution: PlotKit is a library for JavaScript that is an improved version of CanvasGraph. It lets us build various sorts of charts and graphs without a hitch. In list bar chart we style definition list and convert it into a timeline chart.
Q: Which of the following will not use JavaScript?
A. Animated attacked bar graph
B. Pie chart
C. Animated Donut chart
D. Infographic charts
Solution: Pure CSS3 experimental charts do not use any JavaScript & zero image, but can be viewed in Webkit browsers. Animated Stacked Bar Graph use D3 chart and JavaScript, it is developed to mimic live data feed, and give an illusion of how to handle data on the backend.
Q: Which of the following uses AngulaJS?
A. d3 linegraph
B. Animated Donut chart
C. Infographic charts
D. CSS 3D animated chart
Solution: 3D prisma are created with HTML and CSS3(D) transforms, shaded with CSS gradients, animated with CSS transitions. AngularJS is used to write up an updating dataset. The size and thickness of the animated donut chart can be easily edited via CSS, JavaScript will do the rest.
Q: Which of the following moves an element from its current position?
A. rotate()
B. translate()
C. scale()
D. matrix()
Solution: The translate() method moves an element from its current position according to parameters given for X-axis and Y-axis,
 div {-ms-transform: translate(12px, 100px); -webkit-transform: translate(12px, 100px); translate(12px, 100px);}
Q: Which of the following will rotate an element clockwise or counter-clockwise?
A. rotate()
B. skewX()
C. skewY()
D. matrix()
Solution: The rotate() method rotates an element clockwise or counter-clockwise according to the given degree,
 div {-ms-transform: rotate(12deg); /*IE*/ -webkit-transform: rotate(12deg); transform: rotate(12deg); }
Q: Which of the following increases or decreases the size of element?
A. skewX()
B. matrix()
C. scale()
D. skewY()
Solution: The scale() method increases or decreases the size of an element according to the parameters given for width and height,
 div {-ms-transform: scale(3,5); -webkit-transform: scale(3,5); transform: scale(3,5);}
Q: What skews an element along X and Y-axis?
A. skew()
B. skewX()
C. skewY()
D. matrix()
Solution: The skew() method skews an element along X and Y-axis by the given angles,
 div {-ms-transform: skew(10deg, 20deg); -webkit-transform: skew(10deg,20deg); transform: skew(10deg,20deg);}

You Have Score    /10