Describe an algorithm that you could implement

Assignment Help Basic Computer Science
Reference no: EM133005822

JOB APPLICANTS

The following questions and simple projects are designed to allow Sybrin Systems to evaluate your development strengths and coding style.

Time is not restricted on these samples but obviously completing them quickly will be taken into consideration.

You are also not restricted from using books, notes or the Internet. This is an evaluation of your overall capability, which includes your ability to research. Please note, however, that simply copying solutions from reference material will provide us with an inaccurate assessment of your skills and this will jeopardize your work enjoyment should you be accepted.

It is important that you answer each question as fully as possible. If you can provide only a partial answer, please do so as this will help in your evaluation.

Section 1: Logic and Algorithms
This section evaluates your ability to understand and work through a problem logically. Please use flow-diagrams or pseudo-code to answer these questions, do not use any specific language or tool. For example, Question 1 could be answered using a very simple SQL statement, but that is not the purpose of this section

Question 1:
Given an alphabetically sorted list of 500,000 people's names and telephone numbers, describe an algorithm that you could implement that would allow you to find a given person's telephone number in the shortest amount of time.

Question 2:
Given a list containing Province, CustomerName and SalesValue (sorted by Province and CustomerName), describe an algorithm you could use that would output each CustomerName and SalesValue with the total SalesValue per Province.

Question 3:
You have been given a large list of people's names and have been asked to highlight all duplicates where the exact same name appears more than once, as well as highlight any possible duplicates where there may be misspellings of the same name. Describe an algorithm you could use that would produce the required output.

Question 4:
You are required to use a single integer value to store multiple values. Describe how you would achieve this.

Section 2: Programming
This section evaluates your technical capabilities and allows us to determine your knowledge of the tools as well as your style.

Question 1:
Given the table from Fig.1, write an SQL Select statement that would re- organize the results to look like Fig.2

1869_figure.jpg

482_figure1.jpg

Question 2:
Write a program in the language of your choice to input a sentence from the user and then output the sentence in reverse. For example, if the user types in "The Rain in Spain", then the output should be "Spain in Rain The".

Question 3:
If we list all the natural (integer) numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Write a program in the language of your choice to calculate the sum of all the multiples of 3 or 5 below 1000. Include the source code and the calculated value in your answer.

Question 4:
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.
Write a program in the language of your choice to output the 10001st prime number. Include the source code and the value in your answer.

Question 5:
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89,...
Write a program in the language of your choice to consider the terms in the Fibonacci sequence whose values do not exceed four million and find the sum of the even-valued terms. Include the source code and the calculated value in your answer.

Section 3: Database

This section evaluates your technical capabilities and allows us to determine your knowledge of the tools as well as your style.

Please use the below to tables for answering the questions in this section. Table Name: Employee

885_figure2.jpg

1818_figure3.jpg

Question 1:
List which fields are primary keys and foreign keys?

Question 2:
Write a SQL statement that will Output the following result:

1065_figure4.jpg

Question 3:
Write a SQL statement that will Output the following result:

1337_figure5.jpg

Question 4:
Write a SQL statement that will Output the following result:

1079_figure6.jpg

Question 5:
Write a SQL statement that will Output the following result:

725_figure7.jpg

Section 4: Problem Solving Style
The section is designed to evaluate your overall problem-solving approach.

Question 1:
Why are computer monitors and TV sets rectangular?

Question 2:
You have written a program that takes several hours to run. The program sometimes fails, but usually only after a few hours of running and only when running on the production server. What steps would you take to identify the problem?

Question 3:
You have designed a system that accesses and updates a database. When you first install the database and system at the customer, the system runs with good performance. However 3 months later, the Customer phones and says that it is taking a long time to search for information from the database. What would you do to diagnose and correct this problem?

Question 4:
You are working on a project for a very important customer and are at least three weeks from being able to complete the project. Suddenly your customer informs you that due to circumstances beyond their control the system must be implemented in one week. What would you do?

Question 5:
A drawer contains 10 black and 10 brown socks that are all mixed up. What is the fewest number of socks you can take from the drawer without looking and be sure to get 2 of the same colour?

Reference no: EM133005822

Questions Cloud

How much insurance expense should Briggs recognize : Briggs prepares monthly financial statements. How much insurance expense should Briggs recognize for the month of April, 2020
Make carrying amount of lease receivable as of december : Reagan Company used leases as a method of selling products. Make carrying amount of lease receivable as of December 31, 2021
What the standard direct labor rate per hour : Direct labor hours worked (AQ) 36,000 Standard direct labor hours for units manufactured (SQ) 37,500. What the standard direct labor rate per hour
Make amount of interest income should be recognized : Make amount of interest income should be recognized for 2022. On January 1, 2021, Oceanic Company is engaged in leasing equipment.
Describe an algorithm that you could implement : Describe an algorithm that you could implement that would allow you to find a given person's telephone number in the shortest amount of time
What is the total amount to be budgeted : Crane has 4300 pounds of clay mix in beginning inventory and wants to have 4900 pounds in ending inventory. What is the total amount to be budgeted
Discuss the development of social accounting research : Discuss the development of Social and Environmental Accounting research from a critical perspective of accounting. Engage with an accounting theory or theories
Calculate Jack Maranda gross pay : Calculate Jack Maranda's gross pay and net pay assuming they worked 187 hours during the month of June 2019
Journal entries in burt ltd at the start of the agreement : Make the portion of the statement of financial position for the years ending 30 June 2024 and 2025, relating to the leased asset and lease liability

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Calculate the work done in joules

When 0.85592 g of HCl gas reacts with excess zinc, calculate the work done in joules, if the entire reaction is maintained at a pressure of 1.211 atm

  What do constructors do and when are they called

In C++, what do Constructors do and when are they called? What is a default constructor

  In what way does the use of deterministic annealing

In what way does the use of deterministic annealing offer an advantage over maximum-likelihood estimation in such a situation?

  What is shareholder equity

What is shareholder's equity? What is the current ratio?

  Develop personal leadership philosophy

Develop a personal leadership philosophy and support your ideas with material from this course and outside research.

  Make a full class definition for a class named counter

Make a full class definition for a class named Counter, and containing the following members:A data member counter of type int.

  Instantaneous velocity and acceleration

Calculate the instantaneous velocity and acceleration of this moving particle at time t. What is the distance this moving particle has traveled between t=0 and t=/4? (Hint: The particle is traveling on the curve defined by the vector funtion. So th..

  SDLC is to increase successful software implementation

The purpose of project management and the SDLC is to increase successful software implementation. The article titled "IT Project Failure Rates: Facts and Reason

  Organ leader and decision making

WHAT ARE THE RECOMMENDATION FOR IMPROVING BUSINESS - IT COMMUNICATION ?

  What are the price discrimination techniques

What are the price discrimination techniques that a business might use to gain the competitive advantage. i am still not understanding.

  Advantages of deploying closed-circuit television

Evaluate advantages of deploying closed-circuit television (CCTV) in a waiting room.

  What have you learned from this case about product design

Why would you consider a square watermelon an advantage? What have you learned from this case about product design?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd