100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

CSP Unit #6 Test Questions and answers with rated content 2023

Rating
-
Sold
-
Pages
2
Grade
A+
Uploaded on
24-01-2023
Written in
2022/2023

1. Which of the following is true of algorithms? C. Every algorithm can be constructed using combinations of sequencing, selection, and iteration 2. The following algorithm is followed by a person every morning when they get up from bed to go to school. Which concept does this algorithm BEST demonstrate? A. Sequencing 00:02 01:14 3. Which of these algorithms will move the robot along the same path as the algorithm below? D. 4. A town government is designing a new bus system and are deciding where to put the different bus stops. they want to pick the collection of locations that minimizes the distance that anyone needs to walk in order to get to at least one bus stop. What term best defines the kind of problem? B. An optimization problem 5. The algorithm below is used to find the largest element in a list of numbers. By modifying one of the lines in the program it is possible to make the algorithm find the SMALLEST element. Which line would need to be modified and how? B. Line 04 becomes "IF (num < target)" 6. Which of the following algorithms is the same as the flowchart shown below? B. 7. The graph shows the efficiencies of two different algorithms that solve the same problem. Which of the following is most efficient? D. The algorithms have different efficiencies depending on the input size 8. A school is creating class schedules for its students. The students submit their requested courses and then a program will be designed to find the optimal schedule for all students. The school has determined that finding the absolute best schedule cannot be solved in a reasonable time. Instead, they have decided to use a simpler algorithm that produces a good but non-optimal schedule in a more reasonable amount of time. Which principle does this decision best demonstrate? B. Heuristics can be used to solve some problems for which no reasonable algorithm exists 9. Which of the following algorithmic efficiencies would be considered LEAST efficient? D. Exponential 10. Which of the following best describes the existence of undecidable problems? D. An undecidable problem is a problem for which no algorithm can be constructed that always produces a correct output 11. A group of students writes their names and unique student ID numbers on sheets of paper. The sheets are then randomly placed in a stack. Their teacher is looking to see if a specific ID number is included in the stack. Which of the following best describes whether their teacher should use a linear or a binary search? B. The teacher could use either type of search though the binary search is likely to be faster 12. A computer is performing a binary search on the sorted list of 7 numbers below. What is the maximum number of iterations needed to find the item? B. 3 00:02 01:14 13. Which of the following is a benefit of parallel and distributed computing? C. Parallel computing scales more effectively than sequential computing 14. A software company is used to run an algorithm sequentially on one server. As more users start using their app, the company decided to rewrite the program to be parallel. It is now run on four separate servers instead of one. Thanks to the use of a parallel algorithm, the same process that used to take 40 minutes to run now only requires 20 minutes. The company is considering purchasing additional computers to decrease the time the program runs even further. Which of the following best describes the impacts of running the parallel algorithm on an even larger number of computers? C. The algorithm will likely require less time to run though the improvements in efficiency will not be as significant as before. 15. A sequential algorithm is broken into three stages. A parallel version of the algorithm completes the sorting stage in parallel leading to a new set of times. What is the speedup of the parallel solution? C. 2

Show more Read less
Institution
Csp
Course
Csp








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Csp
Course
Csp

Document information

Uploaded on
January 24, 2023
Number of pages
2
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

  • selection
  • and iteration

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
julianah420 Phoenix University
View profile
Follow You need to be logged in order to follow users or courses
Sold
657
Member since
2 year
Number of followers
324
Documents
33977
Last sold
2 days ago
NURSING,TESTBANKS,ASSIGNMENT,AQA AND ALL REVISION MATERIALS

On this page, you find all documents, package deals, and flashcards offered by seller julianah420

4.3

149 reviews

5
101
4
20
3
8
2
5
1
15

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions