SlideShare a Scribd company logo
1 of 6
DEVRY CIS 115 Final Exam 1
Check this A+ tutorial guideline at
http://www.uopassignments.com/cis-
115/cis-115-final-exam-1
For more classes visit
http://www.uopassignments.com
1. (TCO 1) What does IPO of IPO Model stand for? (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 an input
or output operation? (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 using dollar amounts in an algorithm. What data type would you assign?
(Points : 4)
6. (TCO 2) What tool is used by developers to design logic using specific shapes/symbols?
(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) Using the assignment statement, + sales, which side of the equal sign is
evaluated first? (Points : 4)
9. (TCO 2) What value will be contained in the variable, x, after the following statement is
executed?
* 5 / 10 + 6 (Points : 4)
10. (TCO 2) Review the partial pseudocode below. What is the correct math expression to
complete the algorithm and total sales for both regions?
Prompt “Enter total sales for region 1: ”
Input region1
Prompt “Enter total sales for region 2: ”
Input region2
Set _____
Display “total sales: ” + 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))="">
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) AND (() OR (C <= 15))="">
Set
Else
Set
EndIf
Display X (Points : 4)
13. (TCO 3 & 4) In the following pseudocode, what raise will an employee in Department 6
receive?
If department < 2="">
Set
Else
If department < 6="">
Set
Else
Set
EndIf
EndIf (Points : 4)
14. (TCO 3 & 4) Which of the selection structures determines if 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) OR (stateCode<> 6) OR (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 control structure is classified as a loop? (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?
Set
DOWHILE x <> 7
Display x
Set + 1
ENDO (Points : 4)
6. (TCO 7) What is a subscript or an index? (Points : 4)
7. (TCO 7) Suppose you have an array named number and two of its elements are
number(1) and number(4). You know that _____. (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 loading/initializing 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, 1200. What value will be stored in the array element,
sales(2)? (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) Many algorithms require direct communication from users. These types of
algorithms are called _____. (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) What type of variable can be accessed by any module within the design?
(Points : 4)
1. (TCO 10) A department store is having a customer appreciation sale. Depending on the
total dollars purchased, the customer could receive a discount on total purchases. You are
to develop pseudocode that will obtain the total dollars purchased from the user,
determine the discount percent, and display the total amount due. When the purchases are
more than $500, the discount is 10%. When the purchases are $500 or less, the discount is
6%. (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<=>
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: “
Input _____________
If _______ <= 7="">
Set
Else
If ______ AND ______ then
______________
Else
Set
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 countdown.
Begin
Declare _______ count
Set
REPEAT
Display “countdown: “ + _______
Set - 1
UNTIL ___________
Display “LIFT OFF!”
End (Points : 10)
6. (TCO 4, 5 & 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. The
colors entered by the user will be validated to ensure they entered a primary color.
Begin
Declare String color1
Declare String color2
Declare String control1
Declare String control2
______ “Enter first primary color: “
Input _______
Prompt “Enter the second primary color: “
Input _________
Set control1 = “n”
DOWHILE control1 = “n”
If (color1 <> “yellow”) ______ (color1 <> “red”) _______ (color1 <> “blue”) then
Prompt “first primary color is invalid”
Input _________
Else
Set control1 = “y”
ENDO
Set control2 = “n”
DOWHILE control2 = “n”
If (color2 <> “yellow”) ______ (color2 <> “red”) _______ (color2 <> “blue”) then
Prompt “second primary color is invalid”
Input color2
Else
Set control2 = “y”
ENDO
If (color1 = “red”) AND (__________) then
Set control1 = “n”
DOWHILE control1 = “n”
If (color1 <> “yellow”) ______ (color1 <> “red”) _______ (color1 <> “blue”) then
Prompt “first primary color is invalid”
Input _________
Else
Set control1 = “y”
ENDO
Set control2 = “n”
DOWHILE control2 = “n”
If (color2 <> “yellow”) ______ (color2 <> “red”) _______ (color2 <> “blue”) then
Prompt “second primary color is invalid”
Input color2
Else
Set control2 = “y”
ENDO
If (color1 = “red”) AND (__________) then

More Related Content

What's hot

What's hot (17)

CIS 115 Exceptional Education - snaptutorial.com
CIS 115   Exceptional Education - snaptutorial.comCIS 115   Exceptional Education - snaptutorial.com
CIS 115 Exceptional Education - snaptutorial.com
 
Cis 115 Extraordinary Success/newtonhelp.com
Cis 115 Extraordinary Success/newtonhelp.com  Cis 115 Extraordinary Success/newtonhelp.com
Cis 115 Extraordinary Success/newtonhelp.com
 
Cis 115 Enhance teaching / snaptutorial.com
Cis 115  Enhance teaching / snaptutorial.comCis 115  Enhance teaching / snaptutorial.com
Cis 115 Enhance teaching / snaptutorial.com
 
Cis 115 Effective Communication / snaptutorial.com
Cis 115  Effective Communication / snaptutorial.comCis 115  Effective Communication / snaptutorial.com
Cis 115 Effective Communication / snaptutorial.com
 
CIS 115 Become Exceptional--cis115.com
CIS 115 Become Exceptional--cis115.comCIS 115 Become Exceptional--cis115.com
CIS 115 Become Exceptional--cis115.com
 
CIS 115 Inspiring Innovation/tutorialrank.com
 CIS 115 Inspiring Innovation/tutorialrank.com CIS 115 Inspiring Innovation/tutorialrank.com
CIS 115 Inspiring Innovation/tutorialrank.com
 
Devry cis 115 final exam 2
Devry cis 115 final exam 2Devry cis 115 final exam 2
Devry cis 115 final exam 2
 
Devry cis 115 final exam 2
Devry cis 115 final exam 2Devry cis 115 final exam 2
Devry cis 115 final exam 2
 
CIS 115 Effective Communication - tutorialrank.com
CIS 115  Effective Communication - tutorialrank.comCIS 115  Effective Communication - tutorialrank.com
CIS 115 Effective Communication - tutorialrank.com
 
Python programming workshop session 2
Python programming workshop session 2Python programming workshop session 2
Python programming workshop session 2
 
Devry cis 115 final exam 3
Devry cis 115 final exam 3Devry cis 115 final exam 3
Devry cis 115 final exam 3
 
Devry cis 115 final exam 3
Devry cis 115 final exam 3Devry cis 115 final exam 3
Devry cis 115 final exam 3
 
Python programming workshop session 3
Python programming workshop session 3Python programming workshop session 3
Python programming workshop session 3
 
Python workshop session 6
Python workshop session 6Python workshop session 6
Python workshop session 6
 
C#.net
C#.netC#.net
C#.net
 
Qno 1 (f)
Qno 1 (f)Qno 1 (f)
Qno 1 (f)
 
Cs practical file
Cs practical fileCs practical file
Cs practical file
 

Similar to Devry cis 115 final exam 1

Spring 2014 CSCI 111 Final exam of 1 61. (2 points) Fl.docx
Spring 2014 CSCI 111 Final exam   of 1 61. (2 points) Fl.docxSpring 2014 CSCI 111 Final exam   of 1 61. (2 points) Fl.docx
Spring 2014 CSCI 111 Final exam of 1 61. (2 points) Fl.docx
rafbolet0
 

Similar to Devry cis 115 final exam 1 (15)

CIS 115 Education in iCounseling ---cis115.com
CIS 115 Education in  iCounseling ---cis115.comCIS 115 Education in  iCounseling ---cis115.com
CIS 115 Education in iCounseling ---cis115.com
 
Devry cis 115 final exam 2
Devry cis 115 final exam 2Devry cis 115 final exam 2
Devry cis 115 final exam 2
 
Devry cis 115 final exam 2
Devry cis 115 final exam 2Devry cis 115 final exam 2
Devry cis 115 final exam 2
 
Bis 345-final-exam-guide-set-1-new
Bis 345-final-exam-guide-set-1-newBis 345-final-exam-guide-set-1-new
Bis 345-final-exam-guide-set-1-new
 
Bis 311 final examination answers
Bis 311 final examination answersBis 311 final examination answers
Bis 311 final examination answers
 
Spring 2014 CSCI 111 Final exam of 1 61. (2 points) Fl.docx
Spring 2014 CSCI 111 Final exam   of 1 61. (2 points) Fl.docxSpring 2014 CSCI 111 Final exam   of 1 61. (2 points) Fl.docx
Spring 2014 CSCI 111 Final exam of 1 61. (2 points) Fl.docx
 
Ecet 330 final exam new 2016
Ecet 330 final exam new 2016Ecet 330 final exam new 2016
Ecet 330 final exam new 2016
 
Ecet 330 final exam new 2016
Ecet 330 final exam new 2016Ecet 330 final exam new 2016
Ecet 330 final exam new 2016
 
Ecet 330 final exam new 2016
Ecet 330 final exam new 2016Ecet 330 final exam new 2016
Ecet 330 final exam new 2016
 
Cis 336 final exam 2
Cis 336 final exam 2Cis 336 final exam 2
Cis 336 final exam 2
 
Cis 336 final exam 2
Cis 336 final exam 2Cis 336 final exam 2
Cis 336 final exam 2
 
Bis 345-final-exam-guide-set-2-new
Bis 345-final-exam-guide-set-2-newBis 345-final-exam-guide-set-2-new
Bis 345-final-exam-guide-set-2-new
 
Cis 336 final exam 1
Cis 336 final exam 1Cis 336 final exam 1
Cis 336 final exam 1
 
CIS 336 Final Exam 2 (Devry)
CIS 336 Final Exam 2 (Devry) CIS 336 Final Exam 2 (Devry)
CIS 336 Final Exam 2 (Devry)
 
CIS 336 Final Exam 2 (Devry)s
CIS 336 Final Exam 2 (Devry)sCIS 336 Final Exam 2 (Devry)s
CIS 336 Final Exam 2 (Devry)s
 

More from eyavagal

More from eyavagal (20)

Hcr 230 week 3 check point working with medicaid
Hcr 230 week 3 check point working with medicaidHcr 230 week 3 check point working with medicaid
Hcr 230 week 3 check point working with medicaid
 
Hcr 230 complete class
Hcr 230 complete classHcr 230 complete class
Hcr 230 complete class
 
Hcr 220 complete class
Hcr 220 complete classHcr 220 complete class
Hcr 220 complete class
 
Uop mpa 573 week 5 city council advisement part iii recent
Uop mpa 573 week 5 city council advisement part iii recentUop mpa 573 week 5 city council advisement part iii recent
Uop mpa 573 week 5 city council advisement part iii recent
 
Uop mpa 573 week 2 policy presentation (forecasting) recent
Uop mpa 573 week 2 policy presentation (forecasting) recentUop mpa 573 week 2 policy presentation (forecasting) recent
Uop mpa 573 week 2 policy presentation (forecasting) recent
 
Mktg 522 week 8 final exam guide
Mktg 522 week 8 final exam guideMktg 522 week 8 final exam guide
Mktg 522 week 8 final exam guide
 
Strayer mis 535 week 6 course project proposal paper
Strayer mis 535 week 6 course project proposal paperStrayer mis 535 week 6 course project proposal paper
Strayer mis 535 week 6 course project proposal paper
 
Strayer mis 535 week 6 course project proposal
Strayer mis 535 week 6 course project proposalStrayer mis 535 week 6 course project proposal
Strayer mis 535 week 6 course project proposal
 
Strayer mis 535 week 6 course project proposal paper (certify for employees)
Strayer mis 535 week 6 course project proposal paper (certify for employees)Strayer mis 535 week 6 course project proposal paper (certify for employees)
Strayer mis 535 week 6 course project proposal paper (certify for employees)
 
Ash ece 405 week 3 assignment 1 e
Ash ece 405 week 3 assignment 1 eAsh ece 405 week 3 assignment 1 e
Ash ece 405 week 3 assignment 1 e
 
Ash ece 353 week 5 discussions 1 cognitive development and learning new
Ash ece 353 week 5 discussions 1 cognitive development and learning newAsh ece 353 week 5 discussions 1 cognitive development and learning new
Ash ece 353 week 5 discussions 1 cognitive development and learning new
 
Ash ece 353 week 4 discussions 2 relationships between cognitive
Ash ece 353 week 4 discussions 2 relationships between cognitiveAsh ece 353 week 4 discussions 2 relationships between cognitive
Ash ece 353 week 4 discussions 2 relationships between cognitive
 
Msu ece 345 week 5 final paper new
Msu ece 345 week 5 final paper newMsu ece 345 week 5 final paper new
Msu ece 345 week 5 final paper new
 
Ese 633 week 5 dq 1 discussion on co teaching
Ese 633 week 5 dq 1 discussion on co teachingEse 633 week 5 dq 1 discussion on co teaching
Ese 633 week 5 dq 1 discussion on co teaching
 
Ese 633 week 5 assignment collaborative problem solving
Ese 633 week 5 assignment collaborative problem solvingEse 633 week 5 assignment collaborative problem solving
Ese 633 week 5 assignment collaborative problem solving
 
Ese 633 week 4 dq 1 transition planning
Ese 633 week 4 dq 1 transition planningEse 633 week 4 dq 1 transition planning
Ese 633 week 4 dq 1 transition planning
 
Ese 633 week 4 assignment helping parents promote independence
Ese 633 week 4 assignment helping parents promote independenceEse 633 week 4 assignment helping parents promote independence
Ese 633 week 4 assignment helping parents promote independence
 
Ese 633 week 3 dq 2 collaborative consultation model
Ese 633 week 3 dq 2 collaborative consultation modelEse 633 week 3 dq 2 collaborative consultation model
Ese 633 week 3 dq 2 collaborative consultation model
 
Ese 633 week 2 assignment developing curriculum design
Ese 633 week 2 assignment developing curriculum designEse 633 week 2 assignment developing curriculum design
Ese 633 week 2 assignment developing curriculum design
 
Ese 633 week 1 assignment assessing conflict styles
Ese 633 week 1 assignment assessing conflict stylesEse 633 week 1 assignment assessing conflict styles
Ese 633 week 1 assignment assessing conflict styles
 

Recently uploaded

Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 

Recently uploaded (20)

How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Our Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdfOur Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdf
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 

Devry cis 115 final exam 1

  • 1. DEVRY CIS 115 Final Exam 1 Check this A+ tutorial guideline at http://www.uopassignments.com/cis- 115/cis-115-final-exam-1 For more classes visit http://www.uopassignments.com 1. (TCO 1) What does IPO of IPO Model stand for? (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 an input or output operation? (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 using dollar amounts in an algorithm. What data type would you assign? (Points : 4) 6. (TCO 2) What tool is used by developers to design logic using specific shapes/symbols? (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) Using the assignment statement, + sales, which side of the equal sign is evaluated first? (Points : 4) 9. (TCO 2) What value will be contained in the variable, x, after the following statement is executed? * 5 / 10 + 6 (Points : 4) 10. (TCO 2) Review the partial pseudocode below. What is the correct math expression to complete the algorithm and total sales for both regions? Prompt “Enter total sales for region 1: ” Input region1 Prompt “Enter total sales for region 2: ” Input region2
  • 2. Set _____ Display “total sales: ” + 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))=""> 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) AND (() OR (C <= 15))=""> Set Else Set EndIf Display X (Points : 4) 13. (TCO 3 & 4) In the following pseudocode, what raise will an employee in Department 6 receive? If department < 2=""> Set Else If department < 6=""> Set Else Set EndIf EndIf (Points : 4) 14. (TCO 3 & 4) Which of the selection structures determines if 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) OR (stateCode<> 6) OR (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. 3. (TCO 5) Which control structure is classified as a loop? (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? Set DOWHILE x <> 7 Display x Set + 1 ENDO (Points : 4) 6. (TCO 7) What is a subscript or an index? (Points : 4) 7. (TCO 7) Suppose you have an array named number and two of its elements are number(1) and number(4). You know that _____. (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 loading/initializing 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, 1200. What value will be stored in the array element, sales(2)? (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) Many algorithms require direct communication from users. These types of algorithms are called _____. (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) What type of variable can be accessed by any module within the design? (Points : 4) 1. (TCO 10) A department store is having a customer appreciation sale. Depending on the total dollars purchased, the customer could receive a discount on total purchases. You are to develop pseudocode that will obtain the total dollars purchased from the user, determine the discount percent, and display the total amount due. When the purchases are more than $500, the discount is 10%. When the purchases are $500 or less, the discount is 6%. (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<=> Set + num ENDO Display total (Points : 10)
  • 4. 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: “ Input _____________ If _______ <= 7=""> Set Else If ______ AND ______ then ______________ Else Set 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 countdown. Begin Declare _______ count Set REPEAT Display “countdown: “ + _______ Set - 1 UNTIL ___________ Display “LIFT OFF!” End (Points : 10) 6. (TCO 4, 5 & 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. The colors entered by the user will be validated to ensure they entered a primary color. Begin Declare String color1 Declare String color2 Declare String control1 Declare String control2 ______ “Enter first primary color: “ Input _______ Prompt “Enter the second primary color: “ Input _________
  • 5. Set control1 = “n” DOWHILE control1 = “n” If (color1 <> “yellow”) ______ (color1 <> “red”) _______ (color1 <> “blue”) then Prompt “first primary color is invalid” Input _________ Else Set control1 = “y” ENDO Set control2 = “n” DOWHILE control2 = “n” If (color2 <> “yellow”) ______ (color2 <> “red”) _______ (color2 <> “blue”) then Prompt “second primary color is invalid” Input color2 Else Set control2 = “y” ENDO If (color1 = “red”) AND (__________) then
  • 6. Set control1 = “n” DOWHILE control1 = “n” If (color1 <> “yellow”) ______ (color1 <> “red”) _______ (color1 <> “blue”) then Prompt “first primary color is invalid” Input _________ Else Set control1 = “y” ENDO Set control2 = “n” DOWHILE control2 = “n” If (color2 <> “yellow”) ______ (color2 <> “red”) _______ (color2 <> “blue”) then Prompt “second primary color is invalid” Input color2 Else Set control2 = “y” ENDO If (color1 = “red”) AND (__________) then