oDesk WordPress 2.8 Test Answer

This oDesk WordPress 2.8 Test Answer for word press website designer and developer. oDesk WordPress 2.8 Test Answer could be helpful for word press website designer and developer. Thank you..

oDesk WordPress 2.8 Test Answer 2013

Question: A possible way to collect real-time statistics about traffic to a WordPress site is to
 

a) use a built-in tool
b) use a plug-in
c) use a widget
d) None of the above

Answer : b
Question: In order to to display a widget, the user must _____
a) Set he “Show Property” of the desired widget to “true”
b) Drag the desired widget of the side bar
c) Add the Desired widget to the post
d) Change the source code
Answer : b
Question: Image size can be set __________
a) Directly in the post’s
b) in the wp-imageresize plug-in
c) in the admin settings
d) a and b
Answer : c
Question: Which of the following blog site can be imported into wordpress?
a) Joomla
B) Yahoo Blog
c) Drupal
d) Blogspot
e) All of the above
Answer : a
Question: Which of the following methods can be used to display the time in every post?
A) Changing the config file
B) Setting the feature in the admin settings
C) Changing the index.php file
D) Updating the database
Answer : c
Question : Which of the following methods can be used to make permalinksSEO friendly?
A) Updating the database
B) Changing the source code
C) Configuring the features in the config file
D) Configuring the features in the admin settings
Answer : d
Question: Where can Google Adsense be integrated into a WordPress blog?
A) Only in the sidebar
B) Only in the header
C) Anywhere
d) Only in the content
Answer : a
Question: Which of the following are true about Template Tags?
A) The template tag comprises of the three tag (PHP code tag, WordPress function, optional Parameters)
B) A template tag is code that instruct WordPress to do or get somethings
C) There are only two types of parameters that are supported by wordpress template tag (String, Boolean)
D) All of the above
Answer : b
Question: Which of the following files are mandatory for a WordPress theme?
A) Index.php
B) Style.css
C) functions.php
D) page.php
Answer : a
Question: Contributor may change the timestamp on a post?
A) True
B) False
Answer : b
Question: “Shortcodes” can be defined in WordPress.
A) True
B) False
Answer : a
Question: Which of the following statements are true regarding widgets and plug-in in WordPress?
A) Plug-in is a software used to add function to blog
B) Widget is an object derived from a plug-in and can be added to the sidebar
C) Widgets are alwasy plugins
D) All of the above
Answer : d
Question: A plug-in must be used in order to allow users to post flast or multimedia files.
A) True
B) Flase
Answer : a
Question: The “function_exist()” function can be used to check whether a plug-in activated or not?
A) True
B) False
Answer : a
Question: To manually make the sidebar widget ready, the user must___
A) modify the sidebar.php file (Or this)
B) Enable it in the admin settings
C) Change the index.php
Answer : b
Question: A theme’s source code must be changed manually in order to customize the admin login page
A) True
B) False
Answer : b
Question: Which of the following tasks must be performed to add a favicon icon to your site?
A) Upload a favicon icon to your side
B) Add a favicon link to the theme’s header file or update the exising favicon icon link to the new one
C) Change the favicon icon in admin settings
D) The favicon icon can not be changed
Answer : b
Question: How can a WordPress blog theme be used to display content in two coloumns?
A) By changing the theme options to two columns in admin settings
B) By changing the layout in the config file
C) WordPress theme cannot be customized to display posts in two columns
D) By using two-columns theme
Answer : b
Question: Which of the following method helps you put HTML code into a post, and get it to format the way you expect?
A) Replacing special characters with corresponding html codes or character codes
B) Using the <codegt; <pre=”” c)=”” tag=”” the=”” using=””>tag
D) None of the above : WordPres auto-replaces special character with substituted characters
Answer : d
Question: Which of the following options are true regarding Plug-ins in WorpPress?
A) Plug-ins can be used to eliminate spam
B) Plug-ins can be used to integrate a WordPress blog with a forum
C) Plug-ins can be used to integrate Twitter with a WordPress blog
D) Plug-ins can be used to embed javascript in a WordPress blog
E) All of the above
Answer : b & c
Question: How can a logo be placed on a WordPress header?
A) Manually add the logo to the source code
B) Upload a new logo in admin settings
C) Update the logo path in the config file
Answer : a
Question: Which of the following is a good reason to delete the admin account?
A) Because other users know this admin name
B) Because it is not necessary
C) To enhance performance
D) TO enhance security
Answer : a & d
Question: Which of the following keywords can be defined as “Those useful ‘one-click‘ buttons that insert code for you?
A) Quicktags
B) Shotcodes
C) Permalinks
D) Excerpts
Answer : a
Question: Which of the following methods can be used to add Pagination to a WordPress site?
A) Using a widget
B) Setting the feature in the admin settings
C) Using a plug-in
D) Pagination cannot be added to WordPress site
Answer : c
Question: Which of the following methods can be used to enable posting via e-mail?
A) Installing the wp-emailpost plug-in
B) Configuring the feature in admin settings
C) Using a widget
D) This feature is not available in WordPress
Answer : b
Question: Which of the following are true regarding Pages in WordPress?
A) Pages are listed in reverse chronological order
B) Pages can be static
C) Pages can be found in Categories
D) Page are not associated with a date/time like post
Answer : c
Question: State whether True or False
Wordpress supports all the following:
1. Create new posts
2. Edit Posts
3. Schedule post for future publishing
A) True
B) False
Answer : a
Question: Which of the following role level has the highest privilege?
A) Level_0
B) Level_10
C) Depends on your settings
D) Every role has the same privilege
Answer : b
Question: A possible way to add additional information to a wordpress blog post is to ____
A) Use the wp-addinfor plug-in
B) Use custom fields
C) Use a widget
Answer : c
Question: Which of the following actions performed before upgrading WordPress?
A) Back up the site
B) Disable plugins
C) Enable FTP on the site
D) All of the above
Answer : a & b
Question: Which of the following methods can be used to eliminate spam?
A) Using the “wp-captcha-free” plug-in
B) Using the “askimet” plug-in
C) Using a widget
D) None of the above
Answer : b
Question: Which of the following needs to be edited in order to creat the function for the shortcode?
A) Index.php
B) functions.php
C) post.php
D) page.php
Answer : b
Question: Which of the following arguments are accepted in shortcodes handler function while using shortcode API?
A) $atts
B) $Content
C) $code
D) All of the above
Answer : d
Question:A plug-in must be used in order to allow users to post flash of multimedia files.
a)True
b)False
Answer : a
Question: You want to schedule a backup of your site database but do not have enough permission to access your host. of the following choices can help you perform this task?
a)se phpMyAdmin
b)Install “wp database backup” plug-in
c)Use cron job to schedule.
d)Cannot schedule
Answer : b
Question: Using ——— is a good way to ensure that a WordPress site is indexed by search engines.
a)a sitemap
b)robot.txt
c)a widge
Answer : a

oDesk PHP 5 test answers 2013

oDesk PHP 5 test answers 2013 for Web designer and Developers to get more job on oDesk.They will be helpful with getting this. They can take a exam on oDesk PHP 5 test answers successfully with help of this post.

oDesk PHP 5 test answers 2013

Ques:     Which composite data types are supported by php?
Ans:     Array
Ques:     The default value of register_globals in PHP is:
Ans:     Off
Ques:     Which of the following is not a valid PHP connection status?
Ans:     open
Ques:     Choose the correct statement:
Ans:      include() includes and evaluates a specific file
require_once() includes and evaluates a specific file only if it has not been included before
Ques:     If the session_cache_expire() is not set, then by default the session cache will expire after:
Ans:     3 hrs
Ques:     What will be the output of the following script?
$count=50;
function Argument()
{
$count++;
echo $count;
}
Argument();
?>
Ans:     It will print 1
Ques:     What is true regarding this code?
Ans:     setcookie will return true
Ques:     Which of the following is not a correct way of printing text in php5?
Ans:     echo "Plain text";
Ques:     Which of the following is not the correct way of starting a session?
Ans:     session_initiate()
                                                                                                                      
Ques:     Which of the following functions do you need to implement HTTP Basic Authentication?
Ans:     None of the above
Ques:     Which of the following Command Line Interface constant is not defined in the CLI SAPI?
Ans:     STDPRT
Ques:     Which of the following statements is correct with regard to final and abstract?
Ans:     a. An abstract class cannot have final methods
Ques:     State whether True or False

Paamayim Nekudotayim operator allows access only to the static members of a class?
Ans:     True

Ques:     Which of the following statements is true with regard to comparisons in PHP5?
Ans:     With (===) operator, object variables are identical if and only if they refer to the same instance of the same class.

Ques:     Which of the following built-in function assist in checking if actually the function exists or not?
Ans:     function_exists
Ques:     What will be the output of the following code?
$a = 0.0;
for ($i = 0; $i < a ="="">
Ans:     1
Ques:     What will be the output of the following code?
$i=4;
$j=30;
$k=0;
$k=$j++/$i++;
echo $i . " " . $j . " " . $k . " ";
Ans:     5 31 7.5
Ques:     Which of the following is a not a correct way of commenting in php?
Ans:     /#PHP Comment
Ques:     Following is a php code block:
$m=9;
$n=99;
$z=8;
$z=$n++/$m++ + --$z;
echo $z;
what will be the output?
Ans:     18
Ques:     Which of the following is the correct way of specifying default value?
Ans:     function GetDiscount($Type = "Special") { . . . }
Ques:     With reference to the following php script:
print 'Text Line1'
print 'Text Line2'
?>
What will be the output on running the script?
Ans:     Error message will be printed
Ques:     What will be the ouput of the following code?
for ($i = 0; $i < i ="="">
0134
Ques:     Late PHP versions support remote file accessing for the functions:
Ans:     include_once()
          require_once()
both of them
Ques:     You have designed a user login form as follows:
User Name:  
Password:  
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;
Ans:      Both of them
Ques:     Which of the following does not represent logical AND operator in PHP?
Ans:     &amp
Ques:     Which of the following is not true for a persistent connection?
Ans:     These can't be converted to non-persistent connections
Ques:     Which of the following are invalid data types in PHP?
Ans:     char
Ques:     The Manager and Office classes are as follows:
class Manager{
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?
Ans:     $ofc->getManager()->printName();
Ques:     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?
Ans:     public function getName(){}
Ques:     Which of the following variable declarations within a class is invalid in PHP5?
Ans:     var $term =3;
Ques:     What will be the output of following code?
$arr = "a";
$arr[0]="b";
echo $arr;
echo $arr[0];
Ans:     bb
Ques:     For the following code:
the output will be:
Ans:     171
Ques:     What is the result of the following expression?
Ans:     5+2 * 4+6
Ques:     What will be the output of following code?
$var = 1 + "-1.3e3";
echo $var;
Ans:     -1299
Ques:     What will be the output of following code?
$var1="a";
$$var1="b";
echo "$var1 $a";
Ans:     a b
Ques:    What is the output of the following code?
$a = 500;
$b = 200;
echo $a % 2
* $b;
?>
Ans:     0
Ques:     What will be the ouput of the following code?
if (-1)
print "true";
else
print "false";
?>
Ans:     true
Ques:     What will be the output of the following code?
echo 126;
Ans:     126
Ques:     Consider the following sample code:
$x = 0xFFFE;
$y = 2;
$z = $x && $y;
What will be the value of $z?
Ans:     1 

oDesk Java programming test answer 2013

Dear Valued visitors,
This time i will share with everybody oDesk Java programming test answer 2013. Some readers requested me for publish this oDesk Java programming test answer 2013. Now i will try this from personal experience. 
If you have any new idea about it, Please leave a comment below. Thank you..

Question 1 What is the java.net.IDN class in 1.6?
Methods to resolve integrated domain names (IDNs), such domain names are special embedded names
Methods to swap bytes between network byte order and host byte order
Methods to convert internationalized domain names (IDNs) between a normal Unicode representation and an ASCII Compatible Encoding (ACE) representation
This class does not exist
None of the above
Question 2 What will be the output of the following program?public class Test
{
public static void main (String args[]) throws Exception
{
Test o 
= new Test ();
System.
out.println (o.content ());
}
public String content () throws Exception
{
throw new Exception ("This is an exception on this.content ()");
}
private static class B
{
public String content ()
{
return ''B'';
}
}
private static class A extends B
{
public String content ()
{
return ''A'';
}
}
}

The code will fail to compile
The code will compile but throw an exception at runtime
The code will compile and on running, it will print ''A''
The code will compile and on running, it will print ''B''
Question 3 Which of these interfaces are used by implementations of models for JTable?
TableModel
TableColumnModel
TableSelectionModel
ListModel
Question 4 How many times can classes be nested within a class?
5
8
4
Any number of times
Question 5 One method in your application needs to be synchronized. Which of the following options are correct for synchronization?
public synchronized void Process(void){}
public void Process(){ synchronized(this){ } }
public void synchronized Process(){}
public synchronized void Process(){}
Question 6 What could be the replacement of "//ABC" in the following code?public class Jam
{
public void apple(int i, String s)
{}
//ABC
}

public void apple(String s, int i){}
public int apple(int i, String s){}
public void apple(int i, String mystring){}
public void Apple(int i, String s) {}
Question 7 What will be the output when the following code is compiled and run?public class Test
{
public static void main (String args[])
{
int i
;
= 3;
System.
out.println ((int)* 2.5 / 3.0);
}
}

The code will compile, but it will throw an exception when it is run
The code will compile and it will not produce any output when it is run
The code will fail to compile
The code will print 3
The code will print 2.5
The code will print 2
Question 8 What would happen on trying to compile and run the following code?public class MainCls
{
public static void main(String argv)
{
System.
out.println("My Text");
}
}

A compile error will be generated because 'main' is a reserved word and cannot be used for a class
"My Text" will be displayed
The code will compile. A runtime error will occur because 'main' is not properly defined
The code will compile. A runtime error will occur because constructor is not defined
Question 9 What will be the output when this code is compiled and run?public class Test
{
static int x = 10;
public Test ()
{
Bar b 
= new Bar ();
Bar b1 
= new Bar ();
update 
(b);
update 
(b1);
}
private void update (Bar bar)
{
bar.
x = ++x;
System.
out.println (bar.x);
}
public static void main (String args[])
{
File f 
= new File("/","autoexec.bat"); b.DataInputStream d = new DataInputStream(System.in);c.RandomAccessFile r = new RandomAccessFile("OutFile"); d.OutputStreamWriter o = newOutputStreamWriter(System.out);
}
private class Bar
{
public int x = 10;
}

The code will fail to compile
11 12
11 11
12 12
Question 10 Which of the following statement will not compile?
File f = new File("/","autoexec.bat");
DataInputStream d = new DataInputStream(System.in);
RandomAccessFile r = new RandomAccessFile("OutFile");
OutputStreamWriter o = new OutputStreamWriter(System.out);
Question 11 Which of the following are "keywords" in Java?
default
NULL
String
throws
Question 12 Which of the following statements is true of the HashMap class?
It stores information as key/value pairs
Elements are returned in the order they were added
It does not permit null keys
It does not permit null values
Question 13 How does the set collection deal with duplicate elements?
Duplicate values will cause an error at compile time
A set may contain elements that return duplicate values from a call to the equals method
An exception is thrown if you attempt to add an element with a duplicate value
The add method returns false if you attempt to add an element with a duplicate value
Question 14 What is wrong with the following code?class X extends Exception {}
public class Y
{
public void foo()
{
try {
b
();
}
finally {
ba
();
}
catch (MyException e) {}
}
public void b() throws X {
throw new X();
}
public void ba() throws RuntimeException {
throw new RuntimeException();
}
}

Nothing is wrong with the code
Finally block should come after the catch block
An empty catch block is not allowed
None of the above
Question 15 Is the following code valid?InetAddress ad = InetAddress.getByName ("195.186.2.111"); 
Yes
No
Question16 What will be the output of this program?public class Test
{
public static void main (String args[])
{
String a, b, c, d
;
= ''Hello1234'';
= ''Hello'' + String.valueOf(1234);
= ''Hello'' + ''1234'';
= new String (new char[]{'H', 'e', 'l', 'l', 'o', '1', '2', '3', '4'});
System.
out.print (== b);
System.
out.print ('' '');
System.
out.print (a.equals(b));
System.
out.print ('' '');
System.
out.print (== c);
System.
out.print ('' '');
System.
out.print (a.equals(c));
System.
out.print ('' '');
System.
out.print (== d);
System.
out.print ('' '');
System.
out.print (a.equals(d));
System.
out.print ('' '');
}
}

true truetruetrue false true
false true truetrue false false
false true truetrue false true
false false true true false true
Question 17 Which of the following cannot apply to constructors?
Name same as class name
Void return type
Can have parameters
Overloading
Question 18 Choose the correct declarations for the main() method which will allow the class to be run as a standalone program.
public void main(String str[])
static public void main(String str[])
public static int main(String str[])
public static void main(String str[])
Question 19 For a class defined inside a method, what rule governs access to the variables of the enclosing method?
The class can only access transient variables
The class can only access static variables
The class can only access final variables
The class can access any variable
Question 20 A method can be defined as native to:
Overcome the limitation of the private scope of a method
Get to access hardware that Java does not know about
Write optimized code for performance in a language such as C/C++
Define a new data type such as an unsigned integer
Question 21 What will be the output of the following line?System.out.println(Math.floor(-2.1)); 
-2
2.0
-3
-3.0
Question 22 For the given variables, which of the following will compile without an error?char c = 'c';
int i = 50;
double d 
= 80;
long l 
= 200;
String s 
= "Goodbye";

s+=i;
i+=s;
c+=s;
c=c+i;