Tuesday, September 28, 2010

Odesk Css test Solution part 2

Odesk Css Test Solution Part 2
Question 21:
The default value for the overflow property is:

  1. Scroll
  2. Visible
  3. Hidden
  4. Auto

Question 22:

Which of the following will set the page size to 8.5 inches x 11 inches with 2cm margin al all sides?
  1. @page {width:8.5in;Height:11in; margin:2cm}
  2. @page {width:8.5in x 11in; margin:2cm}
  3. @page {size:8.5in 11in; margin:2cm}
  4. @page {size:8.5in 11in; margin:2cm}

Question 23:

Which of the following is not a valid list property?
  1. List-style-type
  2. List-style-position
  3. List-style-image
  4. List-style-align

Question 24:

Which of the following is not a pseudo class?
a.    Link
b.    Active
c.     Lang
d.    Ins

Question 25:

Which of the following Statement is correct?

  1. When using css, positioning can be absolute, relative or dynamic
  2. The float Property for text/images can be left, right or center
  3. The values of visibility can be true or False
  4. The display Property sets how an element is displayed

Question 26:

The Font “Times New Roman” has an aspect value of 0.46 .What do you understand from this?

  1. When font size is set to 46px. The height of the letter ‘x’ will be 100px
  2. When font size is set to 100px. The height of the letter ‘x’ will be 46px

Question 27:
The font-family property is used to specify a:
  1. Family name
  2. Generic Family
  3. Family name and /or generic Family

Question 28:

Paged media differ from continuous media in that the content of the document is divided into one or more pages. When you set the dimensions, which of the following will be applied?

  1. The dimensions of the page area are the dimensions of the page box minus the margin area
  2. The dimensions of the page area are the dimensions of the page box plus the margin area
  3. The dimensions of the page area are the dimensions of the page box and margin area does not affect it.
  4. None of the above

Question 29:

Which of the following is not a correct keyword value for the display property?

a.    Expended
b.    Inline-table
c.     Table-row
d.    Table-column-group

Question 30

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

Question 31

Which of the following is correct with regard to comments in a style sheet?

  1. Comments can appear outside the style definition only
  2. Comments start with//
  3. Comments end with */
  4. Comments are not permitted in a style sheet

Question 32

Which of the following border styles is not correct?
a.    Border-style: ridge
b.    Border-style : outset
c.     Border-style : dotted
d.    Border – style : matted

Question 33

How will you display text as a superscript?

  1. Vertical-align: super
  2. Vertical-align: superscript
  3. Vertical-align : top

Question 34

The following is a style definition:

Color: red;

How will you refer to this style in you web pages?
  1. By using the class attribute in a td cell
  2. By using the id attribute in a td cell
  3. By using the class attribute in any html element which supports the class attribute
  4. By using the id attribute in any html element which supports the id attribute.

Question 35

Which of the following is true for an ID selector?

  1. It uses a dot as the separator symbol
  2. It applies the style to only the first element defined with that selector
  3. It applies the style to only the last elements defined with that selector
  4. It applies the style to all the elements defined with that selector

Question 36

Which of the following values are correct for Font-style?

  1. Normal, wider, narrower
  2. Normal , italic, oblique
  3. Normal, bold, lighter
  4. Small , medium , large

Question 37:

How will you link a style sheet names “ssa.css” in your web page?

Tuesday, September 21, 2010

odesk Css test solution Part 1

                   Odesk Css Test Solution
Question 1:
Which of the following is true for a class selector?

  1. It uses a hash as the separator symbol
  2. It applies the style to only the first element defined with that style
  3. It applies the style to only the last element defined with that style
  4. It applies the style to all the elements defined with that style

Question 2:
Which of the following does not apply to external styles?

  1. Clean separation of design & content
  2. Minimal code duplication
  3. Highest priority
  4. Reduces page download time

Question 3:

Read the following Code:
Background: white url(“bar.gif”);
Background-repeat: repeat-y;
Background-position: center;
What will be the output of this code?

  1. Image bar.gif will be tiled vertically in the background in the center of the page.
  2. Image bar.gif will be tiled horizontally in the background in the center of the page
  3. Image bar.gif will be displayed in the center of the page
  4. Image bar.gif will be stretched in the center of the page

Question 4:
Which of the following is not a valid text-decoration option?

  1. Text-decoration :line-through
  2. Text-decoration :in-line
  3. Text-decoration :overline
  4. Text-decoration :underline
  5. Text-decoration :none

Question 5:
You defined some links as follows:
What will be the color, when the mouse goes over a link?

  1. Green
  2. Blue
  3. Red
  4. Black

Question 6:
The following is a style definition:


How will you refer to this style in your web page?

  • A. by using the class attribute in a td cell
  • B. by using the id Attribute in a td cell
  • C. by using the class attribute in any html element which supports the class attribute
  • D. by using the id attribute in any html element which support the id attribute

Question 7:
Which of the following is not a valid property of an aural style sheet?

  1. Cue
  2. Voice-family
  3. Load
  4. Speak

Question 8:
Your website displays some articles on java programming. The articles contain blocks of java code as well. If you want to leave ‘1 cm’ space above and below the code blocks, you would use:

  1. Code{margin:1cm}
  2. Code{margin-top:1cm; margin-bottom:1cm}
  3. P{margin:1cm}
  4. P{margin-top:1cm; margin-bottom:1cm}

Question 9:

                        Text text text text
                        A      Text text
                        Sentence text text
                        Inside text text
                        A         text ext
                        Text     text text
                                Text text
                        Text text text text

You have and article of 100 lines. If for instance, you want to describe the theme with a few lines inside the text highlighted separately as show in the image which of the following property will you use?

  1. Outline
  2. Display
  3. Float
  4. Merge

Question 10:
You are fetching customer names from a database. The names in the database are mostly in lowercase. What is the name of the text property which will facilitate capitalization of these names?

  1. Text-mode
  2. Text-transform
  3. Text-decoration
  4. Text-shadow
  5. Text-case

Question: 11;

Here is one of the styles defined in your webpage:
border-width:thin thick

What type of border will be displayed if one of the paragraphs defined in the webpage uses this style?

  1. This will display a red border with thin top and bottom
  2. This will display a red border with thick top and bottom
  3. This will display a red border with thick left and right
  4. This will not display any border

Question 12:
Which of the following are correct values of the overflow property?

  1. Visible
  2. Hidden
  3. Scroll
  4. Auto

Question 13:
Which of the following is correct?

  1. Blockquote{text-padding:2em 4em 5em}
  2. Blockquote{padding-x:2em 4em 5em}
  3. Blockquote{padding-y:2em 4em 5em}
  4. Blockquote{padding:2em 4em 5em}

Question 14:
Which element property is required to define internal styles?

  1. Class
  2. Style
  3. span
  4. link

Question 15
Which style property can be used to display only some part of an image?

  1. Snap
  2. Clip
  3. Scroll
  4. Visible

Question 16
Which of the following is not true for a style sheet?

  1. A style sheet defines how an html element will be displayed
  2. Internal and external style sheets can not be used together
  3. Multiple style definitions will cascade into one
  4. The same style sheet can be used by many html pages

Question 17
Which of the following font properties deals with aspect value?

a.    Font-weight
b.    Font-variant
c.     Font-size-adjust
d.    Font-size

Question 18:
Consider this style definition:
P i{color:red}
What do you understand about the contextual selector used above?

  1. All the text within a paragraph will be italicized
  2. All the italic text in the page will have red color
  3. All the page text under
    tag and tag will be red
  4. All the italic text with in a paragraph will be red

Question 19

Background-position sets the position of the background image what happens if its value is 0% 0%?

  1. Image will have zero width and height so it will be hidden.
  2. Image will be positioned at the upper left corner.
  3. Image will be positioned at the lower right corner
  4. None of the above

Question 20
You want to increase the space between the lines in all you paragraphs. What will you use?

  1. P{width:1cm}
  2. P{height: 1cm}
  3. P{line-height:1cm}
  4. P{line-width:1cm}

Sunday, September 19, 2010


Microsoft Excel 2000 Odesk Test Solution

Microsoft Excel 2000 Odesk Test

Q1: figure shows a view of the Standard Toolbar. What function is performed by the button marked by the letter 'Z'?

Ans:It copies the formatting properties from one cell to another

Q2:The figure shows the AutoFit Selection menu option. What function does it perform?

Ans:It automatically resizes the column height and width to the minimum necessary to fit the contents of the selected cell

Q:How does the AutoComplete feature in Excel help you save time?

Ans:It automatically completes abbreviated words
Q:The figure shows a view of the Standard Toolbar. What function is performed by the button marked by the letter 'A'?

Ans:It is used to add a hyperlink

Q:Which of the following options would be used if you need to insert a 77889867810070809 number in a cell?

Ans:Apply the Text Format to empty cells, and then type the numbers

Q:Suppose the value in cell A1 is John and B1 is Smith then which of the following function you will use to get the John_Smith in C1 cell?


Q:How can you select all the blank cells in your worksheet?

Ans:This must be done manually as it is not automated through any built-in feature

Q:What is the quickest way to select all the columns on a worksheet?

Ans:Click on the gray rectangle on the upper left corner of the worksheet where the column headings and row headings meet

Q:The figure shows an Excel worksheet. If you want to freeze the row showing the months (row 1) and the column showing the products (column A), what should you do?

Ans:Select the cell A1 and click on Freeze Panes under the menu Window->Freeze Panes

Q:Which of the following functions would return a value of 8?

Ans:b and c

Q:You select the row headings 10, 11 and 12 and then choose the menu option Insert->Rows. What will happen?

Ans:3 new rows will be inserted after row 9

Q:The figure shows a view of the Drawing Toolbar. What function is performed by the button marked by the letter 'X' ?

Ans:It inserts a Diagram or Organization Chart in the worksheet

Q:When using Document Workspaces, you cannot work directly on the Document Workspace copy, but you can work on your own copy which you can update periodically with changes that have been saved to the copy on the Document Workspace site.


Q:You have created a worksheet which consists of confidential data. You want that these values, although present in the worksheet, should remain hidden and as a result the cells containing this data should appear blank in the worksheet. Which method will help you do this?

Ans:Select the cells, open the Window menu and click on Hide

Q:Which of the following Date and Time function you will use to return the serial number of the last day of the month before or after a specified number of months?


Q:The figure shows a view of the Standard Toolbar. What function is performed by the button marked by the letter 'Y'?

Ans:It adds up the values in the selected cells

Q:Which of the following errors appears when an invalid argument is passed while converting a number from one number system to another system?


Q:Which of the following function you will use to find the highest number in a series of numbers?


Q:You have entered 4/6 as data in a cell without applying any formats to it. By default, Excel will treat this data entry as a:

Q:You define a print area in your worksheet, but later you select a smaller range of cells to print and then click Selection under the menu File->Print->Selection. What will happen?


Q:What will be the output of the function IF(ISNA(MODE(B1:B4)),0,MODE(B1:B4)) when it is applied to the data series given below?


Q:AutoFilter drop-downs are automatically added in the header row of a list when the list is created.


Q:What does the NOW() function returns?

Ans:Returns the serial number of the current date and time

Q:You start Microsoft Excel and you do not want it to automatically run a macro upon starting. What will you do?

Ans:Hold down the CTRL key during startup

Q:Which toolbar is shown in the figure?

Ans:Forms toolbar

Q:When you clear the contents from a cell, the formatting of the cell is also lost.


How to start on odesk

To Starting your freelancing job is somewhat challenging. There are a number of things that you should consider in clinching  your desired freelance job.  I personally love freelancing jobs as I don’t have to go to an office sitting for hours and getting some badly  commands from my Boss. I am free and I do what I love to do. I do my jobs sitting on my relaxing armchair whenever I love. However, truth be told that, it’s not easy to get a freelance job unless you know the exact and appropriate strategies. There are millions of people around the world who seek freelance jobs every day. But do all of them get their desired job? However, no big deal, I am going to tell you how to get a freelance job by the means of odesk.

1. Getting An Overall Idea:

People around the world are getting smarter day by day by the means of technological advancement. However, before starting your freelance career, I personally believe that you have to have a crystal and clear idea about a freelance site. However, visit the website and get an overall idea. Go to you tube and see the animated video. Here are the links:
You Tube:

2. Sign Up:

I hope you have got a clear idea about odesk. However, now it’s time to sign up. Go to the website and sign up by filling some pieces of information. Sadly, most of the new freelancers don’t seem interested in uploading a photograph. But, I personally think, a photograph is an important thing for your freelance career. Visibility is very important to a buyer. Make sure that you fill everything with valid and correct information.
3. Complete Your Profile:
It’s very disappointing that, most of the new providers don’t complete their profile on odesk. However, in order to get your first freelance job, you have to complete your profile with legitimate information. Make sure that you fill all categories correctly including portfolio projects, employment history, education, certifications etc. Your profile will look good and you will have better chance of getting your first freelance jobs upon completing your profile.
Ø Be careful in choosing/writing your objectives. Your objective should focus on your skills.
Ø Be careful in choosing your hourly rate. It’s recommended that in the primary stage it shouldn’t be more than $ 12/ hour. You may increase/ decrease the rate later.

4. Take Some Tests:

Taking some tests make your profile attractive that simply helps you get your first freelance job. However, on odesk you will find hundreds of tests. For instance if you are a PHP developer, you may take php tests, if you are article writer; you should take some writing skill test. However, I recommend that every new provider who is looking for a freelance job should take Basic English language proficiency tests. Such as, US English basic skills test, UK English test etc. In order to get a freelance job, it’s important that you have minimum English language proficiency.

5. Make a Good Cover Letter:

Well, it’s time to make a good cover letter. A cover letter is one of the key elements of getting your first freelance job. However, so what is a cover letter? A cover letter is kind of letter that primarily includes your skills, qualifications, work experience etc. This is the first thing that your buyer will notice prior to hiring you. For each and every job, you have to apply with a cover letter. However, I added some cover letter in my blog. See here “Free Ebooks Section.”
Finally, I can say that it may take a few days for you to get your first freelance job by the means of odesk. However, you would be surprised that, it took me almost a month to get a job. The situation was like that I lost the hope of getting a job. Nevertheless, the reason was that, my profile wasn’t complete and my job cover letter wasn’t appealing. So, be patient and consistent. Your desired job is waiting for you.

Sunday, September 12, 2010

Search Engine Optimization

  1. What are your thoughts on the direction of Web 2.0 technologies with regards to SEO?
  2. Can you write HTML code by hand?
  3. Could you briefly explain the PageRank algorithm?
  4. How you created any SEO tools either from scratch or pieced together from others?
  5. What do you think of PageRank?
  6. What do you think of using XML sitemaps?
  7. Give me a description of your general SEO experience.
  8. What SEO tools do you regularly use?
  9. Under what circumstances would you look to exclude pages from search engines using robots.txt vs meta robots tag?
  10. What areas do you think are currently the most important in organically ranking a site?
  11. Do you have experience in copywriting and can you provide some writing samples?
  12. Have you ever had something you've written reach the front-page of Digg? Sphinn? Or be Stumbled?
  13. Explain to me what META tags matter in today's world.
  14. Explain various steps that you would take to optimize a website?
  15. If the company whose site you've been working for has decided to move all of its content to a new domain, what steps would you take?
  16. Rate from 1 to 10, tell me the most important "on page" elements
  17. Review the code of past clients/company websites where SEO was performed.
  18. What do you think about link buying?
  19. What is Latent Semantic Analysis (LSI Indexing)?
  20. What is Phrase Based Indexing and Retrieval and what roles does it play?
  21. What is the difference between SEO and SEM?
  22. What kind of strategies do you normally implement for back links?
  23. What role does social media play in an SEO strategy?
  24. What things wouldn't you to do increase rankings because the risk of penalty is too high?
  25. What's the difference between PageRank and Toolbar PageRank?
  26. Why might you want to use nofollow on an internal link?

Tuesday, September 7, 2010

odesk php test

Question: given below is a small php script:
class person{
Function getSal()
Class emp extends person{
funciton GetSal()
The getSal() of emp has to behave exactly as getSal() of person .which of the folliwing lines of code would you use to replce the

a. perent:: getSal();
b. person:: getSal();
c. parent:: getSal;
d. person:: getSal;

Ans: D

what would be the output of the following code?

$stg='good day';
$stg= ucwords($stg);
echo $stg;

a. good day
c. Good Day
d None of the above
Ans: C

which of the following command line interface constant is not defined in the cli sapi?




if the session_cache_expire()is not set,then by default the session cache will expire after:

a. 1 hr
b. 2 hr
c. 3 hr
d 4 hr


Which of the following is not a correct way of commenting in php?

a. //php comment
b. /*php comment*/
c. #php comment
d /# php comment


PHP interview questions and answers

PHP interview questions and answers
1. What does a special set of tags do in PHP?
The output is displayed directly to the browser.
2. What the difference is between include and require?
It is how they handle failures. If the file is not found by require(), it will cause a fatal error and halt the execution of the script. If the file is not found by include(), a warning will be issued, but execution will continue.
3. I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?
PHP Interpreter treats numbers beginning with 0 as octal. Look at the similar PHP interview questions for more numeric problems.
4. Would I use print "$a dollars" or "{$a} dollars" to print out the amount of dollars in this example?
In this example it wouldn’t matter, since the variable is all by itself, but if you were to print something like "{$a},000,000 mln dollars", then you definitely need to use the braces.
5. How do you define a constant?
Via define() directive, like
define ("MYCONSTANT", 100);
6. How do you pass a variable by value?
Just like in C++, put an ampersand in front of it, like $a = &$b
7. Will comparison of string "10" and integer 11 work in PHP?
Yes, internally PHP will cast everything to the integer type, so numbers 10 and 11 will be compared.
8. When are you supposed to use endif to end the conditional statement? - When the original if was followed by : and then the code block without braces.
9. Explain the ternary conditional operator in PHP? –
Expression preceding the ? is evaluated, if it’s true, then the expression preceding the : is executed, otherwise, the expression following : is executed.
10. How do I find out the number of parameters passed into function? func_num_args() function returns the number of parameters passed in.
11. If the variable $a is equal to 5 and variable $b is equal to character a, what’s the value of $$b?
100, it’s a reference to existing variable.
12. What’s the difference between accessing a class method via -> and via ::?
:: is allowed to access methods that can perform static operations, i.e. those, which do not require object initialization.
13. Are objects passed by value or by reference?
Everything is passed by value.
14. How do you call a constructor for a parent class?

15. What’s the special meaning of __sleep and __wakeup?
__sleep returns the array of all the variables than need to be saved, while __wakeup retrieves them.
16. Why doesn’t the following code print the newline properly?
Because inside the single quotes the n character is not interpreted as newline, just as a sequence of two characters - and n.

17. Would you initialize your strings with single quotes or double quotes? Since the data inside the single-quoted string is not parsed for variable substitution, it’s always a better idea speed-wise to initialize a string with single quotes, unless you specifically need variable substitution.
18. How come the code works, but doesn’t for two-dimensional array of mine?
Any time you have an array with more than one dimension, complex parsing syntax is required. print "Contents: {$arr[1][2]}" would’ve worked.
19. What is the difference between characters 23 and x23?
The first one is octal 23, the second is hex 23.
20. With a heredoc syntax, do I get variable substitution inside the heredoc contents?
21. I want to combine two variables together:
22. $var1 = 'Welcome to ';
23. $var2 = '';
What will work faster? Code sample 1:
$var 3 = $var1.$var2;
Or code sample 2:
$var3 = "$var1$var2";
Both examples would provide the same result - $var3 equal to "Welcome to". However, Code Sample 1 will work significantly faster. Try it out with large sets of data (or via concatenating small sets a million times or so), and you will see that concatenation works significantly faster than variable substitution.
24. For printing out strings, there are echo, print and printf. Explain the differences. –
echo is the most primitive of them, and just outputs the contents following the construct to the screen. print is also a construct (so parentheses are optional when calling it), but it returns TRUE on successful output and FALSE if it was unable to print out the string. However, you can pass multiple parameters to echo, like:

and it will output the string "Welcome to TechInterviews!" print does not take multiple parameters. It is also generally argued that echo is faster, but usually the speed advantage is negligible, and might not be there for future versions of PHP. printf is a function, not a construct, and allows such advantages as formatted output, but it’s the slowest way to print out data out of echo, print and printf.
25. I am writing an application in PHP that outputs a printable version of driving directions. It contains some long sentences, and I am a neat freak, and would like to make sure that no line exceeds 50 characters. How do I accomplish that with PHP? –
On large strings that need to be formatted according to some length specifications, use wordwrap() or chunk_split().
26. What’s the output of the ucwords function in this example?
print $formatted;
ucwords() makes every first letter of every word capital, but it does not lower-case anything else. To avoid this, and get a properly formatted string, it’s worth using strtolower() first.
28. What’s the difference between htmlentities() and htmlspecialchars()? - htmlspecialchars only takes care of <, >, single quote ‘, double quote " and ampersand.
htmlentities translates all occurrences of character sequences that have different meaning in HTML.
29. What’s the difference between md5(), crc32() and sha1() crypto on PHP? - The major difference is the length of the hash generated. CRC32 is, evidently, 32 bits, while sha1() returns a 128 bit value, and md5() returns a 160 bit value. This is important when avoiding collisions.
30. So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?
Crypto usage in PHP is simple, but that doesn’t mean it’s free. First off, depending on the data that you’re encrypting, you might have reasons to store a 32-bit value in the database instead of the 160-bit value to save on space. Second, the more secure the crypto is, the longer is the computation time to deliver the hash value. A high volume site might be significantly slowed down, if frequent md5() generation is required.
31. How do you match the character ^ at the beginning of the string? –

Saturday, September 4, 2010

odesk javascript solution

JavaScript Test Solution

1. What’s relationship between JavaScript and ECMAScript? -
ECMAScript is yet another name for JavaScript (other names include LiveScript).
The current JavaScript that you see supported in browsers is ECMAScript revision 3.
2. What are JavaScript types? -
Number, String, Boolean, Function, Object, Null, Undefined.
3. How do you convert numbers between different bases in JavaScript? -
Use the parseInt() function, that takes a string as the first parameter, and the base as
a second parameter. So to convert hexadecimal 3F to decimal, use parseInt ("3F", 16);
4. What does isNaN function do? -
Return true if the argument is not a number.
5. What is negative infinity? -
It’s a number in JavaScript, derived by dividing negative number by zero.

6. What boolean operators does JavaScript support? -
&&, || and !
7. What does "1"+2+4 evaluate to? -
Since 1 is a string, everything is a string, so the result is 124.
8. How about 2+5+"8"? -
Since 2 and 5 are integers, this is number arithmetic, since 8 is a string, it’s concatenation,
so 78 is the result.
9. What looping structures are there in JavaScript? -
for, while, do-while loops, but no foreach.
10. How do you create a new object in JavaScript? -
var obj = new Object(); or var obj = {};
11. How do you assign object properties? -
obj["age"] = 17 or obj.age = 17.
12. What’s a way to append a value to an array? -
arr[arr.length] = value;
13. What is this keyword? -
It refers to the current object.

oDesk Readiness test answers

oDesk Readiness test answers

Q no 1: If you have not done so please download and install the oDesk Team application. With the client running right click on the oDesk Team icon in the system tray (or doc for Mac users). Which of the following options is listed first? Note that you do NOT have to log into any actual Team Room to answer this question.

A: TeamRoom..

Q 2
: Which of the following actions are NOT allowed when applying to job openings?

A: All of the above

'How does feedback work on oDesk?'

A: All of the above

: Which of the following break the oDesk user agreement?

A: All of the above

Q5: Which of the following is true of your oDesk timelog?

A: All of the above

: Which of the following statements about the oDesk Team application are true?

A: All of the above

: What do you need to do to ensure guaranteed payment on hourly jobs?

A: All of the above

: Which of the following statements are correct about oDesk fees?

A: All of the above

: Buyers set weekly limits on hourly assignments, how do these work?

A: All of the above

: How does oDesk's dispute resolution policy for work?

A: All of the above

: Can I start my own company on oDesk?

A: Yes! oDesk allows you to build and manage a team of workers, colleagues and collaborators. You can even subcontract other workers on oDesk to other customers oDesk (and take a cut).