Unlock access to all the studying documents.
View Full Document
Indicate whether the statement is true or false.
1. The main reason why high-level langauges were a vast improvement over machine and assembly langagues is because
they allow the programmer to use instructions that more closely resemble the English language.
2. The selection structure is also referred to as an iteration.
3. A compiler translates instructions line by line as the program is running.
4. The repetition structure has a true path and a false path.
5. There is one universal machine language used by computers.
6. Assembly language requires a programmer to enter the program using 1s and 0s.
7. An interpreter translates all of a program’s high-level instructions into machine language before executing the program.
8. Mnemonics are a special number system used by assembly languages.
9. There are two digits in the machine language system.
10. In object-oriented programming, an object can be used in more than one program; often with little to no modification.
Indicate the answer choice that best completes the statement or answers the question.
11. What are program instructions written in 1s and 0s called?
12. The choice of whether to turn left or right at a fork in the road is an example of which type of structure?
13. With whom should a programmer have extensive interaction before converting a solution to a problem into a computer
program?
14. What type of structure is the following set of statements an example of?
if time–of–day is greater than noon
set afternoon access permissions
else
set regular access permissions
end if
15. What type of structure is the following set of statements an example of?
while not end of file
read a line
end while
16. Which of the following translates program instructions line by line as the program is running?
17. C++, Visual Basic, C#, Python, and Java are all examples of what kind of language?
18. C++, Visual Basic, Java, and C# are examples of what type of language that can be used to create both procedure-
oriented and object-oriented programs?
19. What do programs written in assembly language require to convert the assembly language instructions into machine
language?
20. An example of an instruction written in machine language would be ____.
21. What is the name for the basic structure that controls the overall flow of a program’s logic?
22. Which statement is an example of a repetition structure?
if (Ginger is on the bench)
23. Which of the following translates all of a program’s high-level instructions before running the program?
24. What is the output of the following algorithm if AMOUNT is equal to $200?
If AMOUNT is greater than $500
print “That’s too much.”
Else if AMOUNT is greater than $200
print “Still too much”
Else if AMOUNT is greater than $100
print “That’s about right”
Else
print “Amount is too low.”
End if
25. After coding a program, the programmer should perform which task before releasing it to the user?
ask the user to approve the machine code
assemble the program with an interpreter
test the program with sample data
26. Which type of structure do all programs use?
27. Which of the following is an example of an instruction written in assembly language?
28. Which of the following is a language typically used to create procedure-oriented programs?
29. Which structure do you use every time you drive your car and approach an intersection?
30. With what type of program does the programmer focus on structures that represent screen elements such as check
boxes and buttons or structures that represent real world items such as an employee or time card?
31. Which type of structure makes a decision based on one or more conditions?
32. In a computer program, which type of logic structure directs the computer to process the program instructions one
after another, in the order listed in the program?
33. An accountant that is part of a programming team working on a program that requires accounting experience is an
example of which of the following?
34. What are program instructions that utilize mnemonics called?
procedure-oriented language
35. What is another name for a repetition structure?
36. How many different states do the switches in machine language have?
37. Which of the following is a set of step-by-step instructions that accomplish a task?
38. Give at least three examples of a procedure-oriented language, and at least three examples of an object-oriented
language.
39. Is it necessary for the programmer to meet with the user? Why or why not? Explain your answer.
40. In your own words, describe the terms programs, programmers, and programming languages. What are the key
differences?
41. What are the primary differences between procedure-orinted programs and object-oriented programs?
42. What is the role of a subject matter expert on a programming team?
43. What is the primary difference between a compiler and an interpreter?
44. What characterisitics do both computer programmers and software engineers share?
45. What are the three basic logic structures used by computer programs? Describe each.