390 - Computer Programming Concepts (Open) - R - 2020
390 - Computer Programming Concepts (Open) - R - 2020
Page 1 of 8
COMPUTER PROGRAMMING
CONCEPTS
(390)
—OPEN EVENT—
REGIONAL 2020
Choose the best answer to the following questions. Mark answers clearly if using a scantron
form. Mark A if the statement is true. Mark B is the statement is false.
9. What is the software called that translates all the lines of code in a program into machine
one line at a time?
a. Compiler
b. Converter
c. Interpreter
d. Transliterator
10. Which generation of languages allows for the use of words and commands?
a. 2nd generation
b. 3rd generation
c. 1st generation
d. 5th generation
11. If you need to execute some code based on a certain condition, which of the following
would you use?
a. Variable
b. Conditional
c. Compiler
d. Loop
13. Ask the user for a number, ask the user for another number, multiply the 2 together, print
result …. What do you call this set of instructions?
a. a class
b. PHP
c. an algorithm
d. a compiler
15. Which of the following puts a string containing the word green into the variable color?
a. color is green
b. ‘color’ = green
c. color = ‘green’
d. green = ‘color’
17. After the execution of the following pseudo-code, what will be the value of num if the input
value is 4?
a. 4
b. 5
c. 14
d. 15
18. What provides OO programs with easy extensibility and can help simplify program control
structures?
a. Abstraction
b. Encapsulation
c. Inheritance
d. Polymorphism
19. In a switch statement block, the ________ case executes if none of the other cases were true.
a. else
b. then
c. default
d. loop
26. What are sequences of characters that make up a word or sentence called?
a. Variable
b. String
c. Random characters
d. Constant
27. Which generation of languages, such as COBOL and Fortran, were used extensively for
business and scientific applications?
a. First
b. Second
c. Third
d. Fourth
COMPUTER PROGRAMMING CONCEPTS—OPEN - REGIONAL 2020
Page 6 of 8
28. In a ____________ program, the user sees a screen and can typically make selections using
a mouse or other pointing device.
a. Command-line
b. Reusable
c. Modular
d. GUI
32. Logic errors are more difficult to find than syntax errors because ____________.
a. Logic errors are violations in the rules of the language
b. The program may compile and produce incorrect results
c. The program can never run if it has a logic error
d. The program will never stop if it has a logic error
33. Which statement subtracts 100 from the original value of an answer?
a. answer = 100-
b. answer =- 100
c. 100 -= answer
d. answer -= 100
36. What is the unique name of a Web document that a browser needs to find and display?
a. Website
b. HTML
c. URL
d. WWW
38. What type of space can make a program easier to read and understand?
a. Namespace
b. White space
c. Web space
d. Black space
44. Which problem domain might contain the objects (orders, specials, supplier contacts)?
a. Building a home
b. Writing a paper
c. Managing a restaurant
d. Packing a suitcase
45. Which type of build message occurs when you declare a variable but don’t use it in your
program?
a. Syntax error message
b. Compiler error message
c. Warning message
d. Logic error message
48. A(n) _____ is a collection of one or more program statements combined to perform some
action.
a. Class
b. Field
c. Method
d. Object
49. What is the process where the compiler temporarily changes a variable’s data type to
perform a calculation?
a. Advancement
b. Typecast
c. Promotion
d. Adaption
50. When a loop control variable is NOT altered during loop execution, a(n) ______loop may
result.
a. Infinite
b. Broken
c. Enlarged
d. Default
COMPUTER PROGRAMMING CONCEPTS – OPEN - REGIONAL 2020
ANSWER KEY
Page 1 of 2
COMPUTER PROGRAMMING
CONCEPTS
(390)
—OPEN EVENT—
REGIONAL 2020
1. D 26. B
2. D 27. C
3. B 28. D
4. C 29. A
5. B 30. B
6. B 31. D
7. D 32. B
8. D 33. D
9. C 34. C
10. B 35. A
11. B 36. C
12. A 37. D
13. C 38. B
14. D 39. C
15. C 40. A
16. D 41. C
17. C 42. B
18. D 43. B
19. C 44. C
20. A 45. C
21. C 46. A
22. B 47. B
23. D 48. C
24. A 49. C
25. D 50. A