UPWORK TEST » September 17, 2015

Daily Archives: September 17, 2015

Top 10 popular test answers

WordPress Test 2016

Published by:

1. You can limit the number of revisions WordPress stores by _____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.

Answers:

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

2. Which of the following will hash a string/password to its md5 equivalent?

Answers:

  1. md5()
  2. wp_generate_password()
  3. wp_generate_md5()
  4. password_md5()

3. Which conditional tag checks if the dashboard or the administration panel is attempting to be displayed by returning “true’ (if the URL being accessed is in the admin section) or “false” (for a front-end page).

Answers:

  1. my_admin()
  2. view_admin()
  3. is_admin()
  4. root_admin()

4. Which of the following functions are used to add administration menu item in WordPress ?

Answers:

  1. add_menu_page();
  2. add_admin_item();
  3. add_admin_page();
  4. add_admin_option();

5. Which of the following WordPress Multisite functions allows for getting content from one blog and display it on another?

Answers:

  1. switch_blog()
  2. switch_to_blog()
  3. restore_current_blog()
  4. restore_to_current_blog()

6. What is the BEST way to get last inserted row ID from WordPress database ?

Answers:

  1. Use the following code snippet $lastid->$wpdb=$last->get_row;
  2. The call to mysql_insert_id() inside a transaction should be added: mysql_query(‘BEGIN’); // Whatever code that does the insert here. $id = mysql_insert_id(); mysql_query(‘COMMIT’); // Stuff with $id.
  3. The following code snippet should be added $last = $wpdb->get_row(“SHOW TABLE STATUS LIKE ‘table_name'”); $lastid = $last->Auto_increment;
  4. Straight after the $wpdb->insert() insert, the following code should be added: $lastid = $wpdb->insert_id;

7. Which of the follow is a WordPress alternatives for Ruby on Rails?

Answers:

  1. Refinery
  2. Typof
  3. Symenta
  4. Rubyalt

8. Which of the following code snippets can be used to create custom POST status in wordpress 3.0 +?

Answers:

  1. register_new_post()
  2. register_post_status()
  3. add_new_post_status()
  4. modify_post_status()

9. How can the upload media panel be included in a WordPress template/plugin?

Answers:

  1. By using function wp_enqueue_script(‘media-upload’)
  2. By using function wp_add_media( );
  3. By using function wp_enqueue_script(‘upload’);
  4. By using function wp_add_script(‘media-upload’);

10. What are the database privileges that are required for WordPress?
Answers:

  1. insert, delete, update, drop and alter
  2. select, insert, delete, update, create, drop and alter
  3. insert, delete, update, create, drop and alter
  4. insert and delete

11. Which of the following is an example of a WordPress plugin that provides multilingual capabilities?

Answers:

  1. WP Super Cache
  2. qTranslate
  3. BuddyPress
  4. Hotfix

12. Which of the following functions can be used to create a WordPress page?

Answers:

  1. wp_insert_post()
  2. wp_insert_page()
  3. wp_create_post()
  4. wp_create_page()

13. Which function is used to display the name of current page in wordpress?
Answers:

  1. get_the_title()
  2. content_title()
  3. page_name()
  4. post_name()

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

Answers:

  1. Updating the database.
  2. Changing the source code.
  3. Configuring the feature in the config file.
  4. Configuring the feature in the admin settings.

15. User Level 7 converts to _________?

Answers:

  1. Contributo
  2. Autho
  3. Edito
  4. Subscribe
  5. Administrato

16. Which of the following is the correct way to add custom excerpts length identifiers in WordPress?

Answers:

  1. By adding excerpt_length filter in function.php
  2. Can’t declare custom excerpts in wordpress
  3. Custom exceprts are already available in wordpress
  4. Using the_excerpt(‘long’); or the_excerpt(‘short’)

17. Which of the following is the correct sequence of steps to adapt a WordPress plugin to a multisite?

Answers:

  1. 1. Use $wpdb to iterate through all blogs 2. Hook according to the $blog_id 3. Install the plugin as Network only 4. Uninstall depends the specific plugin
  2. 1. Use $wp_posts to iterate through all blogs 2. Hook according to the $function 3. IInstall the plugin as Network only 4. Uninstall depends the specific plugin
  3. 1. Use $wp_posts to iterate through all blogs 2. Hook according to the $function 3. Install other activations except Network 4. Uninstall is the same for all the plugins
  4. 1. Use $wp_posts to iterate through all blogs 2. Hook according to the $function 3. Install the plugin as Network only 4. Uninstall is same for all the plugins

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

Answers:

  1. MySQL
  2. Oracle Database
  3. Microsoft SQL Server
  4. PostgreSQL

19. Which of the following actions must be performed to import data from wordpress.com?

Answers:

  1. Enter the full access to wordpress.com into the data import form so that it can automatically connect and directly retrieve content.
  2. Import from wordpress.com’s RSS.
  3. Login to wordpress.com, then the export data using the export tool, then import an exported xml file to the site.

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

Answers:

  1. using plug-ins
  2. adding them to the header.php file
  3. updating the database
  4. a and
  5. and c

21. Which of the following codes will return the current plugin directory in WordPress?

Answers:

  1. <!–?php plugin_basename($file); ?–>
  2. <!–?php plugin_basename(‘url’); ?–>
  3. < !–?php bloginfo_plugin(‘url’); ?–>
  4. < !–?php content_plugin_url( $path ); ?–>

22. WordPress’s requirements are modest. At minimum, which of the following standards should your server support for WordPress 3.1?

Answers:

  1. PHP version 4.4.9 or greater, MySQL version 4.0 or greater
  2. PHP version 4.3 or greater, MySQL version 4.1.2 or greater
  3. PHP version 4.4.9 or greater, MySQL version 5.1 or greater
  4.  PHP version 4.3 or greater, MySQL version 5.1 or greater

23. Which of the following will give the option to add inline Ajax for comment posting?

Answers:

  1. Enabling Ajax in the wp-config.php file
  2. Activating Ajax from the admin settings of WordPress
  3. Using the Ajax Comment Posting plugin
  4. WordPress doesn’t support inline Ajax.

24. What is the limitation to the depth of your categories?

Answers:

  1. 10 levels
  2. 20 levels
  3. No limit levels

25. Can the contents of the wp-content folder be moved or renamed without changing any settings?

Answers:

  1. Yes
  2.  No

26. Which of the following code snippets best protects a system from SQL injections?

Answers:

  1. sql_real_escape_strong()
  2. mysql_real_escape()
  3. mysql_real_escape_string()
  4. mysql_not_real_delete_string()

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

Answers:

  1. Level_0
  2. Level_10
  3. Depends on your settings.
  4. Every role level has the same privilege.

28. How can the Home link be disable from the WordPress top nav?

Answers:

  1. Using Jquery to hide it
  2. By adding this code in functions.php function page_menu_args( $args ) { $args[‘show_home’] = FALSE; return $args; } add_filter( ‘wp_page_menu_args’, ‘page_menu_args’ );
  3. wp_nav_menu( array(‘menu’ => ‘news’, ‘show_home’ => false))
  4. Can not disable the default Home link from wordpress top nav

29. Which of the following is the correct way to retrieve a featured image from a post?
Answers:

  1. <!–?php echo get_post_thumb($page->ID, ‘thumbnail’); ?–>
  2. <!–?php echo get_featured_image($page->ID, ‘thumbnail’); ?–>
  3. <!–?php echo get_the_post_thumbnail($page->ID, ‘thumbnail’); ?–>
  4. <!–?php echo get_post_thumbnail($page->ID, ‘thumbnail’); ?–>

30. Which of the following will correctly load localized (translated) text for a WordPress plugin?

Answers:

  1. function custom_theme_setup() { $lang_dir = get_template_directory() . ‘/lang’); load_theme_textdomain(‘tutsplus’, $lang_dir); } add_action(‘after_setup_theme’, ‘custom_theme_setup’);
  2. function custom_theme_setup() { $lang_dir = get_template_directory() . ‘/lang’); add_action(‘after_setup_theme’, ‘custom_theme_setup’); }
  3. function custom_theme_setup() { $lang_dir = get_template_directory() . ‘/lang’); add_action(‘after_setup_theme’, ‘custom_theme_setup’); } load_theme_textdomain(‘tutsplus’, $lang_dir);
  4. function load_theme_textdomain(‘tutsplus’, $lang_dir); { $lang_dir = get_template_directory() . ‘/lang’); custom_theme_setup(); } add_action(‘after_setup_theme’, ‘custom_theme_setup’);

31. Image size limits can be set _______________.

Answers:

  1. directly in the posts
  2. in the wp-imageresize plug-in
  3. in the admin settings
  4. a and

32. How can a user be found through its meta data?

Answers:

  1. User can not be retrieved through its meta data
  2. get_user_by_metadata($metaid,$metavalue)
  3. get_user($args)
  4. get_users($args)

33. Which PHP method(s) can be used to send form data that is persistent across succeeding page views (such as for a language selection feature) in WordPress?

Answers:

  1. POST
  2. GET
  3. SESSION or COOKIE
  4. POST or GET

34. Which of the following will call the WordPress media uploader form element?

Answers:

  1. <form enctype=”multipart/form-data” method=”post” action=”<?=bloginfo(“siteurl”);?>/wp-admin/media-upload.php?inline=&upload-page-form=” class=”media-upload-form type-form validate” id=”file-form”>
  2.  <a onclick=”return false;” title=”Upload image” class=”thickbox” id=”add_image” href=”media-upload.php?type=image&TB_iframe=true&width=640&height=105″>Upload Image</a>
  3. <a href=”media-upload.php?type=image&TB_iframe=true&width=640&height=105″>Upload Image</a>
  4. <form enctype=”multipart/form-data” method=”post” action=”<?=bloginfo(“bloginfo”);?>/wp-admin/media-upload.php?inline=&upload-page-form=” class=”media-upload-form type-form validate” id=”file-form”>

35. Which of the following is the correct way to print the slug property of $firstTag object in this code snippet?$tags = wp_get_post_tags($post->ID);
$firstTag = $tags[0];

Answers:

  1. $firstTag[‘slug’];
  2. $firstTag->slug
  3. $firstTag.slug
    $firstTag[0][‘slug’]

36. Which of the following code snippets is the correct way to get content from Tinymce via javascript ?

Answers:

  1. document.getElementById(‘content’)
  2. tinymce.activeEditor.getContent();
  3. tinymce.element.getContent();
  4. document.getElement(‘tinymce_content’)

37. Is super cache a built-in plugin of WordPress?

Answers:

  1. Yes
  2. No

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

Answers:

  1. update the database
  2. change the admin settings
  3. change the config files
  4. use a plug-in

39. In which way MD5 hash does wordpress stores and represents?

Answers:

  1. In Hex string
  2. In Base64 string
  3. in raw data file
  4. text file

40. What is the first action you need to take for enabling WordPress MU feature?

Answers:

  1. Enable WordPress MU feature on admin panel
  2. Enable Network feature
  3. Add this code to wp-config.php file: define( ‘WP_ALLOW_MULTISITE’, true );

41. What is Automated Testing in WordPress?

Answers:

  1. Automated testing is running test cases where manual intervention is not required to run each one.
  2. It is a plugin which is used to test your custom template or plugin.
  3. It is a function available in WordPress to test the custom template/plugin.
  4.  There is no such thing as Automated Testing in WordPress.

42. Which of the following snippets disable depreciated warnings in WordPress like this one ?

“Deprecated: Assigning the return value of new by reference is deprecated in /home//public_html/hub/wp-settings.php on line 647”

Answers:

  1. define(E_DEPRECATED, false);
  2. error_reporting(E_ALL ^ E_DEPRECATED);
  3. define(E_NOTICE, false);
  4. error_reporting(WP_DEBUG, true)

43. One possible way to collect realtime statistics about traffic on a WordPress site is:

Answers:

  1. using a built-in tool
  2. using a plugin
  3. using a widget
  4. Traffic statistics cannot be collected on a WordPress site.

44. _____________ 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.

Answers:

  1. Contributo
  2. Autho
  3. Edito
  4. Subscribe
  5. Administrato

45. How can an < li >tag’s class and ID attributes be removed from menu items and page lists?

Answers:

  1. add_filter(‘nav_menu_css_class’, ‘my_css_attributes_filter’, 100, 1); add_filter(‘nav_menu_item_id’, ‘my_css_attributes_filter’, 100, 1); add_filter(‘page_css_class’, ‘my_css_attributes_filter’, 100, 1); function my_css_attributes_filter($var) { return is_array($var) ? array() : ”; }
  2. add_filter(‘nav_menu_css_class’, ‘my_css_attributes_filter’, 100, 1); add_filter(‘nav_menu_item_id’, ‘my_css_attributes_filter’, 100, 1); function my_css_attributes_filter($var) { if(is_array($var)){ $varci= array_intersect($var, array(‘current-menu-item’)); $cmeni = array(‘current-menu-item’); $selava = array(‘selectedmenu’); $selavaend = array(); $selavaend = str_replace($cmeni, $selava, $varci); } else{ $selavaend= ”; } return $selavaend; }
  3. add_filter (‘wp_nav_menu’,’strip_empty_classes’); function strip_empty_classes($menu) { $menu = preg_replace(‘/ class=([“‘])(?!active).*?1/’,”,$menu); return $menu; }
  4. None of the above

46. ____________ 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.

Answers:

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

47. Which of the following will show the most recent post (by date) from a custom taxonomy?

Answers:

  1. select * from wp_posts where ID in( select ID from ( select wp_posts.ID , wp_posts.post_date, d.name from wp_posts as a join wp_term_relationships as b on ( a.ID = b.object_id) join wp_term_taxonomy as c on (b.term_taxonomy_id = c.term_taxonomy_id) join wp_terms as d on (c.term_id = d.term_id) where c.taxonomy = ‘post-series’ group by d.name having (wp_posts.post_date = max(wp_posts.post_date)) )tmp)
  2. select * from wp_posts where ID in( select ID from ( select wp_posts.ID , wp_posts.post_date, d.name from wp_posts as a join wp_terms as d on (c.term_id = d.term_id) where c.taxonomy = ‘post-series’ group by d.name having (wp_posts.post_date = max(wp_posts.post_date)) )tmp)
  3. select * from wp_posts where ID in( select ID from ( select wp_posts.ID , wp_posts.post_date, d.name from wp_posts as a join wp_term_relationships as b on ( a.ID = b.object_id) join wp_term_taxonomy as c on (b.term_taxonomy_id = c.term_taxonomy_id) join wp_terms as d on (c.term_id = d.term_id) having (wp_posts.post_date = max(wp_posts.post_date)) )tmp)
  4. select * from wp_posts where ID in( select ID from ( select wp_posts.ID , wp_posts.post_date, d.name from wp_posts as a join wp_term_relationships as b on ( a.ID = b.object_id) join wp_terms as d on (c.term_id = d.term_id) where c.taxonomy = ‘post-series’ group by d.name having (wp_posts.post_date = max(wp_posts.post_date)) )tmp)

48. What are the correct steps in wordpress plugin development:

Answers:

  1. Step 1 – Create your file and let it be known as a plugin Step 2 – Create the objects of your plugin Step 3 – Adding your actions and filters Step 4 – Adding settings/options to your plugin Step 5 – Finishing the code
  2. Step 1 – Adding settings/options to your plugin Step 2 – Create your file and let it be known as a plugin Step 3 – Create the objects of your plugin Step 4 – Adding your actions and filters Step 5 – Finishing the code
  3. Step 1 – Create the objects of your plugin Step 2 – Adding settings/options to your plugin Step 3 – Create your file and let it be known as a plugin Step 4 – Finishing the code
  4. Step 1 – Create the objects of your plugin Step 2 – Adding settings/options to your plugin Step 3 – Finishing the code

49. What is the output of the following code?

<li>example 1

<li>example 2

<li>example 3

<li>example 4

$(document).ready(function(){
$(‘#sortable’).sortable({
update: function(event, ui) {
var newOrder = $(this).sortable(‘toArray’).toString();
$.get(‘saveSortable.php’, {order:newOrder});
}
});
});

Answers:

  1. Removes positions from data base based on the user input
  2. Saves sortable positions to data base based on the user input
  3. Adding new sortable positions from another data base
  4. Sorting out existing positions without updating the data base with the new user inputs

50. Which of the following is the correct way to assign a category to a WordPress post?

Answers:

  1. wp_set_post_categories($postId,$categories)
  2. wp_set_category($catId,$postId)
  3. By XML-RPC call to wpc.newPost
  4. This is not possible

51. Conditional tags can be used to _______________________.

Answers:

  1. get all comments from one post
  2. get all posts from one category
  3. change the content to be displayed
  4. None of the above: conditional tags are not available in WordPress.

52. Which of the following commands can change the ownership of WordPress directory to www-data (for Apache)?

Answers:

  1. sudo chown -Rf www-data *
  2. chown -Rf www-data *
  3. sudo crown -Df www-data *
  4. Alldo chown -Rf www-data *

53. How can a custom content filter be added?

Answers:

  1. By using add_action(‘the_content’,’my_custom_filter’)
  2. By using add_filter(‘the_content’,’my_custom_filter’)
  3. By using wp_filter(‘the_content’,’my_custom_filter’)
  4. By using add_action(‘content’,’my_custom_filter’)

54. How can a post ID be retrieved from the permalink?

Answers:

  1. Its not possible to retrieve the post ID from a permalink due to its structure.
  2. It can be retrieved by using a Regular Expression.
  3. wp_get_post_id($permalink)
  4. url_to_postid($permalink)

55. Which of the following is the correct way to redirect the default login and registration page URL to a custom login and registration page URL?

Answers:

  1. add_action(‘init’,’possibly_redirect’); function possibly_redirect(){ global $pagenow; if( ‘wp-login.php’ == $pagenow ) { return(‘Your custom url’); exit(); } }
  2. add_action(‘init’,’possibly_redirect’); function possibly_redirect(){ global $pagenow; if( ‘wp-login.php’ == $pagenow ) { wp_redirect(‘Your custom url’); exit(); } }
  3. add_action(‘init’,’possibly_redirect’); function possibly_redirect(){ global $pagenow; if( ‘wp-login.php’ == $pagenow ) { redirect(‘Your custom url’); exit(); } }
  4. add_action(‘init’,’possibly_redirect’); function possibly_redirect(){ global $pagenow; if( ‘wp-login.php’ == $pagenow ) { wp_return(‘Your custom url’); exit(); } }

56. How can a WordPress template be integrated inside a codeigniter framework using WordPress functions like wp_header,wp_footer,wp_sidebar?

Answers:

  1. Include the file wp-blog-header.php from WordPress installation directory to codeigniters index.php and create template inside codeigniter’s view.
  2. Include the file wp-settings.php from WordPress installation directory to codeigniters index.php and create template inside codeigniter’s view.
  3. Create template inside WordPress theme directory and include the file in codeigniter’s view.php file.
  4. It is not possible to integrate wordpress with codeigniter.

57. What is the first action you need to take for enabling the WordPress multisite (MS) feature?

Answers:

  1. Enable the WordPress multisite feature on admin panel
  2. Enable the Network feature
  3. Add this code to wp-config.php file: define( ‘WP_ALLOW_MULTISITE’, true );

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

Answers:

  1. add_taxonomy
  2. register_taxonomy
  3. create_taxonomy

59. Which of the following actions cannot be hooked in with add_submenu_page() function?

Answers:

  1. admin_submenu
  2. admin_menu
  3. user_admin_menu
  4. network_admin_menu

60. Which of the following is the correct way to filter the content for a few posts?

Answers:

  1. By using apply_filters(filter,postId)
  2. This is not possible in wordpress
  3. Can create filter for posts in a specific wordpress category
  4. Passing arguments into the_content()

61. What is the function of add_filter in WordPress?

Answers:

  1. It registers a filter for a tag.
  2. It removes line breaks from the pages list.
  3. It is a companion function to apply_filters().
  4. All of the above.

62. Which of the following code snippets will create plugins back-end page without showing it as menu item?

Answers:

  1. add_submenu_page with parent slug = null
  2. add_menu_page with parent slug = null
  3. add_submenu_page without parent slug = null
  4. add_menu_page without parent slug = null

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

Answers:

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

64. Are categories and tags available for pages?

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.

Answers:

  1. Yes
  2. No

65. Which of the following is the correct way to get WordPress Post ID from the Post title?

Answers:

  1. $page = get_page_title( ‘About’ ); wp_pages( ‘exclude=’ . $page->ID );
  2. $page = get_page_by_title( ‘Home’ ); $page_id = $page->ID;
  3. $page = get_page_by_title( ‘About’ ); wp_pages( ‘exclude=’ . $page->ID );
  4. None of the above

66. Which of the following will correctly add custom mod rewrite rules to .htaccess from a WordPress plugin?

Answers:

  1. $custom_mod_rewrite = new custom_mod_rewrite; register_activation_hook( __FILE__, array($custom_mod_rewrite, ‘flush_rewrite_rules’)); register_deactivation_hook( __FILE__, array($custom_mod_rewrite, ‘flush_rewrite_rules’)); add_action(‘generate_rewrite_rules’, array($custom_mod_rewrite, “generate_rewrite_rules”)); class custom_mod_rewrite { function __construct() { $this->wp_rewrite = & $POST[“wp_rewrite”]; }}
  2. $custom_mod_rewrite = new custom_mod_rewrite; register_activation_hook( __FILE__, array($custom_mod_rewrite, ‘flush_rewrite_rules’)); register_deactivation_hook( __FILE__, array($custom_mod_rewrite, ‘flush_rewrite_rules’)); add_action(‘generate_rewrite_rules’, array($custom_mod_rewrite, “generate_rewrite_rules”)); class custom_mod_rewrite { function __construct() { $this->wp_rewrite = & $GLOBALS[“wp_rewrite”]; } }
  3. $custom_mod_rewrite = new custom_mod_rewrite; register_activation_hook( __FILE__, array($custom_mod_rewrite, ‘flush_rewrite_rules’)); register_deactivation_hook( __FILE__, array($custom_mod_rewrite, ‘flush_rewrite_rules’)); add_action(‘generate_rewrite_rules’, array($custom_mod_rewrite, “generate_rewrite_rules”)); class custom_mod_rewrite { function __construct() { $this->wp_rewrite = & $GLOBALS[“wp_rewrite”]; } function mod_rewrite_rules($rules) { return preg_replace(‘#^(RewriteRule ^.*/)?$plugin_name .*(http://.*) [QSA,L]#mi’, ‘$1 $2 [R=301,L]’, $rules); } }
  4. $custom_mod_rewrite = new custom_mod_rewrite; register_activation_hook( __FILE__, array($custom_mod_rewrite, ‘flush_rewrite_rules’)); register_deactivation_hook( __FILE__, array($custom_mod_rewrite, ‘flush_rewrite_rules’)); add_action(‘generate_rewrite_rules’, array($custom_mod_rewrite, “generate_rewrite_rules”)); class custom_mod_rewrite { function __construct() { $this->wp_rewrite = & $SESSION[“wp_rewrite”]; } }

67. Which of the following is the correct code to get an array of every image uploaded to a particular post?

Answers:

  1. $images =& get_children( ‘post_type=attachment&post_mime_type=image&post_parent=10’ );
  2. $images = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
  3. $images = get_post(7, ARRAY_A);
  4. It cannot be done

68. Which of the following will echo the base URL of a WordPress site?
Answers:

  1. <?php echo get_bloginfo(‘base_url’) ?>
  2. <?php echo get_bloginfo(‘url’) ?>
  3. <?php echo get_bloginfo(‘site_url’) ?>
  4. <?php echo get_website_url() ?>

69. Which of the following functions are used when adding CSS and jQuery codes on a WordPress plugin?

Answers:

  1. wp_register_style
  2. wp_enqueue_style
  3. wp_enqueue_script
  4. None of these.

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

Answers:

  1. set the “show property” of the desired widget to “true”
  2. drag the desired widget to the side ba
  3. add the desired widget to the post
  4. change the source code

21,620 total views, 82 views today

Top 10 popular test answers

U.S. English Basic Skills Test 2016

Published by:

1. Which of the following sentences illustrates correct usage of articles and conjunctions?

Answers:

  1. Celine lives on Arthur Street; however, she works on Beatrice Boulevard.
  2. I would eat a peach every day if I could, nor the doctor told me I couldn’t.
  3. Will Gertrude play the piano or an harp at the concert?
  4. Although she is angry at them, neither her son and her father will be at the party.

2. Choose the series of verbs and phrases that best completes the following passage.

Answers:

  1. is, did the chef have to use
  2. was, the chef is using
  3. is, did the chef use
  4. was, the chef used
  5. a and c

3. Choose the series of articles and conjunctions that best completes the following sentence.
Neither we ________ Sal, our neighbor, could understand ________ it had been our dog Rover or Sal’s cat’s kittens _________ had destroyed all the flower beds in the middle of _______ night.

Answers:

  1. nor, whether, that, the
  2. or, if, who, the
  3. and, whether, than, a
  4. nor, if, that, a

4. Choose the series of verbs that best completes the following sentence.

Alison regrets _________ you with her remarks; she never meant _________ so.

Answers:

  1. to hurt, doing
  2. to hurt, to do
  3. hurting, doing
  4. hurting, to do

5. Which of the following sentences is NOT punctuated correctly?

Answers:

  1. We expect only three things from our dog: loyalty, affection, and tail wagging.
  2. I need you to pick up several boxes of paperclips, pens, and pencils; three pounds each of potatoes, carrots, and peas; and my dry cleaning.
  3. Marcy, my parrot, squawked for an hour, before finally calming down.
  4. All of the above are punctuated correctly.

6. Which of the following sentences illustrates the proper use of apostrophes?

Answers:

  1. Helga borrowed her friend’s skates for the day; however, she failed to return them.
  2. Thousand’s of bargains are available during the holiday season, but I cant find time to shop.
  3. The koala bear closed it’s eyes and fell fast asleep.
  4. Although I like the Joneses, I’m angry at them for breaking all of Ralphs’ tools.

7. Which of the following sentences does NOT illustrate correct verb and verb tense usage?

Answers:

  1. These repetitive and misleading guidelines could easily be interpreted in several different ways.
  2.  Clarabelle’s mother absolutely hated nicknames and always calls her daughter by her full name.
  3.  The Imagist movement in poetry is commonly regarded as having begun in the early twentieth century.
  4.  We all danced across the lawn and lifted Zoe above our heads in triumph.

8. Which of the following sentences illustrates incorrect pronoun usage?

Answers:

  1. The wet dog shook itself off, wagged its tail, and proceeded on its way.
  2. Don’t take the silver goblet out of its protective case or you’ll ruin it.
  3. You should wear that jacket to their wedding because it’s the nicest one you have.
  4. It’s not too late to answer their ad for a waitress, is it?
  5. None of the above

9. Which of the following sentences illustrate(s) the proper use of commas?

Answers:

  1. Randy wanted to end the meeting, but Amy wanted to prolong it.
  2.  After pouring herself a glass of water in silence, Nicky answered my question.
  3.  The committee, which had failed to come to a consensus decided to meet again on Tuesday.
  4. Mr. Bridges is never home on the weekends, he always goes to his home in the country.
  5. a and b
  6. All of the above

10. Choose the series of pronouns that best completes the following sentence.

Victor, who stole _______ ideas and used them to make _______ a millionaire, never once offered _______ a word of thanks.

Answers:

  1. our, himself, we
  2. their, them, himself
  3. your, us, you
  4. our, himself, us

11. Choose the series of prepositions that best completes the following sentence.

Although the issue was very serious, the committee disposed ______ it in a few minutes and moved _______ to other business.

Answers:

  1. onto, off
  2. of, away
  3. on, out
  4. of, on

12. Choose the series of prepositions that best completes the following passage.

Although Marvin said he had hidden the keys _______ the flower pot, we were unable to find them _______ the dark. In the end, we waited for him at the coffee shop ___________ the corner.

Answers:

  1. under, in, around
  2. in, with, at
  3. around, at, on
  4. beside, from, around.

13. Rearrange the following words to create the most logical and grammatically correct sentence .work . is always to brother willing not My

Answers:

  1. My brother is not willing to work always.
  2. My brother is not always willing to work.
  3. is not willing to work always My brother.
  4. My work is not willing to always brother.

14. Change the following sentence from a quotation to indirect speech.”I’m not feeling well,” Agatha said.
< strong>Answers:

  1. Agatha has said that she doesn’t feel well.
  2. According to Agatha, she isn’t feeling well.
  3. Agatha said she wasn’t feeling well.
  4. Agatha says she isn’t feeling well.

15. Which of the following sentences illustrates proper sentence structure?

Answers:

  1. Everyone knows that a mango is much sweeter to an orange.
  2. I saw the girl with my own eyes who said she had been abducted by aliens.
  3. Either one of you should try and to fix their broken fence.
  4. The queen had hardly finished her speech when the people began to disperse.

16. Choose the verb that best completes the following sentence.Do you know if Harlon ____________Japanese before moving to Japan?

Answers:

  1. has studied
  2. has been studying
  3. will have been studying
  4. will be studying

17. Which of the following sentences is NOT punctuated correctly?

Answers:

  1. All of the apple’s at the grocer’s were rotten, so I bought oranges instead.
  2. “Seven canteens full of water should be enough for the hike,” said Tabitha.
  3. Until the stove is fixed, there’s no way I can bake a lemon meringue pie.
  4. The woman, whose name escapes me at the moment, disappeared into the limousine.

18. Choose the series of prepositions that best completes the following sentence.Jeremy drove his motorcycle _______ the bridge, _______ the hill, and _______ the diner before finally parking it _______ two police cars.

Answers:

  1. beside, among, behind, near
  2. beneath, over, under, on
  3. across, down, past, between
  4. under, around, through, into

19. Choose the series of prepositions that best completes the following sentence.The deer ran quickly _______ the trees, its hooves pounding _______ the forest floor.

Answers:

  1. amid, from
  2. over, at
  3. through, on
  4. throughout, on

20. Which of the following sentences illustrates correct verb and verb tense usage?

Answers:

  1. Until the snow is melting, the train is not able to move.
  2. Until the snow does not melt, the train will not be able to move.
  3. Until the snow melts, the train will not be able to move.
  4. Until the snow will melt, the train will not be able to move.

 

21. Choose the series of articles and conjunctions that best completes the following sentence.I think Fran could be ______ great public speaker, _______ she is still too shy to try it.

Answers:

  1. the, although
  2. a, but
  3. an, however
  4. a, and

22. Which of the following sentences illustrates proper sentence structure?

Answers:

  1. Walking down the street, my eyes were drawn to a diamond in a store window.
  2. A small red car pulled up behind the woman with tinted windows.
  3. The man in the black cape mounted his powerful stallion and rode away.
  4. The cats chased the birds around the yard with the yellow beaks.

23. Which of the following sentences illustrates the proper use of parallel construction?

Answers:

  1. Terry hoped to find a new job that would let him earn extra cash in the summer and to work fewer hours.
  2. Although Tommy was failing his biology class at college, he was passing his chemistry class.
  3. Trina loved to sail, skate, swim, and surfing.
  4. Tatiana declared that the people in her office are smarter than the people who work in Tad’s office.

24. Choose the series of pronouns that best completes the following sentence.After realizing that our hosts hadn’t actually invited ______ to ______ party, ______ excused ______ from the table and slipped out the back door.

Answers:

  1. us, their, we, ourselves
  2. ourselves, theirs, we, us
  3. them, our, they, themselves
  4. us, our, we, himself

25. Read the following question and choose the response that uses the correct corresponding verb tense.Does Jack wear that furry hat often?

Answers:

  1. No, he just liked to wear it for fun sometimes.
  2. Yes, but don’t said anything about it to him.
  3. Yes, and it can so annoying!
  4. No, he only wears it when his ears are cold.

26. Complete the following sentence by choosing the phrase with the best word order from the options given.The excited children, who had run toward the loud _____________ .

Answers:

  1. music and then told the others about the ice cream truck outside
  2. music, are telling to the others about the ice cream truck outside
  3. ice cream truck to tell the others about the music outside
  4. music, told the others about the ice cream truck outside

27. Choose the series of verbs that best completes the following passage.I find it very hard to remember _________ letters that are entrusted to me. In fact, I remember _________ to do so dozens of times!

Answers:

  1. to mail, forgetting
  2. mailing, to forget
  3. to mail, to forget
  4. mailing, forgetting

28. Choose the series of prepositions that best completes the following sentence.Charlotte knew ___________ the secret investigation _________ her past, but she closed her eyes to it and pretended it wasn’t happening.

Answers:

  1. of, about
  2. on, of
  3. about, to
  4. of, after

29. Which of the following sentences illustrates correct verb and verb tense usage?

Answers:

  1. Did Annabel knowingly lie on the witness stand?
  2. We think the judge will have noticed something strange in her behavior.
  3. The lawyers had decided to keep her testimony a secret.
  4. Somehow, all of the newspapers gotten hold of the story.

30. Choose the series of adjectives and adverbs that best completes the following sentence.I think Pamela deserves to be punished for her __________ stupid and __________ behavior.

Answers:

  1. irresponsible, totally
  2. totally, irresponsibility
  3. totally, irresponsible
  4. total, irresponsibly

31. Rearrange the following words to create the most logical and grammatically correct sentence.with can’t phone . on Whenever always to the time spend I speak I my friend , him

Answers:

  1. Whenever I always phone on my friend to speak, I can’t spend the time with him.
  2. Whenever I spend time on the phone to him, I can’t always speak with my friend.
  3. Whenever I speak to him, I can’t always spend time with my friend on the phone.
  4. Whenever I can’t speak to him on the phone, I always spend time with my friend.
  5. Whenever I can’t spend time with my friend, I always speak to him on the phone.

32. Choose the series of articles and conjunctions that best completes the following sentence._______ she was feeling ill, Teresa wanted to eat only _____ apple _____ some soup.

Answers:

  1. Yet, the, or
  2. After, an, and
  3. Because, an, or
  4. If, a, and

33. Choose the series of pronouns that best completes the following sentence.That house used to be ______ , but ______ have given it to ______.

Answers:

  1. my, I, her
  2. mine, me, her
  3. mine, I, her
  4. myself, she, her

34. Change the following sentence from a quotation to indirect speech.”It may snow tomorrow,” he said.

Answers:

  1. He said it should snow tomorrow.
  2. He might say it will snow tomorrow.
  3.  He says it may snow tomorrow.
  4. He said it might snow the next day.

35. Which of the following sentences illustrates correct usage of articles and conjunctions?

Answers:

  1. The cake that I ate was better that the one you had.
  2. An house is not the home, or so they saying goes.
  3. For my birthday, I would like a book, an hourglass, and the keys to a new boat.
  4. Has a package I’ve been waiting for been delivered yet, nor must I wait longer?

36. Change the following sentence from a quotation to indirect speech.Rhonda says, “I get to work early every day.”

Answers:

  1. Rhonda says she gets to work early every day.
  2. Rhonda said she gets to work early every day.
  3. Rhonda has said that she got to work early every day.
  4. Rhonda says she had gotten to work early every day.

37. Read the following question and choose the response that uses the correct corresponding verb tense.Did you see the show last night?

Answers:

  1. No, because by the time I got there all the tickets had already been sold.
  2. Yes, and it was one of the best shows I had ever seen.
  3. Yes, but my seat was behind a pole so I couldn’t barely see anything.
  4. No, but I am hope to see it tonight.

38. Choose the series of adjectives and adverbs that best completes the following sentence.While __________ of our relatives live on the __________ hill in the county, __________ of our friends live in the __________ __________ areas of the valley.

Answers:

  1. more, windy, many, most, protection
  2. most, windier, more, most, protective
  3. many, windiest, most, more, protected
  4. many, winding, more, most, protected

39. Rearrange the following words to create the most logical and grammatically correct sentence.last what ! it’s did you night, over After

Answers:

  1. After what night, it’s over you did last!
  2. After what you did last night, it’s over!
  3.  over what you did last night, it’s After!
  4. After, it’s over what you did last night!

40. Choose the series of pronouns that best completes the following sentence._______ is the name of the opera, and _______ role did you say Maria would play?

Answers:

  1. This, which
  2. Who, that
  3. What, which
  4. Which, what

41. Which of the following sentences does NOT illustrate proper use of articles and conjunctions?

Answers:

  1. I thought about keeping an orangutan as a pet; however, my apartment complex does not allow exotic animals on the premises.
  2. Bertha decided to change a locks of her house after burglars stole a computer or an oil painting.
  3. After thinking about the problem for half an hour, Glen finally came up with a perfect solution.
  4. Arlene loves nature and the outdoors in general, yet she spends most of her time inside because of her job.

42. Choose the series of adjectives and adverbs that best completes the following sentence.The helium-__________ balloon rose __________ into the air; the villagers knew then that their __________ leader was off on another mission.

Answers:

  1. power, powerful, powered
  2. powered, powered, powerful
  3. powered, powerfully, powerful
  4. powerful, powered, powerfully

43. Rearrange the following words to create the most logical and grammatically correct sentence.days . for last has good weather few The been the not

Answers:

  1. weather for The last few good has not been the days.
  2. The good days has not been for the last few weather.
  3. The few days has not been good for the last weather.
  4. The weather has not been good for the last few days.

44. Which of the following sentences is punctuated correctly?

Answers:

  1. Come here, she said, and let me get a good look at you.’
  2. Come here she said, and let me get a good look at you.
  3. “Come here,” she said. “and let me get a good look at you.”
  4. “Come here,” she said, “and let me get a good look at you.”

45. Change the following sentence from a quotation to indirect speech.Carol has said, “I am responsible for this project.”

Answers:

  1. Carol has said that she is responsible for this project.
  2. Carol says she is responsible for this project.
  3. Carol said that she was responsible for this project.
  4. Carol had said that she would be responsible for this project.

46. Choose the phrase that best completes the sentence below without creating a run-on sentence.Mr. Peach has sent his four children to Ivy League colleges __________ he has sacrificed his health working day and night in that dusty factory.

Answers:

  1. however
  2. ; however,
  3. , however
  4. however,

47. Choose the series of pronouns that best completes the following sentence.Don’t ________ think Larry should call ________ wife if ________ is going to be late for dinner?

Answers:

  1. you, his, he
  2. we, your, his
  3. he, his, he
  4. you, his, himself

48. Choose the series of adjectives and adverbs that best completes the following sentence.Knowing that February was the _________ month of the year, Cheryl planned her vacation ___________.

Answers:

  1. short, in accordance
  2. shortest, accordingly
  3. shorter, according
  4. shortness, accordion

49. Choose the series of prepositions that best completes the following sentence.I placed my notes _______ my desk and referred to them _______ the meeting.

Answers:

  1. at, among
  2. beside, during
  3. with, at
  4. upon, around

50. Which of the following sentences illustrates correct pronoun usage?

Answers:

  1. Is those the set of plates the bride wanted, or did she want this set?
  2. Which of these glasses is half full—that one or this one?
  3. To whom did them give the gold medal?
  4. Whose book is that—his or our?
  5. None of the above

51. Choose the series of prepositions that best completes the following sentence.Jack, leaning casually ________ the tree, watched as Sally walked slowly ________ him.

Answers:

  1. against, toward
  2. toward, against
  3. upon, past
  4. off, beside

52. Read the following question and choose the response that uses the correct corresponding verb tense.Will you be going to the company picnic this year?

Answers:

  1. Yes, I will have always gone every year.
  2. No, unfortunately I didn’t have time this year.
  3. Yes, and I plan on swimming, fishing, and eating all day!
  4. I might go if I had known about it sooner.

53. Choose the series of verbs that best completes the following sentence.Everyone __________ too busy cooking and __________ the campsite __________ the family of bears __________ from the woods.

Answers:

  1. were, setting up, to notice, watch
  2. was, set up, noticing, to watch
  3. is, setting, to notice, watching
  4. was, setting up, to notice, watching

54. Change the following sentence from a quotation to indirect speech.”I can meet with you at noon,” said Peter.

Answers:

  1. Peter says he can meet with me at noon.
  2. Peter said he will meet with me at noon.
  3. Peter said he could meet with me at noon.
  4. Peter can meet with me at noon, so he said.

55. Choose the phrase that best completes the sentence below without creating a run-on sentence.It’s never too late to learn how to swim ________________ you may fall off a boat!

Answers:

  1. you never know when
  2. you never know when
  3. you never know as
  4.  you never know when

56. Complete the following sentence by choosing the phrase with the best word order from the options given.Only after they had completed an exhaustive study __________ how to adapt the technology to the needs of our company.

Answers:

  1. did they understand to begin
  2. did they begin to understand
  3. they did begin to understand
  4. to understand did they begin

57. Choose the series of adjectives and adverbs that best completes the following sentence.Of the two books, Sam’s is definitely the __________ ; however, even though Sandra’s didn’t turn out as __________ as expected, she still did a __________ job of writing it.

Answers:

  1. better, well, good
  2. best, good, good
  3. better, good, better
  4. best, well, well

58. Change the following sentence from a quotation to indirect speech.”I will be moving soon,” said Alma.

Answers:

  1. Alma said she would be moving soon.
  2. Alma said she will move soon.
  3. Alma says she’ll be moving soon.
  4. Alma says she would move soon.

59. Choose the series of adjectives and adverbs that best completes the following sentence.The archaeologists were ________ to discover such a __________ and __________ _________ artifact at that mostly uncovered site.

Answers:

  1. amazing, rarely, incredible, beautifully
  2. amazed, rare, incredibly, beautiful
  3. beautiful, rarity, amazingly, incredible
  4. amazingly, beautiful, rarely, incredible

60. Read the original sentence below and then choose the rewritten sentence that illustrates proper sentence structure.

ORIGINAL SENTENCE:
It is easy to carry solid objects, but the same cannot be said of liquids.

REWRITTEN SENTENCES:

Answers:

  1. Unlike liquids, solid objects are easy to carry.
  2. Unlike liquids, we can easily carry solid objects.
  3. Unlike liquids; solid objects can easily be carried.
  4. Unlike liquids, solid objects easy to be carried.

61. Complete the following sentence by choosing the phrase with the best word order from the options given.Those who are not wise ____________ .

Answers:

  1. do not need be necessarily stupid
  2. need not necessarily be stupid
  3. need not to be necessarily stupid
  4. does not need to be necessarily stupid

62. Change the following sentence from a quotation to indirect speech.Jerry said, “I saw my cousin at the fair.”

Answers:

  1. Jerry had said he’d seen his cousin at the fair.
  2. Jerry said he had seen his cousin at the fair.
  3. Jerry said he’d saw his cousin at the fair.
  4. Jerry says he saw his cousin at the fair.

63. Choose the series of adjectives and adverbs that best completes the following sentence.The _______ , _______ odor was ________ coming from the chemistry lab up the street.

Answers:

  1. pungent, nastily, clearness
  2. pungently, nastily, clearly
  3. pungently, nasty, clear
  4. nasty, pungent, clearly

64. Choose the series of verbs that best completes the following sentence.If Harry __________ to the party too early, don’t let him in; he __________ outside like everyone else.

Answers:

  1. gets, will have to wait
  2. got, waits
  3. gets, is waiting
  4. has gotten, must be waiting

65. Choose the series of prepositions that best completes the following sentence.Whiskey, my pet squirrel, jumped ________ my head and ________ the windowsill.

Answers:

  1. over, onto
  2. through, into
  3. from, under
  4. into, onto

66. Rearrange the following words to create the most logical and grammatically correct sentence.sleeping likes the . midday Katie until on weekends

Answers:

  1. sleeping Katie likes until midday on the weekends.
  2. Katie likes sleeping until weekends on the midday.
  3. Katie likes on sleeping until the midday weekends.
  4. Katie likes sleeping on midday until the weekends.
  5. Katie likes sleeping until midday on the weekends.

67. Choose the series of adjectives and adverbs that best completes the following sentence.We were surprised when the ________ parade ________ turned into a ________ party!

Answers:

  1. dull, suddenly, wild
  2. duller, all of a sudden, wilder
  3. dullest, suddenly, wildest
  4. dull, sudden, wild

68. Choose the option that correctly changes the original sentence from active voice to passive voice.ORIGINAL SENTENCE:

That tall man is carrying a lot of lumber.

REWRITTEN SENTENCES:

Answers:

  1. The tall man carries a lot of lumber.
  2. Is being carried by that tall man, the lumber.
  3. The lumber is carried by the tall man.
  4. A lot of lumber is being carried by that tall man.

69. Rearrange the following words to create the most logical and grammatically correct sentence.would I have it anything if had . I you known said would not bother

Answers:

  1. Would I have not said anything if you had known it would bother I?
  2. I would not have said anything if I had known it would bother you.
  3. Had I known if it would bother you I would not have said anything.
  4. If I had known it would not bother you I would have said anything.

70. Change the following sentence from a quotation to indirect speech.”Sharon must go to the bank today,” said Albert.

Answers:

  1. Albert says Sharon will have to go to the bank today.
  2. Albert said Sharon has to go to the bank today.
  3. Albert says Sharon must go to the bank today.
  4. Albert said Sharon had to go to the bank that day.

71. Choose the series of articles and conjunctions that best completes the following sentence.Lilacs ______ violets are usually purple, ______ I have seen some ______ are white.

Answers:

  1. and, however, that
  2. or, yet, which
  3. and, although, that
  4. or, but, and

72. Choose the series of articles and conjunctions that best completes the following sentence.Julia, who is studying to be _______foreign correspondent, is currently doing _______ internship in _______ Middle East _______ will return before the end of _______ year.

Answers:

  1. (no article required), an, the, but, the
  2. the, a, the, however, a
  3. a, an, (no article required), yet, a
  4. a, an, the, but, the

73. Rearrange the following words to create the most logical and grammatically correct sentence.your company name ? of What the is

Answers:

  1. What is the company of your name?
  2. your company What is the name of?
  3. What is the name of your company?
  4. The name of your company What is?

14,503 total views, 35 views today