Monday, August 26, 2013

Odesk test HTML 5 answer and question?



  • HTML 5 Elements and attributes
  • HTML 5 Events
  • HTML 5 syntax
  • HTML 5 Web application APIs
  • Loading HTML 5 Web pages

01.   Which of the following statements is/are correct for block quote? Ans: b
02.   Which of the following <link> attributes are NOT supported in HTML 5.0? Ans: a
03.   Which of the following elements preserves spaces and line breaks, and displays the text in fixed-width font? Ans: b
04.   Which of the following attributes comes in handy when borders have to be put between groups of columns instead of every column? Ans: b
05.   In HTML 5.0 which of the following is NOT a valid value for the type attribute when used with the <command> tag shown below?  <command type=”?”> Click Me!</command> Ans: b
06.   How will you return a reference to the parent of the current window or subframe in an HTML 5.0 web application? Ans: b
07.   How will you change the value of the cookies and items in the storage objects of the local Storage attributes in HTML5.0? Ans: b
08.   What is the role of the <dfn> element in HTML 5.0? Ans: d
09.   Which event is fired when an element loses its focus in HTML 5.0 document? Ans: c
10.   A piece of text contains many blank spaces within it. Which of the following tags would be suitable to display the text as it was originally formatted? Ans:  d
11.   A developer  wrote this image tag <img src=”states.gif width=”330” height=”406” alt=”States” usrmap=”#statemap”/> what code should follow this? Ans:  a
12.   The following link is placed on an html webpage. <a href=http://msdn.com/ target=”_blank”> MSDN </a> What do you infer from it? Ans:  b
13.   You specified a base tag and anchors as follows: Ans:  a
14.   In HTML 5.0 which of the following attributes of the <object> element refers to the location of the object’s data? Ans:  c
15.   In HTML 5.0 what is the function of the sandbox attribute when used with <iframe> as shown below? <iframe src=”aaa” sandbox=?></iframe> Ans:  a
16.   Which event is fired when the history of the browser window changes? Ans:  a
17.   What is the output when you use the html 5.0 code snippet shown below? <body onload=”alert(this)”> Ans:  b
18.   Which of the following is NOT a valid value for the <iframe> sandbox attribute in HTML 5.0?
Ans: a
19.   Which of the following HTML 5.0 elements is used to embed Java applets into your HTML 5.0 web page? Ans:  b
20.   How will you cancel the timeouts that are set with the detlnterval() API  method identified by the handlers in HTML 5.0? Ans: a
21.   What will be the result if you use the following code to your HTML 5.0 document? <p>I use <del> MAC</del> <ins> Microsoft</ins>!</p> Ans:  c
22.   Consider the above code. What will be the impact upon the contents of the element if both the style sheets define the same class? Ans: a
23.   You want to create a link for your website allowing users to email the webmaster. How will you implement this if the webmaster’s email address is webmaster@xcompany.com? Ans:  a
24.   What is the purpose of the <q> element in HTML 5.0? Ans:  c
25.   Which of the following statements is correct if you invoke the window prompt (message, default) web application API method in HTML5.0? Ans: d
26.   Which of the following is an INVALID value for the type attribute of command tag? Ans:  c
27.   Consider the following items of a <select> list: <option value=”89” Item 1</option> <option value =”90”> item 2</option> Ans:  b
28.   Which of the following are valid mouse events in HTML 5.0? Ans:  all
29.   Which of the following are valid HTML 5.0 elements? Ans:  all
30.   Which of the following is NOT valid value for the type attribute of the <input> element in HTML 5.0? Ans:  a,b,c,e
31.    Which of the following is the correct method to load another web page or reload the same page In HTML 5.0? Ans:  d
32.   Which of the following <iframe> attributes are NOT supported in HTML 5.0? Ans:  b,d
33.   Which of the following is an INVALID keyword value for http-equiv attribute when used with the <meta> element in HTML5.0? Ans:  c,f
34.   What does the icon attribute of the HTML 5.0 connand tag define? <command icon=”?”>Click Me!</command> Ans: a
35.   Which of the following statements is correct if you allow the user to select only one radio button from a group of radio button? Ans: a
36.   Which of the following is NOT a valid attribute for the <link> element in HTML 5.0? Ans: a
37.   Which of the following is NOT a valid attribute for the <video> element in HTML5.0? Ans: c

Sunday, August 18, 2013

Wordpress 3.0 Test Question and Answer

1. You want to schedule a backup of your site database but do not have enough permissions to access your host. Which of the following choices can help you perform this task?

a.    Use phpMyAdmin.
b.    Install "wp database backup" plug-in.
c.    Use cron job to schedule.
d.    Cannot schedule.

Ans: b

2. Which of the following actions must be performed before upgrading WordPress?

a.    Back up the site.
b.    Ensure that the database user name registered to WordPress has permission to create, modify, and delete database tables.
c.    Deactivate plug-ins.
d.    Enable FTP on the site.
e.    a, c, and d
f.     a, b, and c

Ans: f

3. Which of the following files must be deleted after installing WordPress?

a.    wp-admin/install.php
b.    install.php
c.    installation.php
d.    None of these files.

Ans: d

4. A possible way to install WordPress in your language is to _________________.

a.       manually install language package or translate as necessary
b.      enable the desired language in admin settings
c.       Neither: WordPress cannot be installed in languages other than English.

Ans: a

5. Which of the following actions must you perform to move your site from "/wordpress" to "/blog/wordpress"?

a.       Change the source code.
b.      Update the wp-config.php file.
c.       Update the database.
d.      The site cannot be moved in that manner.

Ans: c


6. On which of the following databases can WordPress be installed by default?

a.       MySQL
b.      Oracle
c.       Microsoft SQL Server
d.      Postgres

Ans: a


7. WordPress’s requirements are modest. At minimum, your server should support:

a.       PHP version 4.4.9 or greater, MySQL version 4.0 or greater
b.      PHP version 4.3 or greater, MySQL version 4.0 or greater
c.       PHP version 4.4.9 or greater, MySQL version 5.1 or greater
d.      PHP version 4.3 or greater, MySQL version 5.1 or greater

Ans: b


8. Can you Override database values for your site URLs in wp-config.php?

a.       Yes
b.      No

Ans: a


9. After moving a Wordpress site to a new host. If you changed your site’s URL. Do you have to update your posts and pages to correct paths to your uploaded media files?
a.       Yes
b.      No

Ans: a

Features, Performance and Security

10. Is it able to run more than one site/blog from a single installation of WordPress?
a.       Yes
b.      No

Ans: a


11. What is the first action you need to take for enabling Wordpress MU feature?
a.       Enable Wordpress MU feature on admin panel
b.      Enable Network feature
c.       Add this code to wp-config.php file: define( 'WP_ALLOW_MULTISITE', true );

Ans: c


12. Which of the following actions must be performed before enabling the Network feature?
a.       Install the network plugin
b.      Deactive your plugins
c.       Nothing

Ans: b


13. Is supper cache a built-in plugin of Wordpress?
a.       Yes
b.      No

Ans: b

14. After how many times did you enter an invalid password, your IP Address would be locked?
a.       3 times
b.      4 times
c.       5 times
d.      6 times

Ans: a

15. Super Cache compression can cause problems if your server is _______

a.       Not installed mod_deflate (on Apache)
b.      Not installed zlib
c.       already compressing output using mod_deflate (on Apache) or PHP compression (zlib)

Ans: c


16. Can you choose your username during the installation process from which version?

a.       2.7
b.      2.8
c.       3.0
d.      3.0.1

Ans: c


17. Can you move your wp-config.php file to the parent directory without changing any settings?

a.       Yes
b.      Yes, provided that you are installing WordPress in your web root directory (such as public_html). Otherwise, it is imposible.
c.       No

Ans: b


18. Can you move your wp-content folder elsewhere or rename it to something else without changing any settings?
a.       Yes
b.      No

Ans: b


Administration, Dashboard and Settings

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

  1. use a built-in tool
  2. use a plug-in
  3. use a widget
  4. None of the above: these statistics cannot be collected.

Ans: b


20. How can the use of html code in comments be disabled?
  1. By disabling the feature in the config file.
  2. By disabling the feature in admin settings.
  3. By changing the theme's source code.

Ans: c

21. The date/time format of a WordPress site can be changed in __________________.

  1. the theme's source code
  2. admin settings
  3. the database
  4. the config file

Ans: b

22. _________________ is a good way to improve the performance of a WordPress blog.
  1. Disabling image upload
  2. Enabling cache
  3. Installing the "wp super cache" plug-in

Ans: c


23. Which of the following blog sites can be imported into WordPress?

  1. MySpace
  2. Yahoo blog
  3. Bebo
  4. Blogspot
  5. All of the above.

Ans: d


24. Which of the following actions must be performed to import data from WordPress.com?

a.     Enter the full access to Wordpress.com into the data import form so that it can automatically connect and directly retrieve content.
b.      Import from wordpress.com’ RSS
c.       Login wordpress.com, then export data by export tool, and import a exported xml file to your site.

Ans: c


25. Which of the following data can you import from Blogger site?

  1. Posts and Categories
  2. Posts, comments and categories
  3. Posts and comments
  4. Post and tags
  5. Post, comments and tag

Ans: c


26. Can you import content from joomla or mambo site into wordpress?

  1. Yes
  2. No

Ans: a


27. Can you import content from static HTML files into wordpress?

  1. Yes
  2. No

Ans: a


28. Which of the following actions must be fixed after importing data into wordpress?

a.       Link URLs
b.      Paths to Linked Files
c.       Truncated or Garbled Content
d.      All of above data


Ans: d








Users and Roles

29. How many built-in user roles does Wordpress have?

  1. 3
  2. 4
  3. 5
  4. 6

Ans: c


30. Can users change their avatar on profile setting panel?
  1. Yes
  2. No

Ans: b


31. Can you add an extra fields to user’s profiles (as birth day, birth year,..)?
  1. Yes
  2. No

Ans: a


32. ____________ can do anything in the WordPress administration area: write, edit, and delete posts, pages, links, and comments; upload media files of any type; import content; manage the Dashboard; create, edit, and delete other users; enable and configure plugins and themes; change the site’s theme; and manage all the available options.

  1. Contributor
  2. Author
  3. Editor
  4. Subscriber
  5. Administrator


Ans: e


33. ____________ can publish, edit, and delete posts and pages written by any user. They can upload some kinds of files, and they can write HTML without restrictions. They can manage links and categories, and they can moderate comments. Editors and administrators are also the only users allowed to read private posts and pages.

  1. Contributor
  2. Author
  3. Editor
  4. Subscriber
  5. Administrator


Ans: c


34._____________ can publish, edit, and delete their own posts. They cannot write pages. They can upload some kinds of media files, and they are allowed to use only the limited set of HTML tags.

  1. Contributor
  2. Author
  3. Editor
  4. Subscriber
  5. Administrator

Ans: b


35. ____________ can write their own posts but may not publish or delete them. Their HTML is limited to the set of allowed tags and they cannot upload media files.

  1. Contributor
  2. Author
  3. Editor
  4. Subscriber
  5. Administrator

Ans: a


36.
____________ can manage their own profiles, but can do virtually nothing else in the administration
area. 

  1. Contributor
  2. Author
  3. Editor
  4. Subscriber
  5. Administrator

Ans: d


37.
User Level 0 converts to …

  1. Contributor
  2. Author
  3. Editor
  4. Subscriber
  5. Administrator


Ans: d


38.
User Level 1 converts to …

  1. Contributor
  2. Author
  3. Editor
  4. Subscriber
  5. Administrator

Ans: a


39.
User Level 3 converts to …

  1. Contributor
  2. Author
  3. Editor
  4. Subscriber
  5. Administrator

Ans: b


40.
User Level 7 converts to …

  1. Contributor
  2. Author
  3. Editor
  4. Subscriber
  5. Administrator

Ans: c


41.
User Level 10 converts to …

  1. Contributor
  2. Author
  3. Editor
  4. Subscriber
  5. Administrator

Ans: e


42.
Which of the following role levels has the highest privilege?

a.       Level_0
b.      Level_10
c.       Depends on your settings.
d.      Every role level has the same privilege.

Ans: b


43. Does author have the ability to create a category?
a.       Yes
b.      No

Ans: b


Post, Page, Custom Content Types, Taxonomies, and Fields

44. A possible way to allow the display of several authors' names on one post is to ______

a.       update the database
b.      change the admin settings
c.       change the config files
d.      use a plug-in


Ans: d


45.
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.

Ans: b


46.
Image size limits can be set _______________.

a.       directly in the posts
b.      in the wp-imageresize plug-in
c.       in the admin settings
d.      a and b

Ans: c


47.
A taxonomy is a _______

a.       category
b.      term
c.       group of terms

Ans: c


48.
in which version were custom taxonomies introduced?

a.       2.3
b.      2.7
c.       2.8
d.      3.0

Ans: a


49.
Which of the below functions is required to create a new taxonomy?

a.       add_taxonomy
b.      register_taxonomy
c.       create_taxonomy

Ans: b


50.
Which of the following methods is required to post html code for others to read?
a.       Replacing special characters with corresponding html codes or character codes.
b.      Using the <code> tag.
c.       Using the <pre> tag.
d.      None of the above: WordPress auto-replaces special characters with substituted characters.

Ans: a


51.
Can you set individual password for each post?
a.       Yes
b.      No

Ans: a


52.
Who of the following persons can read a post locked by password?
a.       Only administrators, editors and authors
b.      Registered users who knows a password
c.       Anyone who knows a password

Ans: c


53.
What is the limitation to the depth of your categories?
a.       10 levels
b.      20 levels
c.       No limit levels

Ans: c


54.
Can you set the same slug for two categories that have different parents?
a.       Yes
b.      No

Ans: b

Note: Categories must have distinct slugs. Even if two categories have different parents and would therefore have different permalinks, you can’t assign them the same slug.


55.
Can a post belong to more than one category?
a.       Yes
b.      No

Ans: a


56.
Can you limit the number of revisions WordPress stores by _____

a.       adding the following line to your wp-config.php file: define('WP_POST_REVISIONS', 3);
b.      using a plugin
c.       changing a setting on admin panel

Ans: a,b


57.
Are categories and tags not available for pages?
a.       Yes
b.      No

Ans: a



Plug-ins & Widgets

58.
Which of following action must be performed before using Akismet Plugin?

a.       Simply install it.
b.      Create an account at wordpress.com.
c.       Create an account for this plug-in on your own site.

Ans: b


59.
Which of the following tasks should be performed before installing any widget?

a.       Verify whether the widget directory is in "write mode".
b.      Verify that plug-ins can be installed on your version of WordPress.
c.       Verify that your WordPress theme is widget-ready.
d.      None of the above tasks should be performed.

Ans: c


60.
In order to display a widget, the user must _________________.

a.       set the "show property" of the desired widget to "true"
b.      drag the desired widget to the side bar
c.       add the desired widget to the post
d.      change the source code

Ans: b


61.
To manually make the sidebar widget-ready, the user must ______________.
a.       modify the sidebar.php file
b.      enable it in the admin settings
c.       change the index.php file

Ans: a


62.
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.
e.       a and b

Ans: e




Theme

63.
Which of the following tasks must be performed to add a favicon icon to your site?

a.    Upload a favicon icon to your site.
b.    Add a favicon icon link to the theme's header file or update the existing favicon icon link to the new one.
c.    Change the favicon icon in admin settings.
d.    The favicon icon cannot be changed.
e.    a and b
f.     b and c

Ans: e


64.
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.

Ans: a


65.
Which of the following theme files can be used to customize the "page not found error" error page?
a.       index.php
b.      404.php
c.       functions.php
d.      page.php

Ans: b


66.
Is the functions.php file required in each theme?
a.       Yes
b.      No

Ans: b


67.
Which of the following files are required for completing your theme?
a.       Index.php
b.      Style.css
c.       Index.php and style.css
d.      Index.php and functions.php

Ans: c


68.
What is the name of theme file for a page with slug ‘about’?
a.       page-slug-about.php
b.      page-about.php
c.       about.php

Ans: b


69.
What is the name of theme file for a page with id ‘3’?
a.       page-id-3.php
b.      page-3.php
c.       3.php

Ans: b


70.
‘Slug’ is higher priority in use than ‘id’ in Template Hierarchy?
a.       Yes
b.      No

Ans: a


71.
Can you create a specific theme file for a custom content type?
a.       Yes
b.      No

Ans: a


72.
What is the right order (by priority in use) to display page in Template Hierarchy?
a. page-{slug}.php, page-{id}.php, page.php, index.php
b. page-{id}.php, page-{slug}.php, page.php, index.php
c. page-{slug}.php, page-{id}.php, page.php, archive.php, index.php
d.      page-{slug}.php, page-{id}.php, page.php, 404.php

Ans: a


73.
What is the right order (by priority in use) to display category in Template Hierarchy?
a. category -{slug}.php, category-{id}.php, category.php, index.php
b. category -{id}.php, category-{slug}.php, category.php, index.php
c. category -{slug}.php, category-{id}.php, category.php, archive.php, index.php
d.      category -{slug}.php, category-{id}.php, category.php, 404.php

Ans: c


74.
What is the right order (by priority in use) to display tag in Template Hierarchy?
a. tag -{slug}.php, tag-{id}.php, tag.php, index.php
b. tag -{id}.php, tag -{slug}.php, tag.php, index.php
c. tag -{slug}.php, tag -{id}.php, tag.php, archive.php, index.php
d.      tag -{slug}.php, tag -{id}.php, tag.php, 404.php

Ans: c


75.
What is the right order (by priority in use) to display taxonomies in Template Hierarchy?
a. taxonomy -{taxonomy}.php, taxonomy-{id}.php, taxonomy.php, index.php
b. taxonomy -{taxonomy}-{term}.php, taxonomy-{taxonomy}.php, taxonomy.php, archive.php, index.php
c. taxonomy -{ taxonomy}.php, taxonomy.php, archive.php, index.php
d.      taxonomy.php, archive.php, index.php

Ans: b



Code

76.
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.

Ans: c


77.
One way to get posts from a specific day is to ____________________.

a.       use the query_day loop in the source code
b.      use the query_posts loop in the source code
c.       Neither: WordPress does not allow this action.

Ans: b


78.
The "function_exists()" function can be used to check whether a plug-in is activated or not.
a.       True
b.      False

Ans: a


79.
Conditional tags can be used to _______________________.

a.       get all comments from one post
b.      get all posts from one category
c.       change the content to be displayed
d.      None of the above: conditional tags are not available in WordPress.

Ans: c


80.
The WordPress loop can be used ____________________.

a.       to retrieve any data in WordPress
b.      to display every post
c.       only for calculation
d.      WordPress loop cannot be used for any purpose.


Ans: b




SEO

81.
Using ____________is a good way to ensure that a WordPress site is indexed by search engines.

a.       a sitemap
b.      robot.txt
c.       a widget

Ans: a


82.
Which of the following statements regarding permalinks on a WordPress site is true?
a.       Permalinks are required.
b.      Permalinks are optional but highly recommended.
c.       Permalinks are always available in WordPress.
d.      Permalinks are not available in WordPress.

Ans: b


83.
In which of the following ways can a redirect feature be added to a permalink?

a.       Using a plug-in.
b.      Adding the feature in the admin settings.
c.       Changing the config file.
d.      a and c
e.       a and b

Ans: e


84.
One way to make a WordPress page title more SEO friendly is to ____________.

a.       use the wp-changetitle plug-in
b.      use a widget
c.       change the title tag in header.php to something like "blog name »» category »» post name"

Ans: c


85.
Meta tags can be added to WordPress pages by ________________.

a.       using plug-ins
b.      adding them to the header.php file
c.       updating the database
d.      None of the above.

Ans: a,b


86.
Which of the following methods can be used to make permalinks SEO friendly?

a.       Updating the database.
b.      Changing the source code.
c.       Configuring the feature in the config file.
d.      Configuring the feature in the admin settings.

Ans: d