You are on page 1of 10

DO NOT WRITE ON TEST

COMPUTER
PROGRAMMING
CONCEPTS
~OPEN EVENT~
(390)
REGIONAL 2021

TOTAL POINTS ____________100 Points

Test Time: 60 minutes


COMPUTER PROGRAMMING CONCEPTS
REGIONAL 2021
Page 2 of 8

Choose the best answer to the following questions. Mark A if the statement is true. Mark B
if the statement is false.
1. What is the maximum value of the data type byte?
A. 127
B. 65,535
C. 255
D. 0

2. For a module to run, you must call it.


A. True
B. False

3. What do you call a variable that can be recognized from anywhere in the program?
A. local variable
B. global variable
C. popular variable
D. initial variable

4. ________ are words that make up a high-level programming language that cannot be
used as variable names.
A. pseudocode
B. constant
C. syntax
D. keywords

5. A mistake in coding that produces incorrect results during program execution is called
________.
A. Logic error
B. Run-Time error
C. Syntax error
D. Fatal error

6. A sequence of characters used as data in a program is called ________.


A. String literal
B. Integer
C. Double
D. String

7. Coding rules that are followed when developing a program are called ________.
A. syntax
B. pseudocode
C. keywords
D. procedure
COMPUTER PROGRAMMING CONCEPTS
REGIONAL 2021
Page 3 of 8

8. A variable that cannot change is called a(n) _________.


A. local variable
B. global variable
C. constant variable
D. initial variable

9. What is considered the ‘brain’ of a digital system that also handles most of the data
manipulation?
A. RAM
B. SSD
C. CPU
D. ROM

10. What is a specialized word processor for creating human-readable programming


instructions?
A. compiler
B. editor
C. interpreter
D. debugger

11. Declaring is giving a variable a starting value.


A. True
B. False

12. What data type does a void function return?


A. void
B. string
C. integer
D. nothing

13. What is the first step in problem solving?


A. Understand the problem
B. Test the solution
C. Design a solution
D. Implement a solution

14. Which of the following is not an example of a loop?


A. If…Else…
B. Do While
C. For
D. While
COMPUTER PROGRAMMING CONCEPTS
REGIONAL 2021
Page 4 of 8

15. A variable that is only visible in the function or subroutine in which it is declared is
________.
A. hidden
B. temporary
C. local
D. global

16. What is the value of y after the code is executed?


int y = 3
y=y/4

A. 3
B. 4
C. 0
D. 1

17. What does the acronym OOP mean?


A. Object Oriented Programming
B. Overly Opinionated Programming
C. Objectively Optimistic Programming
D. Optional Oriented Programming

18. Flowchart symbol used to represent output.


A. Circle
B. Parallelogram
C. Triangle
D. Square

19. People that use computer programs are called?


A. programmers
B. designers
C. developers
D. end users

20. Variable names may begin with a number.


A. True
B. False

21. A program that never ends is said to be a(n) _____.


A. broken loop
B. infinite loop
C. terminal loop
D. fatal loop
COMPUTER PROGRAMMING CONCEPTS
REGIONAL 2021
Page 5 of 8

22. RAM is what type of storage?


A. primary
B. secondary
C. bulk
D. permanent

23. A HDD is considered what type of storage?


A. primary
B. secondary
C. volatile
D. temporary

24. Peripherals used to display information, in human-readable form, from a computer are
called ________.
A. input devices
B. storage devices
C. output devices
D. programmers

25. A human-written and human-readable version of a program is called ________.


A. final code
B. design code
C. source code
D. example code

26. A type of array with rows and columns, similar to a spreadsheet is called ________.
A. parallel array
B. linear array
C. two-dimensional array
D. one-dimensional array

27. The operators &&, ||, and ! are known as ________.


A. relational operators
B. keywords
C. conditional operators
D. logical operators

28. The operators <, >, and == are known as ________.


A. relational operators
B. keywords
C. conditional operators
D. logical operators
COMPUTER PROGRAMMING CONCEPTS
REGIONAL 2021
Page 6 of 8

29. A byte is made up of how many bits?


A. 255
B. 8
C. 1
D. 256

30. A class cannot have more than one constructor.


A. True
B. False

31. In the expression number++, the ++ is in what mode?


A. pre-test
B. conditional
C. post-test
D. relational

32. ______ enclose groups of statements found in a class or method.


A. forward slash
B. backslash
C. nothing
D. braces

33. A statement that is empty is called a(n) ______.


A. NULL statement
B. EMPTY statement
C. NOTHING statement
D. ZERO statement

34. An IF… statement that appears inside of another IF… statement is known as a(n) _____.
A. nested if statement
B. compound if statement
C. multiple if statement
D. shared if statement

35. A variable that controls the amount of times a loop is executed is called ________.
A. constant variable
B. local variable
C. loop control variable
D. global variable
COMPUTER PROGRAMMING CONCEPTS
REGIONAL 2021
Page 7 of 8

36. The name of a value that can be passed into a called method is called a ________.
A. variable
B. argument
C. conversation
D. level

37. In a “for loop”, the variable may be defined in the initialization expression.
A. True
B. False

38. What is each repetition of a loop known as?


A. repeat
B. pass
C. iteration
D. level

39. When an exception is generated, it is said to have been ______.


A. thrown
B. tossed
C. rolled
D. filled

40. Which shape represents the termination in a flowchart?


A. Rectangle
B. Diamond
C. Parallelogram
D. Oval

41. Which shape represents a decision in a flowchart?


A. Rectangle
B. Diamond
C. Parallelogram
D. Oval
42. What purpose does writing a program serve?
A. to solve a problem
B. to make a game
C. to find a hobby
D. to make friends
43. What language consists of 1’s and 0’s?
A. C++
B. Visual Basic
C. Binary
D. Java
COMPUTER PROGRAMMING CONCEPTS
REGIONAL 2021
Page 8 of 8

44. ________ is known as the first computer programmer.


A. Ada Lovelace
B. Steve Jobs
C. Bill Gates
D. Tim Berners-Lee

45. A field is a single item of information about a person, place or thing.


A. True
B. False

46. When a value is too large for its data type, a(n) ________ condition occurs.
A. fatal
B. exceptional
C. fillable
D. overflow

47. Infinite loops are examples of which type of error?


A. run-time
B. logic
C. syntax
D. exception

48. Commenting helps people who read code understand what the programmer had in mind
when they were writing the program.
A. True
B. False

49. The type of space that can make a program easier to read and understand is known as
________.
A. Grey space
B. Black space
C. White space
D. Clear space

50. The program that translates code in one coding language to another coding language, one
statement at a time, is known as ________.
A. Compiler
B. Translator
C. Interpreter
D. Executor
COMPUTER
PROGRAMMING
CONCEPTS
~OPEN EVENT~
(390)
REGIONAL 2021

TOTAL POINTS ____________100 Points

Test Time: 60 minutes


COMPUTER PROGRAMMING CONCEPTS
REGIONAL KEY 2021
Page 2 of 2

1. A 26. C
2. A 27. D
3. B 28. A
4. D 29. B
5. A 30. B
6. D 31. C
7. A 32. D
8. C 33. A
9. C 34. A
10. B 35. C
11. B 36. B
12. D 37. A
13. A 38. C
14. A 39. A
15. C 40. D
16. C 41. B
17. A 42. A
18. B 43. C
19. D 44. A
20. B 45. A
21. B 46. D
22. A 47. B
23. B 48. A
24. C 49. C
25. C 50. C

You might also like