Study Guide

Field 081: Computer Science
Sample Selected-Response Questions

Expand All | Collapse All

General Test Directions

This test consists of two sections: 1) a section with selected-response questions and 2) a constructed-response section.

Each question in the first section is a selected-response question with four answer choices. Read each question and answer choice carefully and choose the ONE best answer.

Try to answer all questions. Even if you are unsure of an answer, it is better to guess than not to answer a question at all. You will NOT be penalized for guessing.

The second section of this test consists of one constructed-response assignment. You will be asked to provide a written response to the assignment. Directions for completing your written response to the constructed-response assignment appear immediately before the assignment.

You may NOT use any type of calculator or reference materials during the test session.

Sample Selected-Response Questions

Competency 0002
Understand the characteristics and uses of productivity software.

1. A teacher is using layers to create an image file with a graphic design program. Using layers to create the image provides the teacher with the ability to:

  1. import the image file into another graphics program.
  2. save the layers in a file format that can be used in a Web page.
  3. create images that use a greater number of colors.
  4. edit the layers independently of each other.

Competency 0003
Understand basic terminology related to computer architecture and characteristics of computer architecture.

2. Immediately after an arithmetic calculation is performed, the result of the calculation is stored in:

  1. the arithmetic logic unit.
  2. a data bus.
  3. the main memory.
  4. a register.

Competency 0004
Understand characteristics and functions of operating systems.

3. In a computer system, virtual memory is a technique that:

  1. compresses files so that more memory is available to a running application.
  2. allows available hard drive space to be used to supplement a computer's memory.
  3. permits unused read-only memory to be used by an application for temporary data storage.
  4. provides the ability to move information in and out of memory more quickly.

Competency 0005
Understand types and characteristics of computer networks.

4. Which of the following is a characteristic of a client-server network?

  1. A host computer transfers data to client computers by means of a token of code.
  2. A host computer can be used only for tasks that cannot be performed by a client computer.
  3. Application files installed on a client computer can access data files stored on a host computer.
  4. All computers on a network can perform the duties of both a host and a client.

Competency 0007
Understand principles and procedures for designing a program.

5. Which of the following is a defining characteristic of an overloaded method?

  1. A method takes more than one parameter.
  2. A method returns a value of a specific type.
  3. Methods with the same name take different numbers or types of parameters.
  4. Two or more methods are defined and implemented within the same class.

Competency 0008
Understand concepts and principles of modularization and data encapsulation in computer programming.

6. Which of the following actions best illustrates the principle of abstraction in object-oriented programming?

  1. assigning a value to a newly created object
  2. identifying the entities in a process with which a program interacts
  3. identifying the flow of control in a real-world system
  4. passing parameters from a method to the caller

Competency 0010
Understand principles and procedures for program development and implementation.

7. Which of the following is the best example of how UML is commonly used in computer programming?

  1. visualizing the components of an object-oriented software system
  2. creating a template for a graphical user interface
  3. checking for invalid input during program execution
  4. writing pseudocode specific to object-oriented languages

Competency 0011
Understand types and characteristics of programming languages.

8. A significant difference between compilers and interpreters is that a compiler:

  1. generates error messages.
  2. creates an executable file.
  3. performs lexical analysis on the code.
  4. compares words in the program to a list of valid commands.

Competency 0012
Understand types and characteristics of statements, operators, and control structures in high-level languages.

9. Use the code segment below to answer the question that follows.

switch (expression)

case (expA)
graphic x = 1
graphicbreak;

case (expB)
graphicx = 2
graphicbreak;

case (expC)
graphicx = 3
graphicbreak;

default: x = 0

Which of the following sets of statements is equivalent to the code segment shown above?

  1. If (expA) then x = 1 endif
    If (expB) then x = 2 endif
    If (expC) then x = 3 endif
    x = 0


  2. If (expA) then x = 1 else x = 0 endif
    If (expB) then x = 2 else x = 0 endif
    If (expC) then x = 3 else x = 0 endif


  3. If (expA) then x = 1 else
    graphic If (expB) then x = 2 else
    graphic If (expC) then x = 3
    graphicendif
    graphicendif
    endif
    else x = 0


  4. If (expA) then x = 1 else
    graphicIf (expB) then x = 2 else
    graphicIf (expC) then x = 3 else x = 0
    graphicendif
    graphicendif
    endif

Competency 0013
Understand characteristics and applications of data types, structures, and abstraction mechanisms in high-level languages.

10. A programmer is writing an algorithm that needs to repeatedly access and remove the smallest number in a collection of numbers. Which of the following data structures will be most appropriate for the programmer to use to store the collection?

  1. heap
  2. stack
  3. linked list
  4. array