100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSIS483 Computer Science Final Exam Liberty University $23.99   Add to cart

Exam (elaborations)

CSIS483 Computer Science Final Exam Liberty University

 1 view  0 purchase
  • Course
  • Institution

Computer Science Final A program that Thomas has written is complete. It has been tested thoroughly, and some outputs were not as expected. Thomas is now going through the code carefully attempting to establish the cause of these errors and change the code to remove them. What is this procedure ...

[Show more]

Preview 3 out of 25  pages

  • December 14, 2023
  • 25
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
  • Unknown
avatar-seller
Computer Science Final




A program that Thomas has written is complete. It has been tested thoroughly, and some

outputs were not as expected. Thomas is now going through the code carefully attempting to establish

the cause of these errors and change the code to remove them. What is this procedure called?


debugging


Understanding of the life cycle of a program is an essential component to becoming an effective

programmer. Which of the following is the best example of how the life cycle of a program should work?


Idea→algorithm→write code→execute code→debug→maintain


Jeremiah is part of a group planning a summer fair at which local businesses can run stalls and

events. He wants to use his programming skills to develop an app for the fair which businesses will be

able to use to communicate information about their activities at the fair with visitors. Which of the

following would be the best first step for Jeremiah to take?


Find out from the businesses and potential visitors what information and format they think

should be used for the app


Consider the following two implementations of the same algorithm, each written in a different

language.


Language A:Calculate the average daily rainfall for the week (averageRainfall) by adding together

the rainfall totals for each of the 7 days of the week (sun, mon, tue, wed, thu, fri, and sat) and dividing

the sum by 7.

, Language B:Take the total amount of rain from each day of the week (sunday, monday, tuesday,

wednesday, thursday, friday and saturday) and then average them together to get the average daily

rainfall for the week (averageRainfall).


Which of the following statements about these two implementations is true?


Language B is ambiguous because the process of "average" is not explained well


The algorithm below simulates rolling a regular 6-sided die twice. Consider the goal of

determining if the sum of the values of the two rolls is odd or even.




Step 1: Using a random number generator, get a value between 1 - 6 inclusively Step 2:

Remember that number Step 3: Repeat steps 1 and 2 Step 4: Add the two remembered numbers

together Step 5: Multiply that sum by 10 Step 6: Divide the result of that multiplication by 2




What conclusions can be made with regard to what we are trying to determine? Select two

answers:


If the last digit of the value found in step 6 is 5, then the sum is odd




If the value found in step 6 is 10, 20, 30, 40, 50 or 60 then the sum is even


Which of the following should be true of any algorithm?


I. The order in which the steps making up the algorithm are followed is logically determined

, II. Following the instructions in the algorithm will always result in the same outputs, regardless

of any inputs


III. The instructions in the algorithm contain all necessary information to be implemented


1,3


Which of the following is the MOST important reason computers use artificial languages over

natural language?


The syntax of artificial languages is explicit and unambiguous


Which of the following best describes high-level computing languages?


They are not very ambiguous


A statistics teacher wishes to create a program on her calculator that generates a random even

integer. The command built in the calculator to generate a random positive integer is RANDOM(a,b). This

command generates a random integer between integers a and b (and including a and b). Which of the

following lines of code will ensure that the random integer generated will be even?


RANDOM(a,b) * 2


Which of the following describes the part of a computer which stores instructions and

information which has been input to the computer?


RAM


Which of the following best describes "compilation" in reference to computer science?


Code in a high-level language is converted to low-level instructions which can be interpreted and

run by the CPU.

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller VEVA2K. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $23.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

78121 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$23.99
  • (0)
  Add to cart