You are designing an algorithm that will store a date as


Question 1.1.  What is the first step in software development?
Develop the logical solution
Understand the problem
Plan/design the logic
Translate into code

Question 2.2. Which variable name is invalid?
tax_rate
StudentName
2012budget
None of the above

Question 3.3. Which symbol in a flowchart would be used by a developer to represent a calculation (process)?
Rectangle
Diamond
Parallelogram
Lozenge

Question 4.4. You are designing an algorithm that will store a date as 01202009. Which data type would you choose for the date variable?
Real
Integer
String
Any of the above

Question 5.5. The three basic control structures used in programming are _____.
analyze, design, and test
sequence, selection, and repetition
algorithm, flowchart, and pseudocode
name, data type, and value

Question 6.6. When a program evaluates mathematical expressions, which of the following operators (or mathematical operations) has the highest precedence?
Subtraction
Addition
Parentheses
All have equal precedence.

Question 7.7. Which one of the following is not a valid assignment statement in a program?
total = total + 1
counter = counter + 10
tax = amount * .10
None of the above

Question 8.8. Which value will be contained in the variable x after the following statement is executed?
x = 10 + 8 / 2 * 3
3
45
22
27

Question 9.9. Which statement indicates that the variable rep is being used as an accumulator?
rep = 0
rep = rep + 1
rep = rep + x
rep = rep + 10

Question 10.10.  For maximum efficiency, which question should be asked first when working with an Or decision?
The one less likely to be true
The one most likely to be true
The one that involves fewer comparisons
There is not enough information to determine the answer.

Question 11.11.Review the partial pseudocode below. Which is the correct math expression to complete the algorithm and calculate the average?
Prompt "Enter first score: "
Input score1
Prompt "Enter second score: "
Input score2
Prompt "Enter third score: "
Input score3
Set _____
Display "Your average is " + avgScore
avgScore = (score1 + score2 + score3) / 2
avgScore = score1 + score2 + score3 / 3
avgScore = (score1 + score2 + score3) / 3
score1 + score2 + score3 / 3 = avgScore

Question 12.12. Review the pseudocode below. Which will be displayed when this algorithm executes?
Set x = 11
If ((x > 10) AND (x < 20)) then
Display "the IF path executes"
Else
Display "the ELSE path executes"
EndIf
the IF path executes
the ELSE path executes
10
(x > 10) AND (x < 20)

Question 13.13. Which value gets displayed for the variable X?
Set A = 6
Set B = 10
Set C = 20
If (B > 15) AND ((A = 5) OR (C <= 15)) then
Set X = 1
Else
Set X = 0
EndIf
Display X
(Points : 5)
5
0
10
1

Solution Preview :

Prepared by a verified Expert
Accounting Basics: You are designing an algorithm that will store a date as
Reference No:- TGS01237514

Now Priced at $15 (50% Discount)

Recommended (92%)

Rated (4.4/5)