Test Series - html

Test Number 43/72

Q: Sprites are _____________
A. 1-D images
B. 2-D images
C. 3-D images
D. not the image
Solution: 2-D images are sprites. Sprite is a big image which is made up of combining small images into one larger image. It is defined by X and Y coordinates. CSS background-position property is used to define the exact position that is to be displayed.
Q: Sprites are not used for ________
A. beautify the web page
B. reducing HTTP request
C. reduce loading time
D. reducing multiple server requests
Solution: If there are so many small icons, images, buttons etc. on the web page it will take more time to load the web page. Hence image sprites are used, it combines small images in one and loading time is reduced. This also reduces the HTTP request.
Q: Each image in sprite should be approximately of ___________
A. 100 pixels
B. 20 pixels
C. 10 pixels
D. 50 pixels
Solution: For using image sprite we should try to round up to nearly 10 pixels, especially when working with Photoshop. We should also use simpler figures so that it will be easy to use ‘snap-to’ grids in photoshop, also for keeping things organized.
Q: Which of the following is not Sprite Sheet generator?
A. Lemonade
B. Firewoks CS6
C. SpriteMe
D. Pixelomator
Solution: There are many sprite sheet generators such as Lemonade, Compass, SpriteMe, Fireworks CS6. Lemonade, Compass, and SpriteMe are available free of cost but Fireworks CS6 is not free of cost. Pixelomator is image editing software.
Q: Which is the best platform for working with the individual image?
A. SpriteMe
B. Fireworks CS6
C. Lemonade
D. Compass
Solution: SpriteMe is brilliant sprite sheet viewer and generator. It is available at a free of cost. We can design our website using individual images. It is very simple to use. By using SpriteMe we can also view current sprite sheets that are already present on a website.
Q: Which of the following does not generate a sprite sheet?
A. SpriteRight
B. Sprite Cow
C. CSS Sprites
D. Glue
Solution: Sprite Cow does not generate sprites, instead it helps to get the dimensions of images that are within sprite sheet, SpriteRight is used for generating sprite sheets., here the CSS is created on the fly. CSS Sprites is also one of the sprite sheet generators. Glue is a command line tool that generates sprite sheets.
Q: Templates can’t be placed inside _____________
A. 
B. 
C. 
D. 
Solution: Templates can be placed inside , , . Template can contain any type of elements. Template can be used as a child of 
elements.
Q: The .content property is __________
A. read-only
B. write-only
C. read-write
D. hidden
Solution: The .content property is a read-only property i.e a DocumentFragment which contains guts of template.
function support_temp() {return ‘content’ in document.createElement(‘template’);} if (supportsTemplate()) {//go !} else {//use another templating
Q: