SlideShare uma empresa Scribd logo
1 de 5
CIS115 Final Exam 3 Sets of Answers
    PLEASE DOWNLOAD THE ANSWERS HERE!!!

1. (TCO 1) When creating an IPO Model, program designers generally
determine _____ last. (Points : 4)

2. (TCO 1) What is a data item with a name and a value that remain the
same during the execution of a program? (Points : 4)

3. (TCO 1) What symbol in a flowchart would be used by a developer to
represent the beginning or ending point? (Points : 4)

4. (TCO 1) Set is a process. What data type would you expect the
variable, name, to have? (Points : 4)

5. (TCO 1) You are designing an algorithm that will use a date of
01202009. What data type would you choose for this date
variable? (Points : 4)

6. (TCO 2) What is a tool that developers use to design logic using
English-like statements? (Points : 4)

7. (TCO 2) When a program evaluates mathematical expression, which
of the following operators (or mathematical operations) has the lowest
precedence? (Points : 4)

8. (TCO 2) Which one of the following is not a valid assignment
statement in a program? (Points : 4)

9. (TCO 2) Evaluate (2 * 3) ^ 3. (Points : 4)

10. (TCO 2) Review the partial pseudocode below. What is the correct
math expression to complete the algorithm and determine 50% of a cost?
 Prompt “Enter total cost: “
 Input cost
  Set _____
                  Display “50% of the cost is: “ + total (Points : 4)

11. (TCO 3 & 4) Review the pseudocode below. What will be displayed
when this algorithm executes?
 Set
 If ((x > 10) AND (x < 20)) then
 Display “the IF path executes”
 Else
 Display “the ELSE path executes”
                  EndIf (Points : 4)

12. (TCO 3 & 4) What value gets displayed for the variable X?
 Set
 Set
 Set
 If (B > 15) OR () OR (C <= 15) then
 Set
 Else
 Set
 EndIf
                   Display X (Points : 4)

13. (TCO 3 & 4) In the following pseudocode, what percentage raise
will an employee in Department 5 receive?
 If department < 3 then
 Set
 Else
 If department < 5 then
 Set
 Else
 Set
 EndIf
                  EndIf (Points : 4)

14. (TCO 3 & 4) Which of the selection structures determines whether
the user enters a number between 20 and 45? (Points : 4)

15. (TCO 3 & 4) What value gets displayed for the variable Z?
 Set
 Set
 Set
 If ((balance <> 800) AND (stateCode <> 6) AND (creditCode <> 7)
then
 Set
 Else
 Set
 EndIf
                  Display Z (Points : 4)

1. (TCO 5) The variable used to create an expression controlling the
loop is known as the _____. (Points : 4)

2. (TCO 5) Which of the following statements is false? (Points : 4)

3. (TCO 5) Which loop may not execute the body of the loop at
all? (Points : 4)

4. (TCO 5) Repetition that loops a certain number of times is typically
referred to as _____. (Points : 4)

5. (TCO 5) How many times will the following loop be executed?

6. (TCO 7) Subscripts or indexes of any array are always declared with
what data type? (Points : 4)

7. (TCO 7) What is an array element? (Points : 4)

8. (TCO 7) What is the value of the index used to access the last element
in a zero-based array declared as num(12)? (Points : 4)

9. (TCO 7) When processing/manipulating the elements of an array,
what control structure is used to move through each element within the
array? (Points : 4)

10. (TCO 7) A zero-based array named sales has been declared and
loaded with the values 100, 1100, 3400, 5550, 3000, 22300, and 1200.
What value will be stored in the array element sales(1)? (Points : 4)

11. (TCO 6) A record contains _____. (Points : 4)

12. (TCO 6) What are the three modes of operation on a file? (Points :
4)
13. (TCO 8) Algorithms that allow users to direct the flow of control are
often referred to as _____. (Points : 4)

14. (TCO 9) What type of error occurs when an array subscript’s value
goes beyond the total number of elements in the array? (Points : 4)

15. (TCO 2) Which of the following is not an advantage of modular
design? (Points : 4)

1. (TCO 10) A retail store is having a customer appreciation sale.
Depending on the total dollars purchased, the customer could receive a
discount on his or her total purchases. You are to develop pseudocode
that will obtain the total dollars purchased from the user, determine the
discount percentage, and display the total amount due. When the
purchases are more than $100, the discount is 10%. When the purchases
are $100 or less, the discount is 5%. (Points : 10)

2. (TCO 10) A small business in your neighborhood would like an
application developed that determines the average dollar amount spent
for every three purchases. The user will enter three different purchase
amounts. You need to display the average to your client. Complete the
pseudocode to design your logic. (Points : 10)

3. (TCO 9 & 10) There is a logic error in the following pseudocode.
What statement(s) would you need to add to correct the logic? Be sure
to explain why you are adding the statements.
 Set
 DOWHILE num <= 7
 Set + num
 ENDO
                  Display total (Points : 10)

4. (TCO 4 & 10) Complete the pseudocode by rewriting the algorithm.
The design is determining the correct sales tax depending on the county
identifying code. Counties with a number less than 7 have a 5% sales
tax. The 8–24 codes have a sales tax of 7%. Codes above 24 have a sales
tax of 9%. The code is entered by the user.
 Begin
 Declare Real
salesTax
 Declare _____ countyCode
 _____ “Enter the county
code: “
 _____ countyCode
 If _____ <= 7 then
 Set 
 Else
 If
_____ AND _____ then
 Set

 Else
 _____
 EndIf
 _____
 Display “the sales tax is: “ +
_____
 End (Points : 10)

5. (TCO 5 & 10) Complete the pseudocode by rewriting the algorithm.
The design is to display a 60-second counter. The counter needs to begin
at 1.
 Begin
 Declare _____ count
 Set 
 REPEAT
 Display
“counter: “ + _____
 Set count = _____ + 1
 UNTIL count
_____
 Display “Done!”
 End (Points : 10)

6. (TCO 4 & 10) Complete the pseudocode by rewriting the algorithm.
The colors red, blue, and yellow are known as primary colors because
they cannot be made by mixing other colors. When you mix two primary
colors, you get a secondary color. Mixing yellow and blue gets you
green. Mixing red and blue gets you purple. The algorithm allows the
user to enter two primary colors and then displays the resulting
secondary color.
 Begin
 Declare _____ color1
 Declare _____
color2
 _____ “Enter first primary color: “
 Input _____
 Prompt
“Enter the second primary color: “ 
 Input _____
 If (_____) AND
(_____) then
 Display “secondary color is: purple”
 EndIf
 If
(_____) AND (_____) then
 Display “secondary color
is: green”
 _____ 
 End (Points : 10)

7. (TCO 1, 2, 3, & 4) Describe the difference between a flowchart and
hierarchy chart and explain whether one is more important to develop
than the other. (Points : 10)

8. (TCO 1, 2, 3, 4, & 5) Describe two of the three control structures and
how relational and logical operators are used. (Points : 10)

Mais conteúdo relacionado

Destaque

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming LanguageSimplilearn
 

Destaque (20)

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 

Cis115 final exam 3 sets of answers

  • 1. CIS115 Final Exam 3 Sets of Answers PLEASE DOWNLOAD THE ANSWERS HERE!!! 1. (TCO 1) When creating an IPO Model, program designers generally determine _____ last. (Points : 4) 2. (TCO 1) What is a data item with a name and a value that remain the same during the execution of a program? (Points : 4) 3. (TCO 1) What symbol in a flowchart would be used by a developer to represent the beginning or ending point? (Points : 4) 4. (TCO 1) Set is a process. What data type would you expect the variable, name, to have? (Points : 4) 5. (TCO 1) You are designing an algorithm that will use a date of 01202009. What data type would you choose for this date variable? (Points : 4) 6. (TCO 2) What is a tool that developers use to design logic using English-like statements? (Points : 4) 7. (TCO 2) When a program evaluates mathematical expression, which of the following operators (or mathematical operations) has the lowest precedence? (Points : 4) 8. (TCO 2) Which one of the following is not a valid assignment statement in a program? (Points : 4) 9. (TCO 2) Evaluate (2 * 3) ^ 3. (Points : 4) 10. (TCO 2) Review the partial pseudocode below. What is the correct math expression to complete the algorithm and determine 50% of a cost? Prompt “Enter total cost: “ Input cost Set _____ Display “50% of the cost is: “ + total (Points : 4) 11. (TCO 3 & 4) Review the pseudocode below. What will be displayed
  • 2. when this algorithm executes? Set If ((x > 10) AND (x < 20)) then Display “the IF path executes” Else Display “the ELSE path executes” EndIf (Points : 4) 12. (TCO 3 & 4) What value gets displayed for the variable X? Set Set Set If (B > 15) OR () OR (C <= 15) then Set Else Set EndIf Display X (Points : 4) 13. (TCO 3 & 4) In the following pseudocode, what percentage raise will an employee in Department 5 receive? If department < 3 then Set Else If department < 5 then Set Else Set EndIf EndIf (Points : 4) 14. (TCO 3 & 4) Which of the selection structures determines whether the user enters a number between 20 and 45? (Points : 4) 15. (TCO 3 & 4) What value gets displayed for the variable Z? Set Set Set If ((balance <> 800) AND (stateCode <> 6) AND (creditCode <> 7)
  • 3. then Set Else Set EndIf Display Z (Points : 4) 1. (TCO 5) The variable used to create an expression controlling the loop is known as the _____. (Points : 4) 2. (TCO 5) Which of the following statements is false? (Points : 4) 3. (TCO 5) Which loop may not execute the body of the loop at all? (Points : 4) 4. (TCO 5) Repetition that loops a certain number of times is typically referred to as _____. (Points : 4) 5. (TCO 5) How many times will the following loop be executed? 6. (TCO 7) Subscripts or indexes of any array are always declared with what data type? (Points : 4) 7. (TCO 7) What is an array element? (Points : 4) 8. (TCO 7) What is the value of the index used to access the last element in a zero-based array declared as num(12)? (Points : 4) 9. (TCO 7) When processing/manipulating the elements of an array, what control structure is used to move through each element within the array? (Points : 4) 10. (TCO 7) A zero-based array named sales has been declared and loaded with the values 100, 1100, 3400, 5550, 3000, 22300, and 1200. What value will be stored in the array element sales(1)? (Points : 4) 11. (TCO 6) A record contains _____. (Points : 4) 12. (TCO 6) What are the three modes of operation on a file? (Points : 4)
  • 4. 13. (TCO 8) Algorithms that allow users to direct the flow of control are often referred to as _____. (Points : 4) 14. (TCO 9) What type of error occurs when an array subscript’s value goes beyond the total number of elements in the array? (Points : 4) 15. (TCO 2) Which of the following is not an advantage of modular design? (Points : 4) 1. (TCO 10) A retail store is having a customer appreciation sale. Depending on the total dollars purchased, the customer could receive a discount on his or her total purchases. You are to develop pseudocode that will obtain the total dollars purchased from the user, determine the discount percentage, and display the total amount due. When the purchases are more than $100, the discount is 10%. When the purchases are $100 or less, the discount is 5%. (Points : 10) 2. (TCO 10) A small business in your neighborhood would like an application developed that determines the average dollar amount spent for every three purchases. The user will enter three different purchase amounts. You need to display the average to your client. Complete the pseudocode to design your logic. (Points : 10) 3. (TCO 9 & 10) There is a logic error in the following pseudocode. What statement(s) would you need to add to correct the logic? Be sure to explain why you are adding the statements. Set DOWHILE num <= 7 Set + num ENDO Display total (Points : 10) 4. (TCO 4 & 10) Complete the pseudocode by rewriting the algorithm. The design is determining the correct sales tax depending on the county identifying code. Counties with a number less than 7 have a 5% sales tax. The 8–24 codes have a sales tax of 7%. Codes above 24 have a sales tax of 9%. The code is entered by the user.
 Begin
 Declare Real salesTax
 Declare _____ countyCode
 _____ “Enter the county code: “
 _____ countyCode
 If _____ <= 7 then
 Set 
 Else
 If
  • 5. _____ AND _____ then
 Set 
 Else
 _____
 EndIf
 _____
 Display “the sales tax is: “ + _____
 End (Points : 10) 5. (TCO 5 & 10) Complete the pseudocode by rewriting the algorithm. The design is to display a 60-second counter. The counter needs to begin at 1.
 Begin
 Declare _____ count
 Set 
 REPEAT
 Display “counter: “ + _____
 Set count = _____ + 1
 UNTIL count _____
 Display “Done!”
 End (Points : 10) 6. (TCO 4 & 10) Complete the pseudocode by rewriting the algorithm. The colors red, blue, and yellow are known as primary colors because they cannot be made by mixing other colors. When you mix two primary colors, you get a secondary color. Mixing yellow and blue gets you green. Mixing red and blue gets you purple. The algorithm allows the user to enter two primary colors and then displays the resulting secondary color.
 Begin
 Declare _____ color1
 Declare _____ color2
 _____ “Enter first primary color: “
 Input _____
 Prompt “Enter the second primary color: “ 
 Input _____
 If (_____) AND (_____) then
 Display “secondary color is: purple”
 EndIf
 If (_____) AND (_____) then
 Display “secondary color is: green”
 _____ 
 End (Points : 10) 7. (TCO 1, 2, 3, & 4) Describe the difference between a flowchart and hierarchy chart and explain whether one is more important to develop than the other. (Points : 10) 8. (TCO 1, 2, 3, 4, & 5) Describe two of the three control structures and how relational and logical operators are used. (Points : 10)