0% found this document useful (0 votes)
240 views

390 - Computer Programming Concepts (Open) - R - 2020

This document provides a test for a computer programming concepts competition. It consists of 43 multiple choice questions covering topics like programming languages, variables, data types, errors, algorithms, object-oriented programming concepts, and more. Contestants have 60 minutes to complete the test, and failure to follow the rules will result in disqualification.

Uploaded by

avfg gfavd
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
240 views

390 - Computer Programming Concepts (Open) - R - 2020

This document provides a test for a computer programming concepts competition. It consists of 43 multiple choice questions covering topics like programming languages, variables, data types, errors, algorithms, object-oriented programming concepts, and more. Contestants have 60 minutes to complete the test, and failure to follow the rules will result in disqualification.

Uploaded by

avfg gfavd
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

COMPUTER PROGRAMMING CONCEPTS—OPEN - REGIONAL 2020

Page 1 of 8

COMPUTER PROGRAMMING
CONCEPTS
(390)
—OPEN EVENT—

REGIONAL 2020

TOTAL POINTS _____________ (100 points)

Failure to adhere to any of the following rules will result in disqualification:


1. Contestant must hand in this test booklet and all printouts. Failure to do so will result in
disqualification.
2. No equipment, supplies, or materials other than those specified for this event are
allowed in the testing area. No previous BPA tests and/or sample tests or facsimile
(handwritten, photocopied, or keyed) are allowed in the testing area.
3. Electronic devices will be monitored according to ACT standards.

No more than sixty (60) minutes testing time

Property of Business Professionals of America.


May be reproduced only for use in the Business Professionals of America
Workplace Skills Assessment Program competition.
COMPUTER PROGRAMMING CONCEPTS—OPEN - REGIONAL 2020
Page 2 of 8

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.

1. Which programming language can run on multiple platforms?


a. C+
b. Visual Basic
c. C#
d. Java

2. When a programmer mistypes a command, it will result in a __________.


a. Run time error
b. Logic error
c. Critical error
d. Syntax error

3. Which of the following languages is considered a dynamic language?


a. Java
b. Python
c. C#
d. Pascal

4. Which of the following is a computer program?


a. Setting an alarm on a computer.
b. Speeding up your computer.
c. Telling the computer what to do through a special set of instructions.
d. Convincing the computer to never freeze.

5. Which of the following is NOT a web language?


a. Javascript
b. C++
c. HTML
d. PHP

6. What is an Object-Oriented Program? A type of program __________


a. using only numbers.
b. involving data types representing data structures.
c. not in use anymore.
d. involving a structured method of creating programs.

7. What is the difference between a variable and a constant?


a. No difference
b. Variables can be declared only in software languages
c. Constants can be declared ONLY in Java
d. The value of a constant does not change, the value of a variable can change
throughout the program
COMPUTER PROGRAMMING CONCEPTS—OPEN - REGIONAL 2020
Page 3 of 8

8. Division by zero will result in a __________ error.


a. Syntax
b. Logical
c. Critical
d. Run time

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

12. Short circuit evaluation refers to __________


a. Logical
b. Electrical
c. Recursion
d. Errors

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

14. Which of the following is NOT a software language?


a. C++
b. Visual Basic
c. C
d. Excel
COMPUTER PROGRAMMING CONCEPTS—OPEN - REGIONAL 2020
Page 4 of 8

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’

16. Operators that have two operands are called __________.


a. unary operands
b. expressions
c. operators
d. binary operands

17. After the execution of the following pseudo-code, what will be the value of num if the input
value is 4?

integer num = get a value


if (num > 0)
num = num + 10
else
if (num >= 5)
num = num + 15

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

20. What is the value of the following expression: 9 * 2 – 8 > 5 + 2 / 2 ?


a. true
b. false
c. 10
d. 6
COMPUTER PROGRAMMING CONCEPTS—OPEN - REGIONAL 2020
Page 5 of 8

21. How many bytes are in 256 bits?


a. 8
b. 24
c. 32
d. 42

22. Which of the following is true about jagged arrays?


a. They are single dimensional
b. Each array can be a different size
c. Each array must be a different size
d. Each array is the same data type

23. &&, ||, AND, OR are examples of what type of operators?


a. Arithmetic operators
b. Relational operators
c. Special operators
d. Logical operators

24. Which of the following is true?


a. 7 > 8 || 8==8
b. 7>8 && 8==8
c. (8<7) && (8>8)
d. 8<7 && 8>8

25. What is the result of (“3^2”)?


a. 9
b. 6
c. “9”
d. “3^2”

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

29. What defines the characteristics of a set of objects?


a. Class attribute
b. Control structure
c. Function
d. Method

30. A quick way to identify a method is by looking for ______________.


a. A namespace
b. Parentheses
c. The keyword class
d. The { } combination

31. IDE stands for ________________;


a. Independent Developers Execution
b. Integrated Dynamic Environment
c. Inventive Developers Environment
d. Integrated Developers Environment

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

34. The number 3.45 is an example of a(n) _______ type.


a. bool
b. char
c. floating point
d. int

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


a. Logic
b. Run-time
c. Syntax
d. Critical
COMPUTER PROGRAMMING CONCEPTS—OPEN - REGIONAL 2020
Page 7 of 8

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

37. Which of the following is the first step in problem solving?


a. Designing a solution
b. Testing the solution
c. Implementing the solution
d. Understanding the problem

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

39. Desk-checking is also called ________________.


a. Prototyping
b. Alpha checking
c. Hand-tracing
d. Beta checking

40. An overflow condition occurs when ___________.


a. A value is too large for its data type
b. A decimal value is stored into an integer field
c. Too many variables are defined
d. An integer is divided by a floating-point number

41. A post-test loop will always ________________ .


a. Execute the code block at least twice
b. Run until its counter reaches zero
c. Execute the code block at least once
d. Run until its counter becomes a negative value

42. Programming languages do not allow you to divide ___________.


a. Floating-point numbers
b. By zero
c. An integer by a floating-point number
d. By 1

43. A _______ is a single item of information about a person, place or thing.


a. Database
b. Field
c. Key
d. Record
COMPUTER PROGRAMMING CONCEPTS—OPEN - REGIONAL 2020
Page 8 of 8

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

46. Suppose x is 5 and y is 7. What is the value of the following pseudo-code?


(x not equal 7) AND (x less than or equal to y)
a. True
b. False
c. This is an invalid expression in Java.
d. Syntax error

47. Which of the following is NOT a repetition structure in most languages?


a. for
b. switch
c. while
d. recursion

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

TOTAL POINTS _____________ (100 points)

Judge/Graders: Please double check and verify all


scores and answer keys!

Property of Business Professionals of America.


May be reproduced only for use in the Business Professionals of America
Workplace Skills Assessment Program competition.
COMPUTER PROGRAMMING CONCEPTS – OPEN - REGIONAL 2020
ANSWER KEY
Page 2 of 2

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

You might also like