রবিবার, ৩ মার্চ, ২০১৩

oDesk PHP5 Test Answers 2013


oDesk PHP5 Test Answers 2013
1. Question: What is true regarding this code?
Answer: setcookie will return true
2. Question: Which of the following is not a correct way of printing text in php5?
Answer: echo “Plain text”;
3. Question: Which of the following is not the correct way of starting a session?
Answer: session_initiate()
4. Question: Which of the following functions do you need to implement HTTP Basic Authentication?
Answer: None of the above
5. Question: Which of the following Command Line Interface constant is not defined in the CLI SAPI?
Answer: STDPRT
6. Question: Which of the following statements is correct with regard to final and abstract?
Answer: a. An abstract class cannot have final methods
7. Question: Which composite data types are supported by php?
Answer: Array
8. Question: The default value of register_globals in PHP is:
Answer: Off
9. Question: Which of the following is not a valid PHP connection status?
Answer: open
10. Question: Choose the correct statement:
Answer: include() includes and evaluates a specific file require_once() includes and evaluates a specific file only if it has not been
included before
11. Question: If the session_cache_expire() is not set, then by default the session cache will expire after:
Answer: 3 hrs
12. Question: What will be the output of the following script?
$count=50;
Paamayim Nekudotayim operator allows access only to the static members of a class? Paamayim Nekudotayim operator allows access only to the static members of a class? Answer: function_exists
$i=4;
User Name:
Password:
class Manager{
Answer: 5+2 * 4+6
$var = 1 + “-1.3e3″;
function Argument()
{ $count++;
echo $count;
} Argument();
?>
Answer: It will print 1 13. Question: State whether True or False
Answer: True
14. Question: Which of the following statements is true with regard to comparisons in PHP5?
Answer: With (===) operator, object variables are identical if and only if they
refer to the same instance of the same class.
15. Question: What will be the output of the following code?
$a = 0.0;
for ($i = 0; $i < a =”=”">
Answer: 1
16. Question: What will be the output of the following code?
$j=30;
$k=0;
$k=$j++/$i++;
echo $i . ” ” . $j . ” ” . $k . ” “;
Answer: 5 31 7.5
17. Question: Which of the following is a not a correct way of commenting in php? Answer: /#PHP Comment
18. Question: Following is a php code block:
$m=9;
$n=99;
$z=8;
$z=$n++/$m++ + –$z;
echo $z;
what will be the output?
Answer: 18
19. Question: Which of the following is the correct way of specifying default value?
Answer: function GetDiscount($Type = “Special”) { . . . }
20. Question: With reference to the following php script:
print ‘Text Line1′
print ‘Text Line2′
?> What will be the output on running the script?
Answer: Error message will be printed
21. Question: What will be the ouput of the following code?
for ($i = 0; $i < i =”=”">
0134
Question: Late PHP versions support remote file accessing for the functions:
Answer: include_once()
require_once()
both of them
22. Question: You have designed a user login form as follows:
How can you access the username entered by the user in the ‘Validate.php’ webpage?
a. $var= $_POST['username'];
b. $var= $_REQUEST['username'];
c. import_request_variables(‘p’, ‘p_’);
$var= $p_username;
Answer: Both of them
23. Question: Which of the following does not represent logical AND operator in PHP?
Answer: &
24. Question: Which of the following is not true for a persistent connection?
Answer: These can’t be converted to non-persistent connections
25. Question: Which of the following are invalid data types in PHP?
Answer: char
26. Question: The Manager and Office classes are as follows:
function printName() { echo “Manager”; } } class Office{ function getManager() { return new Manager(); } } $ofc = new Office(); ??? ?>
Which of the following should replace ‘???’ to obtain the value of printName() function?
Answer: $ofc->getManager()->printName();
27. Question: The classes are defined as follows:abstract class BaseCls{ protected abstract function getName();
} class ChildCls extends BaseCls{ } Which of the following implementations of getName() is invalid in ChildCls?
Answer: public function getName(){}
28. Question: Which of the following variable declarations within a class is invalid in PHP5?
Answer: var $term =3;
oDesk PHP5 Test Answers
29. Question: What will be the output of following code? $arr = “a”; $arr[0]=”b”; echo $arr; echo $arr[0]; Answer: bb
30. Question: For the following code: the output will be: Answer: 171
31. Question: What is the result of the following expression? Question: What will be the output of following code? echo $var; Answer: -1299
32. Question: What will be the output of following code? $var1=”a”; $$var1=”b”; echo “$var1 $a”; Answer: a b
33. Question:What is the output of the following code? $a = 500; $b = 200; echo $a % 2 * $b; ?>
Answer: 0
34. Question: What will be the ouput of the following code? if (-1) print “true”; else print “false”; ?> Answer: true
35. Question: What will be the output of the following code?
echo 12 . 6;
Answer: 126
36. Question: Consider the following sample code:
$x = 0xFFFE;
$y = 2;
$z = $x && $y;
What will be the value of $z?
Answer: 1

oDesk English Vocabulary Test (U.S. Version) Answers 2013


oDesk English Vocabulary Test (U.S. Version) Answers 2013
1. Choose the word or phrase that is most nearly an antonym of the word below.
–Itinerant
a. permanent
b. flexible
c. transient
d. dissatisfied
Ans: c
2. Complete the following sentence by choosing the correct homophone from the options below.
This experiment was designed to _____ certain behaviors from the test subjects.
a. illicit
b. elicit
Ans: b
3. Choose the word that best corresponds with the definition given below.
adj. Tending to create ill will or give offense
a. labyrinthine
b. invidious
c. titillating
d. envious
Ans: b
4. Choose the word that best corresponds with the definition given below.
n. Capacity for producing a desired result; effectiveness
a. contumacy
b. defenestration
c. conversion
d. efficacy
Ans: d
5. Choose the word or phrase that is most nearly an antonym of the word below.
Lassitude
a. simplicity of speech
b. leniency
c. philanthropy
d. vigor
Ans: d
6. Choose the word or phrase that is most nearly a synonym for the word in Capital Letters in the following sentence.
The coach was absolutely by his team’s INDOLENCE and nasty attitude.
a. violent behavior
b. odorousness
c. laziness
d. disappearance
Ans: c
7. Choose the word or phrase that is most nearly a synonym for the word in Capital Letters in the following sentence.
Her MELLIFLUOUS voice is perfectly suited to lullabies and never fails to put us all to sleep.
a. smoothly flowing; sweet-sounding
b. dull; tiresome
c. cacophonous
Ans: a
8. Choose the word or phrase that is most nearly a synonym for the word in Capital Letters in the following sentence.
She always got a VICARIOUS thrill from watching her father skydive.
a. empathetic
b. dangerous
c. pathetic
d. sickening
Ans: a
9. Complete the following sentence by choosing the correct word from the options below.
The crafty spy gave a _____ name to the hotel clerk.
a. fictive
b. fictional
c. fictitious
Ans: a
10. Choose the word that best corresponds with the definition given below.
adj. Understood by or intended for only a select few or a particular group.
a. esoteric
b. eccentric
c. narcissistic
d. languid
Ans: a
11. Choose the word that best corresponds with the definition given below.
n. A position that entails little work but provides a salary.
a. quiescence
b. theocracy
c. swindle
d. sinecure
Ans: d
12. Choose the word that best corresponds with the definition given below.
adj. Sluggish; apathetic; dull
a. turbid
b. torpid
c. turgid
d. tepid
Ans: d
13. Complete the following sentence by choosing the correct set of words from the options below.
Mr. Winkle was dismayed to discover that his willful young wife _____ her wealth and _____ the law at every opportunity.
a. flouted/flouted
b. flouted/flaunted
c. flaunted/flouted
d. flaunted/flaunted
Ans: c
14. Choose the word or phrase that is most nearly an antonym of the word below.
Refute
a. expose
b. support
c. garbage
d. safe place
Ans: b
15. Complete the following sentence by choosing the correct word from the options below.
I screamed as the monstrous presence snaked toward me on the dark and _____ path.
a. tortious
b. tortuous
c. torturous
Ans: b
16. Choose the word that best corresponds with the definition given below.
adj. Easily provoked to anger; irritable
a. sapid
b. irascible
c. jocund
d. incorrigible
Ans: b
17. Choose the word or phrase that is most nearly a synonym for the word in Capital Letters in the following sentence.
The WIZENED old woman gave Jack a handful of beans and some good advice.
a. sage
b. shriveled
c. creepy
d. jocular
Ans: b
18. Choose the word that best corresponds with the definition given below.
adj. Similar to something else in certain respects, as in form, function, or meaning
a. abject
b. agrarian
c. analogous
d. amalgam
Ans: c
19. Choose the definition that best reflects the meaning of the word in Capital Letters as it is used in the sentence below.
These artists really IMBUE their work with a spirit of profound freedom.
a. spoil
b. detract from; debase
c. fill or permeate with a particular feeling or quality
Ans: c
20. Complete the following sentence by choosing the correct set of words from the options below.
Our lawyers have informed us that while the new tax laws will not _____ our business directly, they may have an adverse _____ on the spending power of our customers.
a. effect/affect
b. affect/affect
c. effect/effect
d. affect/effect
Ans: d
21. Complete the following sentence by choosing the correct homophone from the options below.
The company is _____ committed to developing educational television programs for children.
a. holey
b. holy
c. wholly
Ans: c
22. Choose the definition that best reflects the meaning of the word in Capital Letters as it is used in the sentence below.
The diplomats, who have been accused of DUPLICITY by their respective countries, have been removed from their posts.
a. bad taste
b. deceitfulness; double-dealing
c. embezzlement
Ans: b
23. Complete the following sentence by choosing the correct homophone from the options below.
Oscar, who did not possess a discerning _____, preferred hotdogs to steak.
a. palette
b. pallet
c. palate
Ans: c
24. Complete the following sentence by choosing the correct set of words from the options below.
The workers were allowed to _____ down once they’d _____ the brick, but the foreman himself has not yet _____ down.
a. lay/lain/laid
b. lie/laid/lain
c. lie/lain/lain
d. lay/laid/laid
Ans: d
25. Complete the following sentence by choosing the correct homophone from the options below.
That grueling competition really tested the _____ of the gymnastics team.
a. meddle
b. metal
c. medal
d. mettle
Ans: d
26. Choose the word that best corresponds with the definition given below.
adj. Narrow-minded; limited in scope
a. hermetic
b. foreseeable
c. sporadic
d. sectarian
Ans: d
27. Choose the word or phrase that is most nearly an antonym of the word below.
Inordinate
a. reasonable
b. on a waiting list
c. unprepared
d. immense
Ans: a
28. Choose the word that best corresponds with the definition given below.
v. To issue a vehement verbal attack; to denounce explosively
a. vituperative
b. litigant
c. fulminate
d. exhume
Ans: c
29. Choose the word that best corresponds with the definition given below.
v. To impose with authority; urge strongly
a. enjoin
b. prevalent
c. dissonance
d. relegate
Ans: a
30. Complete the following sentence by choosing the correct set of words from the options below.
I can _____ all the terms of the apartment lease ______ the one about not allowing pets.
a. except/accept
b. except/except
c. accept/accept
d. accept/except
Ans: d
31. Complete the following sentence by choosing the correct set of homophones from the options below.
The _____ poet, knowing his death was _____, struggled to finish his final ode.
a. imminent/eminent
b. eminent/immanent
c. immanent/imminent
d. eminent/imminent
Ans: d
32. Choose the word that best corresponds with the definition given below.
adj. Hardhearted; unmoved by pity
a. apologetic
b. parsimonious
c. obdurate
d. abdicated
Ans: c
33. Choose the definition that best reflects the meaning of the word in Capital Letter as it is used in the sentence below.
The publicist was surprised by the INUNDATION of fan letters for her top client.
a. deluge
b. dearth
c. hindrance
Ans: a
34. Choose the definition that best reflects the meaning of the word in Capital Letters as it is used in the sentence below.
Alicia, who loved both men equally and wanted to hurt neither, found herself in quite a QUANDARY over which one she should choose.
a. happy circumstance
b. puzzling predicament
c. easy decision
Ans: b
35. Choose the word or phrase that is most nearly a synonym for the word in Capital Letters in the following sentence.
Agatha RUMINATED for weeks about the consequences of telling Arthur about the affair.
a. pondered
b. worried
c. neglected
d. laughed
Ans: a
36. Choose the word or phrase that is most nearly an antonym of the word below.
Pretentious
a. modest
b. understanding
c. uneasy
d. pleasant
Ans: a
37. Choose the definition that best reflects the meaning of the word in Capital Letters as it is used in the sentence below.
Maude managed to sweep up the broken dishes without a word of REPROOF to her children.
a. expression of disapproval or blame
b. expression of affection or love
c. expression of apology or regret
Ans: a
38. Choose the word or phrase that is most nearly a synonym for the word in Capital Letters in the following sentence.
His son’s group of friends had a DELETERIOUS effect on his schoolwork.
a. influential
b. positive
c. hysterical
d. harmful
Ans: d
39. Complete the following sentence by choosing the correct set of homophones from the options below.
The skillful candidate’s _____ speech was delightful to listen to, but failed to explain how he would achieve the ______ goals of peace and prosperity.
a. illusive/elusive
b. allusive/elusive
c. elusive/allusive
d. allusive/illusive
Ans:

শনিবার, ২ মার্চ, ২০১৩

oDesk MS Word 2007 test answers 25.3.2013

oDesk MS Word 2007 test answers 2013
1. Which among the following methods would you select when you want to add protection to parts of a template?
Ans: Go to the Developer tab, click on Properties in the Controls group and then click any of the Locking options in the Content Control Properties dialog box.
2. Which of the following is/are true about phishing?
Ans: All if the above
3. This question is based upon the figure shown below
In some cases, when lists are combined into one “List,” the formatting is not updated. Refer to the picture given above. Which among the following options should be used to update this formatting?
Ans: D
4. Which among the following charts do not have axes?
Ans: Doughnut charts
5. Microsoft named two styles that work in Word 2007 as both character and paragraph types as being ______ styles:
Ans: Linked
6. This question is based upon the figure shown below
Ans: It ensures that the text is not obscured by binding.
7. With the help of which view will the Watermark not be seen?
Ans: Web Layout view
8. This question is based upon the figure shown below
How will the Message Bar alerts be enabled as shown in the given picture?
Ans: Select Word Options from the Microsoft Office Button. Click on TrustCenter, then click Trust Center Settings, and then click Message Bar.
9. Which among the following is not a Bookmark option to sort the list of bookmarks in the document?
Ans: Author
10. This question is based upon the figure shown below
Why is the “Different First Page” option used in the Page Setup dialog box as shown in the given picture?
Ans: This option allows you to remove the Page Number from the first page.
11. State whether true or false:
Once a bullet is removed from the “Bullet Library” and it is no longer available in the “Document Bullets” area, the bullet cannot be added back to the Bullet Library.
Ans: False
12. This question is based upon the figure shown below
Which of the following types of charts are not supported by either Lines or Bars, as shown in the picture?
Ans: Area charts
13. Which among the following features could be used to create a connection to a Shared Network folder?
Ans: Map Network Drive
14. Edit tracking changes are typically formatted in the following manner: (1) deletions—red strikethroughs, (2) additions—green and underlined, and (3) formatting changes are made bold in almost any other desired color. Where in Word 2007 could you set your own custom formatting options for tracking changes?
Ans: Select the Review ribbon and then select the triangle by Track Changes. In the drop-down menu, select “Change Tracking Options” and then set your formatting options in the Track Changes Options dialog box.
15. How will you insert text boxes for a printed form?
Ans: Select the Insert tab, in the Text group, click on Text Box and then select Draw Text Box.
16. To enter a symbol or special character into your document (to where the cursor is located), which of the following methods could you employ in Word 2007?
Ans: Open the Insert ribbon. Click Symbol in the Symbols group. A menu will appear with a small selection of symbols. If you don’t see the symbol or character you’d like to insert, click More Symbols. Choose the special character (or symbol) that you want and then click Insert and click Close.
17. You are editing a figure using the Drawing Tools > Format options. Which among the following Shape Fill options in the Shape Styles group adds a solid color and transparency to a shape?
Ans: More Fill Colors…
18. State whether true or false:
When you save a document as a Web page, the textures and gradients are saved as JPEG files and the patterns are saved as GIF files.
Ans: True
19. Which among the following options is the reason of text deletion at the insertion point when you type a document?
Ans: The “overtype mode” is turned on in Word options.
20. What is meant by Enhanced ScreenTips?
Ans: Enhanced ScreenTips are larger windows that display more descriptive text than a ScreenTip and can have a link to a Help topic.
21. This question is based upon the figure shown below
Refer to the given picture. Which of the following Line Numbers should be used when each page has to begin with the number 1?
Ans: Restart Each Page
22. Which keyboard shortcut could be used to switch to Draft View?
Ans: ALT+CTRL+N
23. State whether true or false:
The “Add Assistant” shape option in a SmartArt graphic is available only if an organization chart layout is chosen.
Ans: True
24. Which view(s) could be used to view the Equation placeholders in the Document Views group?
Ans: All of the above
25. State whether true or false:
Any changes that are saved to “Normal.dotm” will be applied to the documents that you create in the future.
Ans: True
26. State whether true or false:
Changing the Author property in the Document Information Panel of an existing document has no effect on the User name setting in the Word Options dialog box.
Ans: True
27. How will you set the default font so that every time you open Microsoft Word it will use the settings that you had selected?
Ans: Select the Home tab, and then click the Font Dialog Box Launcher. Select the font style and size. Click on Default… and then click Yes.
28. Which of the following line-spacing options sets fixed line spacing that Word does not adjust?
Ans: Doubled
29. How will you change the author name in an existing document?
Ans: All of the above
30. State whether true or false:
Microsoft Office programs store some additional information within the digital signature automatically that might not be visible in the current view document.
Ans: True
31. Which among the following options could be used to turn off the Office Clipboard?
Ans: All of the above
32. What does the command “Winword.exe /f MyDocument.docx” mean?
Ans: This command instructs Word to start and immediately open a file named MyDocument.docx.
33. Which among the following is an invalid character to include in a file name?
Ans: All of the above
34. State whether true or false:
Gridlines do not print when a document is printed.
Ans: True
35. Which keyboard shortcut inserts a hyperlink?
Ans: CTRL+K
36. Which among the following wildcards should be used to select any single character?
Ans: ?
37. This question is based upon the figure shown below
Refer to the given image. Which option should be selected to convert a professionally formatted equation into an equation on one line?
Ans: C
38. Which of the following is not a Content Control?
Ans: Chart
39. This question is based upon the figure shown below
Ans: Numbering
40. Which among the following is a correct way to make your file “Read-only?”
Ans: Click “Save As” from the Microsoft Office Button. Click on Tools and then click General Options. Select the Read-only recommended check box. Click OK. Click on Save.
41. Which among the following options should be used to start a bulleted list automatically?
Ans: Type * (asterisk) and then press spacebar or the Tab key.
42.
Which of the following can be the reason for the appearance of the red X, as shown in the picture?
Ans: All of the above
43. State whether true or false:
ASCII-formatted text contains no formatting information such as bold, italic, or fonts.
Ans: True
44. State whether true or false:
New text animation effects can be applied in Microsoft Word 2007.
Ans: False
45. Which among the following options should be used to number the cells in a table?
Ans: Select the table cells that need to be numbered. On the Home tab, in the Paragraph group, click on Numbering.
46. Which of the following options repeats a table heading on subsequent pages?
Ans: Repeat Header Rows
47. Which keyboard shortcut could be used to check the spelling of a text file?
Ans: F7
48. Which among the following is not true regarding the use of a pie chart?
Ans: A pie chart should be used when there are more than seven categories.
49. This question is based upon the figure shown below
Refer to the given picture. Which of the following options turns off Enhanced ScreenTips but keeps the ScreenTips still visible?
Ans: B
50. Unlike the other types of styles (paragraph, character, linked, and table), predefined list styles are available when you first create a document in Word 2007.
Ans: False
51. This question is based upon the figure shown below
What is the maximum number of columns that can be created in the Columns dialog box as shown in the picture?
Ans: 13
52. This question is based upon the figure shown below
Refer to the given image. In Picture1, axes appear on the left side. Which setting should you use to make them appear on the right side, as shown in Picture2?
Ans: Select the Axis Options tab in the Format Axis dialog box. Set the Axis labels: field to High.
53. Which of the following two paragraphs is/are true for Word 2007?
(1)To show or hide formatting marks in your editing markup — on the Home ribbon, in the Paragraph group, click the Show/Hide button.
(2) The Show/Hide button will not hide all the formatting marks in the document if you selected those marks that are to be displayed at all times (such as paragraph marks, tab characters, hidden text, optional hyphens, object anchors, or spaces). To turn off any or all of these selected formatting marks, follow this procedure: Click the Microsoft Office Button and then click Word Options. Then Click Display. Under “Always show these formatting marks on the screen,” clear the check boxes for any formatting marks that you do not want to show at all times in your documents.
Ans: Both (1) and (2)
54. This question is based upon the figure shown below
In the given picture, the “Washout” option has been selected. What purpose does it serve?
Ans: It lightens the picture so that it does not interfere with the text.
55. The default installation of Word 2007 includes several built-in character styles. Which of the following is NOT one of the default, built-in character styles:
Ans: Special Emphasis
56. What steps should be followed to replace a shape with other shape?
Ans: Select the shape to be changed. Select the Format tab; use the “Change Shape” button in the Shape Styles group.
57. Just as in Word 2003 or prior Word versions, the default standard view for Word 2007 is the Draft view (and is still also called the Normal view in Word 2007):
Ans: False
58. This question is based upon the figure shown below
What is the purpose of the “Demote” button as shown in the diagram?
Ans: It increases the level of a selected bullet or a shape.
59. Which feature(s) should be selected in order to find and remove hidden data and personal information in Office documents?
Ans: Document Inspector
60. Which keyboard shortcut is used to make the text size smaller?
Ans: CTRL+SHIFT+<
61. Which among the following options will you use to add a command to the Quick Access Toolbar?
Ans: All of the above
62. Which option(s) should you select to remove a chart or axis title from a chart?
Ans: To remove an axis title, select the Layout tab. In the Labels group, click on Axis Titles, click the type of axis title, and then click None.
63. Which among the following macro settings is meant for developers only?
Ans: Trust access to the VBA project object model.
64. State whether true or false:
A building block can be added to as many galleries as you want.
Ans: True
65. Which of the following is/are true about phishing?
Ans: It is an online fraud technique used by criminals to lure users into disclosing their personal in

Popular Posts

অনুসরণকারী

এই ব্লগটি সন্ধান করুন