Ads by Google
Get This Adsense Pop-up Window


Thursday 23 February 2017

Upwork test Answer 2017 | Upwork Management Skills Test Answers 2019

1. Which of the following statements is not likely to characterize a planning approach to strategy development?
Answers:
• Strategies are the outcome of rational, sequential, and methodical practices
• Definite and precise objectives are set
• Strategies are developed by negotiation and bargaining between interest groups
• Defined procedures for the implementation and achievement of strategic objectives are developed
• None of the above

2. Which of the following is not a function of a ‘transactional’ leader?
Answers:
• Moving resources from areas of lesser productivity to areas of greater productivity.
• Working within a culture and competently supervising and coordinating the day-to-day management.
• Maintaining the system through control of current procedures.
• Recognizing and clarifying roles and task requirements.
• Maintaining an organization’s operation rather than changing it.

3. Which term refers to an internal framework for ensuring that an organization behaves responsibly?
Answers:
• Performance monitoring
• Governance
• Strategy
• Watchdog
• Stakeholder

4. Which of the following statements regarding the five core job dimensions is true?
Answers:
• The less feedback individuals receive, the more autonomy they feel and the more committed they will be to the job.
• The less variety in the skills a person can use in performing work, the more the person perceives the task as meaningful or worthwhile.
• The more the work has a direct effect on the work or lives of other people, the less the employee will view the job as meaningful.
• The more autonomy in the work, the more responsibility the workers feel for their success and failures and the more committed they are to their work.

5. Which of the following types of costs is not typically ‘variable’:
Answers:
• Cost of raw materials
• Cost of marketing
• Cost of lighting
• Cost of transportation

6. Which of the following best completes the sentence: “Repetitive decisions are known as _____________ .”
Answers:
• operational decisions
• programmed decisions
• routine decisions
• standard decisions

7. Which is not a characteristic of a ‘democratic leader’ as identified by Lewin, Lippitt and White?
Answers:
• Involving subordinates in decision-making.
• Acknowledging that he/she cannot know everything.
• Devolving ultimate decision-making authority.
• Earning subordinates’ respect by listening to advice.

8. Which of the following is not a financial statement?
Answers:
• Statement of Financial Loss
• Income Statement
• Balance Sheet
• Statement of Retained Earnings
• Statement of Cash Flow

9. A member of the Board of Directors of a company who is not an employee of the company is called a——————– .
Answers:
• consultant
• inside director
• non-executive director
• corporate officer

10. Budgetary control systems involve ______________.
Answers:
• Estimation of control
• Setting of targets
• Monitoring of performance
• Preparation of budgets

11. Which term refers to an activity or a series of activities that transform inputs into outputs?
Answers:
• Process
• Policy
• Practice
• Paradigm

12. Which one of the following best completes the sentence:
The principle of ‘Unity of Command’ is concerned with —————— .
Answers:
• activities
• persons
• remuneration
• respect of authority

13. Which of the following reveals whether or not a company is earning a profit?
Answers:
• Income statement
• Statement of cash reconciliation
• Balance statement
• Statement of cash flows
• Statement of owners’ equity

14. Which of the following is correctly ordered as a Management Process?
Answers:
• Staffing, Planning, Organizing, Directing, Co-ordinating, Controlling
• Planning, Staffing, Organizing, Directing, Co-ordinating, Controlling
• Planning, Organizing, Staffing, Directing, Co-ordinating, Controlling
• Planning, Organizing, Staffing, Directing, Controlling, Co-ordinating

15. Which one of the following is not the purpose of Performance Appraisal?
Answers:
• It can serve as a basis for job change or promotion.
• It serves as a guide for formulating a suitable training and development program.
• It provides the rational foundation for the payment of piece work, wages, bonuses, etc.
• It makes the worker committed and loyal to the organization.
• It serves as feedback to the employee.

16. Which of the following is generally an inappropriate reason for delegation?
Answers:
• It relieves the manager of his/her heavy workload.
• It frees the manager to address more complex, higher-level needs.
• Someone else is better qualified to do the task that needs to be done.
• It helps create a formal organizational structure.

17. Which of the following is an external source of recruitment?
Answers:
• Promotion from within
• Transfer of employees
• Unsolicited applicants
• Staff returning from maternity leave

18. In the ‘situational’ leadership style, the manager is concerned with ___________.
Answers:
• task accomplishment
• human relations and teamwork
• giving free rein to his/her staff
• prompt, orderly performance
• growth for staff and himself/herself

19. Which of the following represents the implementation of a ‘Just-in-Time’ production approach?
Answers:
• The installation of a new computer system.
• Receiving materials as and when they are required for production.
• Having a large supply of materials ready to be processed.
• Implementing process controls to improve quality.
• Introducing monitoring tools to assess efficiency

20. Self-regulation, one of the characteristics of an effective leader, is defined as the ability to —–.
Answers:
• understand one’s own reactions and the effect of one’s behavior on other team members.
• control oneself and to reflect in complex situations.
• maintain an ongoing commitment to a goal in often turbulent and chaotic times.
• understand the complexities of other people’s situations.
• maintain teamwork in situations where uncertainty can isolate and drive people apart.

21. According to Bruce Tuckman’s model of group development, which is the second stage through which a team passes?
Answers:
• Storming
• Forming
• Performing
• Norming

22. Selling stock not actually owned in the expectation that the price will fall is known as———————– .
Answers:
• going long
• flotation
• short-selling
• divestment

23. Which of the following characterise a ‘differentiation’-based business model?
1.High sales volume
2.High profit margin
3.Well-regarded brand
4.High-quality manufacture
Answers:
• 1,2 and 4
• 2, 3 and 4
• 1, 3 and 4
• 1, 2 and 3
• All of the above

24. Which one of the following is not the function of Personnel Management?
Answers:
• Procurement of the right kind and number of persons.
• Training and development of employees.
• Integration of the interests of the personnel with that of the enterprise.
• Management of customer requirements

25. Which one of the following best completes the sentence: “Division of work promotes ____________.”
Answers:
• Effective management
• Efficiency
• Experience
• Equality

26. Which of the following activities should not be outsourced?
Answers:
• Core business
• Project management
• Human Resources
• Marketing
• Sales

27. If a subordinate is having difficulty carrying out a delegated task, what should a manager do?
Answers:
• Take over the task for the employee so he or she will not become demoralized.
• Be available as a role model and resource in identifying alternative solutions.
• Give the employee a written warning.
• Give the employee a second delegated task so he or she has another opportunity to prove his worth.

28. In which order would the following strategic planning activities take place?
1.Evaluating performance
2.Devising strategy
3.Documenting plans
4.Executing plans
Answers:
• 2, 4, 3, 1
• 4, 3, 1, 2
• 3, 2, 1, 4
• 4, 1, 3, 2
• 2, 3, 4, 1

29. If the financial year starts in January, the Fixed Budget will be prepared ———— .
Answers:
• a month or two earlier
• in January
• at the end of that year
• as and when the Financial Manager decides

30. Which of the following are not legitimate risk management options?
1.Terminate
2.Turn
3.Tolerate
4.Treat
5.Test
6.Transfer
Answers:
• 1 and 4
• 2 and 3
• 5 and 6
• 2 and 5
• 1 and 6
• 3 and 4

31. Which of the following characterizes the difference between Managers and Leaders?
Answers:
• Leaders are concerned with strategic issues; managers are concerned with tactical issues
• Managers are concerned with the vision of the company; leaders are concerned with the contingency plans
• Managers are concerned with concepts; leaders are concerned with details
• Managers are concerned with order and stability; leaders are concerned with change
• Managers are concerned with directing others; leaders tend to do the work themselves

32. Which of the following statements is false?
Answers:
• Decision-making should be based on evidence.
• Decision-making should take into account a range of factors.
• Decision-making should involve key stakeholders.
• Decision-making should be rapid.

33. A tool to plot the duration of activities in a project and its dependencies is named after:
Answers:
• Robert George
• Toby Williams
• Henry Gantt
• Samuel Edwards

34. Which of the following is not a key function of leadership?
Answers:
• Enthusing and inspiring staff.
• Setting strategic direction.
• Being accountable for performance.
• Closely monitoring the execution of tasks.

35. Which of the following is neither a cash in-flow nor cash out-flow?
Answers:
• Rents received
• Payments from debtors
• Payments to creditors
• Mortgage repayments
• Depreciation

36. Computers have helped immensely in the design and development of products for the manufacturing sector. With reference to this statement, which computer-related technology supports the above statement?
Answers:
• CAD
• CAM
• Decision Tree Analysis
• Artificial Intelligence
• CAP

37. Which of the following constitutes a fixed asset in a business?
Answers:
• Creditors
• Debtors
• Stock
• Fixtures and fittings

38. There are some important measures which a company can use to determine the effects of training. Which of the following is not one of them?
Answers:
• Production
• Changes in specific results, such as turnover
• Job applications
• Profit of the company
• Overall growth

39. Jack Smith was reviewing the performance of his employees and was trying to decide which of them could profit the most from some additional managerial involvement. Listed below are the four employees he is considering. Everything else being equal, which of the following employees will benefit from the additional managerial involvement as a result of his/her performance being most appreciated?
Answers:
• Johnson, who has successfully worked independently for several years.
• Marko, who has recently been assigned a highly-challenging, but relatively-unstructured task.
• Baker, who has been employed with the firm in a variety of related positions for nearly fifteen years.
• Louis, who recently received recognition for outstanding service.

40. What is the main advantage of employing staff on a temporary basis?
Answers:
• Greater flexibility in responding to customer requirements
• Improved productivity
• Enhanced customer satisfaction
• Lower staff turnover

41. Why does a business analyze its financial accounts to assess its solvency?
Answers:
• To check whether it can meet its current financial obligations.
• To monitor depreciation.
• To confirm customers are making prompt payments.
• To assess the efficiency of the manufacturing process.

42. Which of the following would help a company manufacture products to the standard required by the customer?
Answers:
• Performance appraisal
• Stock control
• Quality control
• Strategic planning approach

43. Operations can be classified according to their volume and variety of production, as well as the degree of variation and visibility. Which of the following operations would be classified as high-volume, low-variety?
Answers:
• A cashier’s
• A carpenter’s
• A family doctor’s
• A front-office bank’s

44. If a company’s productivity is rising, it means ———— .
Answers:
• costs are rising at a faster rate than output.
• output is rising at a faster rate than costs.
• output and costs are increasing at the same rate.
• output and costs are decreasing at the same rate.

45. Which item appears in both the balance sheet and the profit and loss account?
Answers:
• Suppliers
• Heating
• Sales
• Closing stock

46. If a manager is attempting to establish motivational goals for his employees, which of the following should he do?
Answers:
• Involve subordinates in the goal-setting process
• Set goals that are stated in very general terms
• Set conflicting goals so employees can accomplish one goal or another as they choose
• Set goals that are easy to achieve

47. What is a ‘stakeholder map’?
Answers:
• A means of plotting the location of customers.
• A means of identifying all those affected by the organization.
• A means of targeting your intended market.
• A means of predicting sales growth.

48. Recruitment, selection, and training is a function of————– .
Answers:
• organizing
• directing
• leadership
• staffing

49. According to the team roles identified by Belbin, a ‘plant’ is someone who is————- .
Answers:
• highly-specialized
• good at turning ideas into action
• creative and unorthodox
• adept at handling inter-personal relationships

50. Delegation takes place when ______________.
Answers:
• a superior abrogates responsibility for a task.
• one person gives another the right to do a piece of work.
• a subordinate is given orders.
• the manager closely monitors the subordinate’s execution of a task.

51. Which one of the following is another term for the Scalar Principle?
Answers:
• Span of Control
• Unity of Direction
• Unity of Command
• Chain of Command
• Personal ability

52. In which context are the terms Unfreezing and Refreezing used?
Answers:
• Management of Change
• Management of Order
• Dimensions of Order
• Resistance to Change
• Dimensions of Control

53. Which ratio shows an organization’s effectiveness in minimizing production costs?
Answers:
• Gross profit ratio
• Current ratio
• Efficiency ratio
• Selling ratio

54. Long-term budgets are useful for those industries where the gestation period is long. Which of the following is not relevant to the above statement?
Answers:
• Machinery
• Electricity
• Textile
• Engineering

55. What does the term ‘Unity of Control’ stand for under Principles of Organizing?
Answers:
• That there should be a limit to the number of persons that can be supervised effectively by one boss.
• That each subordinate should have only one superior whose orders he has to obey.
• That the line of authority from the chief executive at the top to the first line supervisor at the bottom must be clearly defined.
• That the activities of the enterprise should be divided according to functions and assigned to persons according to their specialization.

56. Which of the following are incorrect?
1.Policies are established after a thorough study and analysis of work. Procedures are often established without any study and analysis.
2.Policies help us in fulfilling the objectives of the enterprise. Procedures show us the way to implement policies.
3.Policies are specific and lay down the sequence of definite acts. Procedures are generally broad and allow some discretion.
4.Policies are general guides to both thinking and action of people at higher levels. Procedures are general guides to action only, usually at lower levels.
Answers:
• 1 and 2
• 1 and 3
• 2 and 3
• 2 and 4
• 3 and 4
• 1 and 4

57. Which motivation strategy is characterized by a high emphasis on performance and a low emphasis on satisfaction?
Answers:
• Indulging
• Imposing
• Integrating
• Ignoring

58. Which of the following is incorrect?
Answers:
• Because errors creep in more easily when decisions are made on the basis of subjective judgment or past experience, using Operations Research Techniques improves the likelihood of a good decision.
• Operations Research Techniques make it possible to break down a complex large-scale problem into smaller parts that can be more easily diagnosed and manipulated.
• Operations Research Techniques permit experimentation to take place without interfering with actual operations.
• Operations Research Techniques can be effectively applied in many situations where the underlying variables cannot be quantified, e.g. situations involving human qualities and interpersonal relations.

59. Which of the following is not a feature of a good organizational structure?
Answers:
• Clear line of authority
• Adequate delegation of authority
• Proper span of control
• More managerial levels
• Simple and flexible structure

60. Which of the following is a current liability of a business?
Answers:
• Cash
• Debtors
• Bank overdraft
• Work in progress

61. According to the Myers-Briggs classification of personality types, the opposite of ‘perception’ is————— .
Answers:
• judgment
• intuition
• sensing
• feeling
• thinking

62. ‘Span of Control’ relates to the ———— .
Answers:
• division of responsibility
• delegation of authority
• number of persons to be supervised
• the physical area managed by a person

63. An employee’s desire and commitment to perform that is manifested in job related effort defines his/her———————– .
Answers:
• aptitude
• motivation
• performance
• ability

64. Which of the following can be used as a term for Supervisor?
Answers:
• Area manager
• Specialty manager
• Front-line manager
• Technical manager

65. In decentralization, subordinates —————– .
Answers:
• enjoy significant powers
• are permitted limited powers
• Do not get any powers
• work unsupervised
• are no longer managed

66. In which of the following circumstances is the directive method of introducing planned change inappropriate?
Answers:
• When the manager enjoys sufficient position power (e.g.: he/she has significant control over rewards and punishments).
• When the employees are achievement-motivated and willing to accept the change.
• If organization communication pattern is ‘star-type’, which favors the change agent as a leader over his subordinates.
• When the driving forces far outweigh the restraining forces.


67. Which term refers to a document that sets out an organization’s ‘rules’ regarding a particular issue?
Answers:
• Process
• Policy
• Procedure
• Practice
• Paradigm

68. The degree to which a company owns its upstream suppliers and its downstream buyers is known as—————- .
Answers:
• monopolization
• vertical integration
• specialization
• diversification

69. A manager is seeking to introduce new working conditions. Which of the following is the best way to gain employees’ cooperation?
Answers:
• Send an email to the entire staff informing them of the new conditions.
• Post the new instructions on a notice board.
• Organize a briefing for the entire staff.
• Discuss the proposals with staff representatives.

70. Which of the listed management functions involves creating an environment where everyone works together to achieve the common goals of the organization?
Answers:
• Planning
• Controlling
• Leading
• Recruiting
• Organizing

71. Why do businesses use cash-flow forecasts as part of the internal planning process?
Answers:
• To estimate the value of their assets at the year end.
• To assess potential profit or loss.
• To allocate the marketing budget.
• To predict future borrowing requirements.

72. Which two factors are combined to evaluate the size of risks facing an organization?
Answers:
• Probability and Scale.
• Impact and Importance
• Probability and Impact
• Scale and Importance.

73. Which of the following is not included in calculating working capital?
Answers:
• Stock of work in progress
• Plant
• Debtors
• Creditors

74. Which of the following defines ‘apprenticeship’ training?
Answers:
• A method of training meant to give the trainee sufficient knowledge and skill in those trades and crafts in which a long period of training is required for gaining complete proficiency.
• A method of training which is generally provided to the skilled and technical personnel.
• A method involving the creation of a separate training centre within the plant itself for the purpose of providing training to new employees.

75. Set-up costs that make it difficult for new companies to enter a particular market are known as——————— .
Answers:
• hurdles to entry
• barriers to entry
• obstacles to entry
• impediments to entry
• A method of training designed to help new staff rapidly to acquire simple skills.

76. A Mission Statement: ——————- .
Answers:
• provides information as to what the organization is trying to achieve.
• outlines a task to be undertaken by a team.
• summarizes the outcome of a project.
• sets out the high-level structure of the organization.

77. The ‘Principle of Order’ applies to————– .
Answers:
• one head and one plan
• right person in right job
• issuing instructions
• justice and kindness

78. A tool for evaluating organizational performance across the full range of a business is known as a ‘balanced ________’.
Answers:
• scorecard.
• ledger.
• matrix.
• healthcheck.

Upwork Knowledge of Google Analytics Answers 2019

43 Answered Test Questions:
1. To apply filters to your data so as to keep your “raw” data intact, you can create a:
Answers:
a. new Analytics account.
a. duplicate profile in your account.
a. duplicate report in your account.
2. How can a goal in Google Analytics be made inactive?
Answers:
a. by deleting the goal
a. by turning it off
3. Google Analytics tracks data from a variety of sources to provide:
Answers:
a. closed-loop ROI analysis.
a. open-loop ROI analysis.
a. Ad Sense report analysis.
a. AdWords report analysis.
4. The traffic sources leading to increase in traffic and revenue can be identified by:
Answers:
a. goal funnel>select goal
a. all traffic sources report>Ecommerce tab
a. goal value> select goal
a. all traffic sources report>goal conversion tab
5. To identify the steps of a payment processing wizard that are causing people to abandon the purchase, you should:
Answers:
a. set up a new goal in Google Analytics.
a. use the funnel visualization report in Google Analytics.
a. set up a new Analytics profile.
a. create a program to parse all the links to be monitored.
6. Once created, a custom report is available for as long as:
Answers:
a. you want it.
a. your current session is active.
a. 72 hours only.
a. two months.
7. A visitor’s interaction with your website after clicking on your Google AdWords Ad can be monitored by:
Answers:
a. Google Analytics.
a. Google AdSense.
a. Google AdWords.
a. Google Webmaster Tools.
8. The percentage of visits in which the users left your site after visiting only the entrance page is known as:
Answers:
a. crawl rate.
a. visitor segmentation.
a. bounce rate.
a. pageviews.
9. The above visualization can be obtained by:
Answers:
a. traffic source>goal conversion
a. visitors>visits for all visitors
a. goals>funnel visualization
a. visitors>map overlay
10. While customizing a goal, the ‘Required step’ checkbox:
Answers:
a. does not affect the Funnel Visualization report.
a. prevents a goal from showing a conversion in any other goal report.
a. does not keep a goal from showing a conversion in any other goal report.
a. affects only the Funnel Visualization report.
11. Auto tagging and link tagging:
Answers:
a. require extra expenditure.
a. append additional query string parameters on to the end of URLs pointing to your site.
a. eliminate the need for appending additional query strings to the end of URLs.
a. always cause visitors to be transferred to an error page.
12. A funnel can be defined:
Answers:
a. without setting up a goal.
a. only after creating a custom segment.
a. only 24 hours after the installation of the tracking code.
a. after setting up a goal.
13. The Query String Variable utm_content is used to:
Answers:
a. identify the medium the user is using to get to your site.
a. identify the vendor used.
a. identify the keyword being used in the ad.
a. differentiate between similar ads.
14. To see the Google AdWords cost data within Google Analytics, you must:
Answers:
a. contact Google Analytics support.
a. check the “Apply Cost Data Checkbox” located under the Analytics tab while in Google AdWords.
a. check the “Apply Cost Data Checkbox” located under the Analytics tab while in Google Analytics.
a. apply for a premium Google Analytics Account.
15. Motion charts allow you to visualize the data in a maximum of ___ dimensions.
Answers:
a. 2
a. 3
a. 4
a. 5
16. Which three of the following variables are required for proper tracking by Analytics when you use campaign tracking?
Answers:
a. utm_campaign
a. utm_medium
a. utm_source
a. utm_term
a. utm_content
17. Navigation summary shows:
Answers:
a. paths visitors use to get to your content.
a. top sources per page.
a. top keywords per page.
a. how visitors found your site.
18. Google analytics does not allow you to:
Answers:
a. identify where your visitors come from.
a. identify most lucrative geographic markets.
a. identify errors for URLs in Sitemap.
a. submit a sitemap.
a. see errors and problems encountered by Google’s crawlers while accessing pages on your site.
19. If you click Visualize on a Keyword report, each dot on the motion chart hence obtained will represent a:
Answers:
a. keyword.
a. date.
a. frequency.
a. user.
20. The Google Analytics tracking code is:
Answers:
a. profile-specific.
a. website-specific.
a. URL-specific.
a. domain-specific.
21. The Google Analytics tracking code snippet needs to be placed in:
Answers:
a. all the pages that need to be tracked.
a. only the index page of the site for which the pages are to be tracked.
a. a separate webpage in a sub domain directory as specified by Google.
22. A funnel represents:
Answers:
a. the path that you expect visitors to take on their way to converting to the goal.
a. the predicted number of visitors over the next one year.
a. the behavior of visitors after they leave your site.
a. the path taken by visitors before entering your site.
23. Unduplicated (counted only once) visitors to your website over the course of a specified time period are counted as:
Answers:
a. Unique pageviews.
a. Unique Visitors.
a. Aggregate page views.
a. Returning Visitors.
24. Consider the following user navigation:
The number of unique page views for the above mentioned user navigation is:
Answers:
a. 1
a. 2
a. 3
a. 4
a. 5
25. A unique pageview:
Answers:
a. is counted when a visitor hits reload after reaching a page.
a. aggregates pageviews that are generated by the same user during the same session.
a. is counted when a user navigates to a different page.
a. is counted when a user exits your site.
26. Filters can not be used to:
Answers:
a. show data for a particular sub domain.
a. identify problems with site metadata.
a. exclude an IP from visitors’ data.
a. build a field from other two fields of tracking data.
27. If a visitor hits reload after reaching a page, it will be counted as:
Answers:
a. an additional pageview.
a. a unique pageview.
a. a bounced visitor.
a. achievement of a goal.
28. If there is a certain subdirectory of your website that you’d like to track,
Answers:
a. you can enter the subdirectory url as the default page for a domain in your “Main Website Profile Information” to only report on traffic to that directory
a. you can create a funnel to only report on traffic to that directory
a. you can create a filter to only report on traffic to that directory
a. it is not feasible to only report on traffic to that directory
29. State whether true or false:
It is possible to sign up for a Google Analytics Account via an existing Google AdWords account.
Answers:
a. True
a. False
30. Event Tracking Trending:
Answers:
a. is not a feature of Google Analytics.
a. can be obtained by content>event tracking>trending
a. can be obtained by visitors>event tracking>trending
a. can be obtained by goals>event tracking>trending
31. For the purpose of Google Analytics reports, a session is considered to have ended if the user has been inactive on the site for:
Answers:
a. 15 minutes.
a. 30 minutes.
a. 24 hours.
a. 30 days.
32. When the Google Analytics Tracking code is installed, tracking begins:
Answers:
a. after 24 hours.
a. after approval by the Google Analytics team.
a. immediately.
a. after you pay the requisite fee.
33. The following question is based on the graphic shown above.
Which visualization does not belong to Google Analytics?
Answers:
a. A
a. B
a. C
a. D
34. Automatic tracking of Google AdWords campaigns in Google Analytics:
Answers:
a. is not possible.
a. can be achieved by enabling “Auto Tagging” in Google AdWords.
a. can be achieved by enabling “Auto Tagging” in Google Analytics.
a. can be achieved by enabling “Automatic Tracking” in Google AdWords.
35. Which of the following statement about Google Analytics is incorrect?
Answers:
a. Google Analytics provides the ability to add any number of users to your account.
a. It is possible to grant varying levels of access to your reports to others.
a. You may grant access to the reports of particular profiles when adding a new user.
a. You can not modify access for existing users.
36. Excluding your own internal traffic in a Google Analytics report can:
Answers:
a. not be achieved.
a. be achieved by using Funnels.
a. be achieved by using Filters.
a. be achieved by using Goals.
37. For the purpose of generating reports, a unique visitor is determined using:
Answers:
a. cookies.
a. password.
a. username.
a. email Id.
38. What is the maximum number of events per visit that can be tracked by Google Analytics?
Answers:
a. 50
a. 500
a. 5000
a. Unlimited
39. Google Analytics logs a page-view:
Answers:
a. each time the page is loaded irrespective of the tracking code execution.
a. each time the tracking code is executed.
a. each time the user logs in any of the Google accounts.
a. each time the user clicks on a Google Ad.
40. A pharmaceutical products website has a product description page with images, price and description of the drug X. The users can click the Order Now button on this page to reach the payment processing page. To track what fraction of the visitors visited the product description page, but not the payment processing page, you should:
Answers:
a. set up a trending report.
a. create a filter.
a. create a custom report.
a. create a funnel.
41. Choose the incorrect statement.
Answers:
a. Advanced segments allow you to choose what types of visits you want to be considered when generating data for a report.
a. Advanced fragmentation is a tool you can use to slice and dice your Analytics data with great precision.
42. A high bounce rate generally indicates:
Answers:
a. the site entrance pages are highly relevant to your visitors.
a. your sites’ pages are well crawled by Google.
a. your site’s pages are highly ranked by Google.
a. the site entrance pages aren’t relevant to your visitors.
43. While creating a new filter in Google Analytics, by which field can a custom filter be specified?
Answers:
a. Filter Name
a. Filter Type
a. Available Website Profiles
a. Selected Website Profiles

Wednesday 15 February 2017

wordpress upwork test Answers 2019

We will collect more Upwork WordPress Test Answers as soon as we get and we will continue to combine with this question and answers.

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. Contributor
  2. Author
  3. Editor
  4. Subscriber
  5. Administrator
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. 1 and 2
  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.