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

CSIS483 Computer Science Final Exam Liberty University

Rating
-
Sold
-
Pages
25
Grade
A+
Uploaded on
14-12-2023
Written in
2023/2024

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

Show more Read less
Institution
Module










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

Written for

Institution
Study
Unknown
Module

Document information

Uploaded on
December 14, 2023
Number of pages
25
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

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.

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.
VEVA2K Self
Follow You need to be logged in order to follow users or courses
Sold
2836
Member since
5 year
Number of followers
2413
Documents
4157
Last sold
1 week ago
Affordable, Up-to-date-Quality Nursing Papers

Here, you'll find a wide range of Nursing Papers at an affordable rate. Every student deserves a friendly environment for study. Always message me for any concern and help. My email is

4.1

684 reviews

5
376
4
127
3
101
2
24
1
56

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 exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions