P.S: This is just a study guide. The questions may not appear exactly like this.
• Understand the problem
• Plan and design the logic
• Develop the logical solution
• Desk-check the solution
2- The purpose of analyzing a problem is to determine the goal of solving the problem and the items that are needed to achieve that goal. Programmers refer to items needed to achieve the goal as the _____.
• input(s)
• output(s)
• processing
• data
3- What symbol represents output in a flowchart?
• Rectangle
• Parallelogram
• Diamond
• Rounded rectangle
4- Creating a(n) _____ is considered the most challenging task in the design of a program.
• IPO chart
• desk-check table
• solution algorithm
• None of the above
5- Which of the following is an invalid variable name?
• my_Name
• budget
• JANbalance
• All of the above are valid.
6- What would be the appropriate data type for a variable that is used to represent a loan payment (example data: 255.75)?
• Real (decimal)
• Integer
• String
• Boolean
7- Assume that the variable temp has a data type of string and val has a data type of integer. Which of the following assignment statements is invalid?
• 5 = val
• temp = “red”
• val = val + 2
• All of the above are valid
8- The _____ control structure allows you to perform a set of instructions repeatedly, as long as the answer to a question is true.
• Sequence
• Control
• Selection
• repetition
9- What is the value of x in this expression?
x = 20 / 5 – 1
• 3
• 4
• 5
• 6
10- Which statement about variable names is not true?
• They should be descriptive.
• They must start with a letter
• You may use letters and numbers.
• You may use spaces.