Tuesday 4 November 2014

Odesk Test CSS3 test answers


If your profile shows you pass odesk css3 test your probable buyer will impressed ... remember do not bid un till you are not skilled enough ..
odesk css3 test answers

Which of the following declarations can be used to cover the whole background?
a.  body{
b.   background: red url("test.gif");
c.   background-repeat: repeat-y;
d.   background-attachment: fixed;
e.  }
  1.  
g.  body{
h.   background: red url("test.gif");
i.   background-repeat: repeat-x;
j.   background-attachment: fixed;
k.  }
  1.  
m.  body{
n.   background: red url("test.gif");
o.   background-repeat: no-repeat;
p.   background-attachment: fixed;
q.  }
  1.  
s.  body{
t.   background: red url("test.gif");
u.   background-repeat: repeat;
v.   background-attachment: fixed;
w.  }
  1.  
y.  body{
z.   background-image: url("test.gif");
aa. background-repeat: space;
bb.}
  1.  
Answer: Answer is d, e

  1. finish strokes, flared or tapering ends, or actual serifed endings.
  2. stroke endings that are plain without any flaring, cross stroke, or other ornamentation.
  3. either join strokes or other cursive characteristics beyond those of italic typefaces.
  4. primarily decorate the characters while still containing their representations.
Answer: Answer is b
Further Reading:

Which of the following is not a user interface element fragment selector?
  1. Value
  2. Choices
  3. Default
  4. repeat-item
  5. repeat-index
Answer: Answer is c

What will happen if the cursor property value is set to none?
  1. The default cursor will be displayed.
  2. No cursor will be displayed.
  3. A pointer cursor will be displayed.
  4. A text cursor will be displayed.
Answer: Answer is b

Read the following:
@page rotated {size: landscape}
TABLE {page: rotated; page-break-before: right}
What will this code do?
  1. It will put all tables on a right-hand side landscape page.
  2. It will rotate the page if the table is positioned at the right side.
  3. It will keep the table in the landscape position and rotate the page.
  4. None of the above
Answer: Answer is a

Which of the following is not a valid value for the font-stretch property?
  1. Condensed
  2. Normal
  3. semi-narrower
  4. expanded
  5. semi-expanded
Answer: Answer is c

Which of the following does not apply to external styles?
  1. Clean separation of design and content
  2. Minimal code duplication
  3. Highest priority
  4. Reduced page download time
Answer: Answer is c

Consider the following code:
<style>
.name::after
{
 content: leader(solid)
}
</style>

<div class="entry">
 <span class="name"> Shane Mathew</span>
 <span class="number"> 9843423232</span>
</div>
What will be the output if the name and the number end up on different lines?
  1. Shane Mathew....
    ...9843423232
  2. Shane Mathew____
    ___9843423232
  3. Shane Mathew  
     9843423232
  4. Shane Mathew---
    ---9843423232
Answer: Answer is b

A/An___________ is defined with 'grid-columns', 'grid-rows' properties?
  1. Explicit grid
  2. Natural grid
  3. Default grid
  4. None of the above
Answer: Answer is a

Can a percentage value be given in a ruby-align property?
  1. Yes
  2. No
Answer: Answer is b

What will happen if the following style declaration is used in the given HTML code?
<style type="text/css">

div.container{
width:38em;
 border:1em solid black;
}  

div.split{
box-sizing:border-box;
width:50%;
border:1em silver ridge;
float:left;
}

</style>
HTML code:
<div class="container">
<div class="split">Box 1.</div>
<div class="split">Box 2.</div>
</div>
  1. Two boxes will be stacked one on another.
  2. Box 1 will be on the left hand side and Box 2 will be on the right hand side horizontally.
  3. Box 2 will be on the left hand side and Box 1 will be on the right hand side horizontally.
  4. Both boxes will overlap each other.
Answer: Answer is a

What will be the output of the following rule?
em {
color: rgba(0,0,255,1)
}
  1. Opacity 1 with solid red color
  2. Opacity 0 with solid blue color
  3. Opacity 0 with solid red color
  4. Opacity 1 with solid blue color
  5. None of the above
Answer: Answer is d

Consider the following code
body
{
text-replace: "a" "b" "b" "c";
}
What will be the output of the following string if you implement the text-replace style?
andy lives behind café
  1. bndy lives behind cbfe
  2. cndy lives cehind ccfe
  3. andy lives behind café
  4. andy lives cehind bafe
Answer: Answer is b

What is the initial value of the font-size property?
  1. Small
  2. Medium
  3. Large
  4. Default
Answer: Answer is b

What is the range of values (in decimal notation) that can be specified in the RGB color model?
  1. 0 to 256
  2. 0 to 255
  3. -250 to 250
  4. -255 to 255
Answer: Answer is b

If the nav-index property of textbox1 is set to 10, that of textbox2 to 5 and that of textbox3 to 8, what will be the navigation order?
  1. textbox1, textbox2 ,textbox3
  2. textbox2, textbox3 ,textbox1
  3. textbox3, textbox2 ,textbox1
  4. textbox1, textbox3 ,textbox2
Answer: Answer is b

Which of the following display values assign ruby semantics to an arbitrary element as given below?
ruby-text (in XHTML: rt)
  1. It specifies that an element defines a ruby base.
  2. It specifies that an element contains one or more ruby bases.
  3. It specifies that an element defines a ruby text.
  4. It specifies that an element contains one or more ruby texts.
  5. It specifies that an element defines a ruby structure.
Answer: Answer is c

What is the initial value of the opacity property?
  1. 0
  2. 1
  3. Normal
  4. None
Answer: Answer is b
To which of the following elements can the min-width property not be applied?
  1. Button
  2. Span
  3. table row
Answer: Answer is c

You want to set the image resolution to 300dpi irrespective of the resolution of the image. Which of the following codes will be used?
  1. img { image-resolution: auto }
  2. img { image-resolution: auto, 300dpi }
  3. img { image-resolution: 300dpi }
  4. None of the above
Answer: Answer is c

If you are using the white-space-collapse property with value collapse, what will be the output of the following string?
John leads his team to the         victory, but fails to reach the   finals.
  1. Johnleadshisteamtothevictory,butfailstoreachthefinals.
  2. John leads his team to the victory, but fails to reach the finals.
  3. John leads his team to the         victory, but fails to reach the   finals.
  4. John leads his team to thevictory, but fails to reach thefinals.
Answer: Answer is b
The color in three digit RGB notation is #fb0. What will be its equivalent six digit color code?
  1. #fb0fb0
  2. #ffbb00
  3. #fbfb00
  4. None of the above
Answer: Answer is b
Which of the following is not a valid value for the font-smooth property?
  1. Auto
  2. Never
  3. Always
  4. Normal
  5. length
Answer: Answer is d

What is the default value of the transform property in CSS3?
  1. 50% 50%
  2. 0% 0%
  3. 100% 100%
  4. none
Answer: Answer is d

Which of the following value of the white-space property will set the value of white-space-collapse to "preserve" and value of the text-wrap to "none"?
  1. normal
  2. pre
  3. nowrap
  4. pre-wrap
  5. pre-line
Answer: Answer is b
Which of the following styles is not valid for an image?
  1. img { float= left }
  2. img { float: left here }
  3. img { background: "black" }
  4. img { border-width: 10 }
  5. All of the above
Answer: Answer is e

You want to float an image to the top of the next-page. Which of the following styles will help you to achieve the desired result?
  1. img {  float: next-page;  }
  2. img { float: top-corner next-page; }
  3. img { float: next-page top; }
  4. b and c
Answer: Answer A
backface-visibility:hidden; will this property hide the back side of a transformed div element?
  1. Yes
  2. No
Answer: Answer is a
Which of the following is not a valid page break?
  1. page-break-inside
  2. page-break-outside
  3. page-break-before
  4. page-break-after
  5. None of the above
Answer: Answer is b
Which of the following properties allow percentages in their value fields?
  1. font-size
  2. font-variant
  3. font-weight
  4. line-height
Answer: Answer is a
What is the maximum value that can be given to the voice-volume property?
  1. 0
  2. 10
  3. 100
  4. 500
  5. None of the above
Answer: Answer A
Which of the following styles is valid?
  1. border: "none";
  2. border= "none";
  3. border: none;
  4. border= none;
  5. None of the above
Answer: Answer is c
Which of the following are not valid values for the target-new property?
  1. Window
  2. Tab
  3. None
  4. Parent
  5. current
Answer: Answer is d, e
What will happen if the following declaration is used?
body
{
   background-image: url("test.png");
   background-attachment: fixed;
   background-position: 100% 100%;
   background-repeat: no-repeat;
}
  1. The image will be shown in the background at the bottom left corner.
  2. The image will be shown in the background at the bottom right corner.
  3. The image will be shown in the background at the top left corner.
  4. The image will be shown in the background at the top right corner.
  5. The image will be shown in the center of the page.
Answer: Answer is b

Which of the following rules is equivalent to the em { color: rgb(255,0,0) } style?
  1. em { color: rgb(300,0,0) }
  2. em { color: rgb(255,-10,0) }
  3. em { color: rgb(110%, 0%, 0%) }
  4. em { color: rgb(100%, 0%, 0%) }
  5. All of the above
Answer: Answer is e
What will happen if the value of the transform-style property is set to flat and the element has children?
  1. The element will be shown with 3D effect but the children will be rendered flattened into the 2D plane.
  2. The element will be shown with 2D effect but the children will be rendered into the 3D plane.
  3. Both the element and its children elements will be rendered in 3D effect.
  4. Both the element and its children elements will be rendered in 2D effect.
Answer: Answer is a

Which of the following is the initial value for the column-fill property?
  1. Auto
  2. Balance
  3. none
Answer: Answer is b

Which of the given options is/are equivalent to the following rule?
DIV { line-height: 1.2; font-size: 10pt }
  1. DIV { line-height: 1.2em; font-size: 10pt }
  2. DIV { line-height: 12em; font-size: 10pt }
  3. DIV { line-height: 120%; font-size: 10pt }
  4. DIV { line-height: 20%; font-size: 10pt }
  5. DIV { line-height: 80%; font-size: 10pt }
Answer: Answer is a, c
Consider the following code and say what will happen if you click on More?
@media print {
.footnote {
float: footnote;
content: target-move(attr(href, url))
}
.marker {
display: none
}
}
HTML code:
<p>John was a great writer<a class="footnote" href="#words"> [More]</a>. ... <p id=words><span class="marker">[More]</span> Great poet too.

  1. The tool tip will appear saying Great poet too.
  2. A pop up will appear saying Great poet too.
  3. The page will shift focus to the line Great poet too.
  4. Nothing will happen.
Answer: Answer is d
Which of the following property doesn't take up space?
  1. Outline
  2. Border
  3. Both a and b
Answer: Answer is a
Which of the following properties specifies the minimum number of lines of a paragraph that must be left at the bottom of a page?
  1. Orphans
  2. Widows
  3. Bottom
  4. Overflow
  5. None of the above
Answer: Answer is a
What is the initial value of the marquee-speed property?
  1. Slow
  2. Normal
  3. Fast
  4. none
Answer: Answer is b

If the following rule is used, what will be the output?
:focus,:active { outline-offset: 10px }
  1. The focus outline will appear at a distance of 10 pixels from the active element.
  2. The width of the focus outline will be 10 pixels.
  3. No outline will be shown.
Answer: Answer is a
What is the initial value of the hyphens property?
  1. None
  2. Manual
  3. Auto
  4. default
Answer: Answer is b
Consider the following font definition
font-weight:normal
What is the other way of getting the same result?
  1. font-weight:100
  2. font-weight:900
  3. font-weight:400
  4. font-weight:700
Answer: Answer is c

What will happen if the following style declaration is applied to an element?
p { margin: 3em 2em }
  1. The top and the bottom margins will be 3em and the left and the right margins will be 2em.
  2. The top and the bottom margins will be 2em and the left and the right margins will be 3em.
  3. The top and the left margins will be 3em and the bottom and the right margins will be 2em.
  4. The top and the right margins will be 2em and the bottom and the left margins will be 3em.
Answer: Answer is a

What will happen if the pause property is used as follows?
h2 { pause: 40s 60s }
  1. pause-before will be set to 40 seconds and pause-after will be set to 60 seconds.
  2. pause-after will be set to 40 seconds and pause-before will be set to 60 seconds.
  3. pause-after and pause-before will be set to 40 seconds.
  4. pause-after and pause-before will be set to 60 seconds.
Answer: Answer is a

If you set the value of the speak property to digits, how would 22 be spoken?
  1. twenty two
  2. two two
  3. twenty and two
  4. four
Answer: Answer is b
State whether following statement is true or false?
The RGB color model is hardware-specific while the HSL is symmetrical to lightness and darkness.
  1. True
  2. False
Answer: Answer is a
Which of the given rules would result in an object being rendered as below?

  1. div { content: '1' } div::before { content: '2'; } div::before::before { content: '3'; }
  2. div { content: '3' } div::before { content: '2'; } div::before::before { content: '1'; }
  3. div { content: '1' } div::before { content: '2'; } div::before(2) { content: '3'; }
  4. div { content: '3' } div::before { content: '2'; } div::before(2) { content: '1'; }
Answer: Answer is a
Which of the following option does NOT exist in media groups available in CSS3?
  1. continuous or paged
  2. visual or tactile
  3. grid or bitmap
  4. braille or screen
Answer: Answer is d
What effect does the following rule have?
div { grid-rows: 4em (0.25em 1em); }
  1. It creates rows with 4em height.
  2. It creates a header row with 4em height and alternative rows with 0.25em width and 1em heights.
  3. It creates a header row with 4em height and alternative rows with 0.25em and 1em heights.
  4. It creates a header row with 4em width and alternative rows with 0.25em width and 1em heights.
Answer: Answer is c
For the clear property, which of the following value is not valid?
  1. None
  2. Left
  3. Right
  4. Top
Answer: Answer is d
What is the initial value of the animation-iteration-count property?
  1. 0
  2. 1
  3. 5
  4. None
Answer: Answer is b
What is the problem in the following style sheet?
@import "style.css";

@media print {
@import "print-main.css";
BODY { font-size: 10pt }
}

h1 {
color: red
}
  1. Two style sheets can't be included with @import.
  2. The body tag can't be included inside @media.
  3. @import rule is invalid since it occurs inside a @media block.
  4. It is valid.
Answer: Answer is c
What is the type of the letter-spacing property?
  1. Length
  2. Number
  3. Percentage
  4. integer
Answer: Answer is a
What is the initial/ default value of the text-align property?
  1. Start
  2. End
  3. Left
  4. Right
  5. Center
  6. justify
Answer: Answer is a
State whether the following statement is true or false?
If a parent element display property is set to none, its children too will not be rendered.
  1. True
  2. False
Answer: Answer is a

1 comment:

  1. nice,very helpful many new Questions have added to expand knowledge on css

    ReplyDelete