CIS 115 AID teaching effectively/cis115aiddotcom

FOR MORE CLASSES VISIT
www.cis115aid.com

CIS 115 Entire Course: Devry University: All iLabs and Exercises

Chapter 1

CIS 115 AID teaching effectively/cis115aiddotcom

CIS 115 Entire Course: Devry University: All iLabs and Exercises (Devry)
FOR MORE CLASSES VISIT
www.cis115aid.com

CIS 115 Entire Course: Devry University: All iLabs and Exercises
---------------------------------------------------------------------------------------------------------------------------
CIS 115 Final Exam 1 (Devry)
FOR MORE CLASSES VISIT
www.cis115aid.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
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
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
Set
Else
If department
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 _____
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
Display “secondary color is: purple”
EndIf
If (color1 = “yellow”) AND (_______) then
Display “secondary color is: green”
EndIf
End (Points : 10)
7. (TCO 1, 2, 3, & 4) Describe the difference between a flowchart and pseudocode and explain whether one is more important to develop than the other. (Points : 10)
8. (TCO 1, 2, 3, 4, & 5) Compare and contrast sequence control structures and selection control structures. (Points : 10)
---------------------------------------------------------------------------------------------------------------------------
CIS 115 Final Exam 2 (Devry)
FOR MORE CLASSES VISIT
www.cis115aid.com

1. What is the first step in software development?
2. What are named locations in a computer’s memory holding information required by a program?
3. What symbol in a flowchart would be used by a developer to represent the beginning or ending point?
4. ) Set name = “BSCIS” is a process. What data type would you expect the variable, name, to have?
5. (You are using dollar amounts in an algorithm. What data type would you assign?
6. What tool is used by developers to design logic using specific shapes/symbols?
7. When a program evaluates mathematical expression, which of the following operators (or mathematical operations) takes precedence?
8. (Which one of the following is a valid assignment statement in a program?
9. (Evaluate (2 * 3) ^ 3.
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
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
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
Set
Else
If department
Set
Else
Set
EndIf
EndIf (Points : 4)
14. (TCO 3 & 4) Which of the selection structures determine whether the user enters a number outside a range of 5 and 15? (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 statements executed within a loop are known collectively as the ___. (Points : 4)
2. (TCO 5) Which of the following statements is false? (Points : 4)
3. (TCO 5) A DO loop is considered what type of loop? (Points : 4)
4. (TCO 5) What happens when the loop control variable is not changed? (Points : 4)
5. (TCO 5) How many times will the following loop be executed?
Set
DOWHILE num
Display num
Set + 1
ENDO (Points : 4)
6. (TCO 7) What is another name for an array’s 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) Which one of the following correctly declares a zero-based array of four integers? (Points : 4)
9. (TCO 7) When processing 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 file contains ___. (Points : 4)
12. (TCO 6) What is automatically placed at the bottom of a file when the file is closed? (Points : 4)
13. (TCO 8) Menu-driven programs need to give the user the option to ___. (Points : 4)
14. (TCO 9) What type of error occurs when a program will not execute because the rules of the language have been violated? (Points : 4)
15. (TCO 2) The first module is usually considered to be called the ___ module. (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. The loop needs to execute four times. What statement(s) would you need to add or change to correct the logic? Be sure to explain why you are adding or changing the statements.
Set
REPEAT
Set + 1
UNTIL total
EndWhile
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 10 have a 6% sales tax. The 11–25 codes have a sales tax of 7%. Codes above 25 have a sales tax of 8%. The code is entered by the user.
Begin
Declare Real salesTax
Declare ___ countyCode
___ “Enter the county code: “
___ countyCode
If ___
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 countdown.
Begin
Declare ___ count
Set
REPEAT
Display “countdown: “ + ___
Set - 1
UNTIL ___
EndDo
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
---------------------------------------------------------------------------------------------------------------------------
CIS 115 Final Exam 3 Sets of Answers (Devry)
FOR MORE CLASSES VISIT
www.cis115aid.com

CIS 115 Final Exam 3 Sets of Answers
---------------------------------------------------------------------------------------------------------------------------
CIS 115 Final Exam 3 (Devry)
FOR MORE CLASSES VISIT
www.cis115aid.com

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
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
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
Set
Else
If department
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
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 ___
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) 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
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
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
Set
Else
If department
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?

0 Comments

No comments yet!

© 2019 Polarity Technologies
X
X

Invite Next Author

Write a short message (optional)

or via Email

Enter Quibblo Username

X

Report This Content