wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Science Quiz

Total questions: 94

Worksheet time: 47mins

Name
Class
Date
1.

A general term that refers to information used by a computer program, such as words and values.

a)

procedure

b)

data structure

c)

data type

d)

data

e)

method

2.

The stage in the software system life cycle that determines the structure of the software project once the overall goals of the project have been determined.

a)

Design

b)

Analysis

c)

Testing

d)

Implementation (Coding)

e)

Maintenance

3.

A method of class F that was inherited from class G is redefined.

a)

Encapsulation

b)

Composition

c)

Polymorphism - polymorphic object

d)

Polymorphism - overloading

e)

Polymorphism - overriding

4.

The idea that the program development process within the software system life cycle can take several iterations, and is rarely just a "straight down the hill" process from start to finish.

a)

Object oriented

b)

Procedural

c)

Cyclical

d)

Robust

5.

Identify the data type for this value: "G"

a)

string

b)

char

c)

int, long, byte or short

d)

float or double

e)

boolean

6.

Identify the data type for this value: true

a)

string

b)

char

c)

int, long, byte or short

d)

float or double

e)

boolean

7.

Identify the data type for this value: -45

a)

boolean

b)

float or double

c)

char

d)

int, long, byte or short

e)

string

8.

Development process that combines features of other development models into a cyclical process, including several phases, one of which is risk analysis.

a)

Agile

b)

Incremental

c)

Waterfall

d)

Spiral

9.

Choose the statement that best classifies the identifier creation guideline shown. Contains only alphanumeric characters, or the underscore character

a)

Rule

b)

Convention

c)

Good idea

10.

A parent class X has child classes Y and Z, and can reference objects of either class.

a)

Polymorphism - overriding

b)

Abstraction

c)

Polymorphism - overloading

d)

Encapsulation

e)

Polymorphism - polymorphic object

11.

A certain method of class A, which is a descendant of class B, is redefined in a more special way.

a)

Inheritance

b)

Encapsulation

c)

Composition

d)

Polymorphism

e)

Abstraction

12.

Choose the statement below that best classifies the following identifier example: float

a)

Invalid identifier - Java reserved word

b)

Invalid - contains invalid symbols

c)

Invalid identifier - contains spaces

d)

Invalid - does not start with a letter or underscore

e)

Valid

13.

The term that means "many forms", and which indicates a key element of object oriented programming, where methods can be overloaded or overridden as needed and desired.

a)

Composition

b)

Inheritance

c)

Polymorphism

d)

Encapsulation

e)

Abstraction

14.

An object of class A contains instances of previously defined classes B and C.

a)

Polymorphism

b)

Abstraction

c)

Encapsulation

d)

Composition

e)

Inheritance

15.

Choose the statement that best classifies the identifier creation guideline shown. Constants in all upper case letters

a)

Convention

b)

Rule

c)

Good idea

16.

One of the original high level languages created by John Backus to make programming easier for math and science applications.

a)

Pascal

b)

Python

c)

COBOL

d)

C++

e)

Fortran

17.

This module in some programming languages typically starts with an uppercase letter.

a)

Constant

b)

Precondition

c)

Method

d)

Class

e)

Postcondition

18.

The fundamental type of data in a computer, often represented as zero and 1, false and true, off and on, etc.

a)

Byte

b)

AI

c)

DOS

d)

Bit

19.

Class T has several methods all named the same, but work in different ways.

a)

Polymorphism - overloading

b)

Composition

c)

Polymorphism - polymorphic object

d)

Polymorphism - overriding

e)

Encapsulation

20.

The relationship between one entity and another where entity A "is a" type of entity B.

a)

Encapsulation

b)

Composition

c)

Polymorphism

d)

OOP

e)

Inheritance

21.

A concept within the design of an entity where it is partially made up of other, predefined entities.

a)

Composition

b)

Encapsulation

c)

Abstraction

d)

OOP

e)

Inheritance

22.

Choose the statement that best classifies the identifier creation guideline shown. Method names start with a lower case letter.

a)

Convention

b)

Good idea

c)

Rule

23.

A programming entity instantiated during program execution that encapsulates data and related methods into one bundle.

a)

method

b)

procedure

c)

object

d)

class

e)

function

24.

The stage in the software system life cycle that writes the program using a suitable programming language.

a)

Analysis

b)

Design

c)

Maintenance

d)

Testing

e)

Implementation (Coding)

25.

A concept that indicates how an entity contains processes that work, but how they work internally is hidden from the user of that entity.

a)

Encapsulation

b)

Polymorphism

c)

Inheritance

d)

Composition

e)

Abstraction

26.

Identify the data type for this value: " " (single blank space)

a)

char

b)

int, long, byte or short

c)

string

d)

float or double

e)

boolean

27.

A field of study which studies how to create computers and computer software that are capable of independent thinking.

a)

Assembly Language

b)

Machine Language

c)

Artificial Intelligence

d)

Pseudocode

e)

Architecture

28.

Development process that achieves production in small steps, where design, implementation, and testing occur during each step.

a)

Waterfall

b)

Incremental

c)

Agile

d)

Spiral

29.

Choose the statement below that best classifies the following identifier example: name

a)

Invalid - contains invalid symbols

b)

Invalid identifier - Java reserved word

c)

Valid

d)

Invalid - does not start with a letter or underscore

e)

Invalid identifier - contains spaces

30.

The definition of an object in OOP, describing the type of data owned by the object, as well as methods that act on that data.

a)

function

b)

class

c)

method

d)

object

e)

procedure

31.

A concept that indicates how data and methods that act on the data are all incorporated into a single entity.

a)

OOP

b)

Encapsulation

c)

Polymorphism

d)

Inheritance

e)

Abstraction

32.

A structured comment block that describes what type of input a process expects to receive.

a)

Method

b)

Class

c)

Precondition

d)

Postcondition

e)

Constant

33.

A language easily understood and executed by a computer, like machine language, or bytecode.

a)

High Level

b)

Assembly

c)

Low Level

d)

Pseudocode

34.

This technique is used in some programming languages to provide input protection in order to make the program more robust.

a)

Style conventions

b)

Try catch block

c)

CamelCase

d)

Pseudocode

35.

A diagram used to represent the overall design of an object-oriented class design.

a)

Bottom up

b)

Flowchart

c)

UML

d)

Top down

e)

Stepwise refinement

36.

A diagram that uses geometric shapes connected by arrows to indicate the step-by-step process of a project.

a)

Stepwise refinement

b)

Flowchart

c)

Top down

d)

UML

e)

Bottom up

37.

An object of class A "is a" descendant of class B.

a)

Inheritance

b)

Polymorphism

c)

Composition

d)

Encapsulation

e)

Abstraction

38.

The stage in the software system life cycle that checks the program for reliability, validity, and effectiveness.

a)

Implementation (Coding)

b)

Maintenance

c)

Analysis

d)

Testing

e)

Design

39.

A computer operating system assembled under the model of free and open-source software.

a)

DOS

b)

Linux

c)

Windows

d)

UNIX

40.

An informal high-level description of the operating principle of a computer program or other algorithm.

a)

Assembly Language

b)

Pseudocode

c)

Architecture

d)

Artificial Intelligence

e)

Machine Language

41.

The idea that a program is so well designed, implemented, refined, and tested, that it can handle any data or processing situation without fail.

a)

Robust

b)

Cyclical

c)

Object oriented

d)

Procedural

42.

The stage in the software system life cycle that takes the most amount of time.

a)

Maintenance

b)

Implementation (Coding)

c)

Analysis

d)

Testing

e)

Design

43.

Choose the statement that best classifies the identifier creation guideline shown: No spaces or invalid symbols.

a)

Convention

b)

Rule

c)

Good idea

44.

A general-purpose programming language designed in the late 70s by Bjarne Stroustrup as an extension to the C language with object-oriented data abstraction mechanisms.

a)

Fortran

b)

Pascal

c)

COBOL

d)

Java

e)

C++

45.

A development process currently in use by many software companies that involves the use of sprints on a monthly or weekly basis throughout the span of the project.

a)

Agile

b)

Incremental

c)

Waterfall

d)

Spiral

46.

A programming language using words and commands easy for humans to understand and organize, but which must be translated into a language easy for the computer to understand and execute.

a)

High Level

b)

Low Level

c)

Syntax diagram

d)

Assembly

47.

Choose the statement that best classifies the identifier creation guideline shown. Variables start with a letter or the underscore character.

a)

Rule

b)

Good idea

c)

Convention

48.

Class D contains several instances of data, and owns methods that work with that data.

a)

Composition

b)

Abstraction

c)

Inheritance

d)

Encapsulation

e)

Polymorphism

49.

Identify the data type for this value: "JBO"

a)

int, long, byte or short

b)

string

c)

float or double

d)

char

e)

boolean

50.

The OOP feature of combining simpler data types into more complex data types, often referred to as a "has a" relationship.

a)

Composition

b)

Encapsulation

c)

Abstraction

d)

Inheritance

e)

Polymorphism

51.

A procedural programming language, named in honor of a 17th century French mathematician, designed in the late 60s by Niklaus Wirth.

a)

Pascal

b)

C++

c)

COBOL

d)

Fortran

e)

Python

52.

Choose the statement that best classifies the identifier creation guideline shown. Abbreviations not too short, still recognizable in meaning.

a)

Convention

b)

Rule

c)

Good idea

53.

Identify the data type for this value: false

a)

float or double

b)

boolean

c)

int, long, byte or short

d)

char

e)

string

54.

The stage in the software system life cycle that manages the software project after it has been rolled out and put into use.

a)

Maintenance

b)

Analysis

c)

Design

d)

Testing

e)

Implementation (Coding)

55.

A low-level programming language (difficult for humans, easy for machines) that uses mnemonic opcodes, such as mov, sto, and load, to interact directly with a computer's CPU and registers, used by expert programmers to produce highly efficient and fast programs.

a)

Architecture

b)

Artificial Intelligence

c)

Machine Language

d)

Assembly Language

e)

Pseudocode

56.

A structured comment block that describes what type of result a process expects to provide.

a)

Class

b)

Method

c)

Postcondition

d)

Precondition

e)

Constant

57.

This element in some programming languages by convention contains all capital letters.

a)

Class

b)

Precondition

c)

Constant

d)

Method

e)

Postcondition

58.

A compiled English-like computer programming language designed for business use, designed under the leadership of Commodore Grace Hopper.

a)

Pascal

b)

Fortran

c)

C++

d)

Python

e)

COBOL

59.

The relationship between one entity and another where entity A "has a" type of entity B as one of its characteristics.

a)

Composition

b)

Polymorphism

c)

Abstraction

d)

OOP

e)

Encapsulation

60.

A term in OOP related to encapsulation, sometimes called "information hiding", that indicates the concept where a programmer hides all but the relevant data and processes about an object in order to reduce complexity and increase efficiency and security.

a)

Polymorphism

b)

Abstraction

c)

Composition

d)

Inheritance

e)

Encapsulation

61.

Identify the data type for this value: ' ' (single blank space)

a)

string

b)

char

c)

int, long, byte or short

d)

boolean

e)

float or double

62.

A certain method of class A works in a certain way, but how this is accomplished is not known.

a)

Encapsulation

b)

Abstraction

c)

Composition

d)

Inheritance

e)

Polymorphism

63.

This module in some programming languages typically starts with a lowercase letter.

a)

Class

b)

Method

c)

Constant

d)

Postcondition

e)

Precondition

64.

Choose the statement that best classifies the identifier creation guideline shown. Identifiers meaningful

a)

Convention

b)

Good idea

c)

Rule

65.

A concept within the design of an entity where it receives all of the characteristics and processes of a previously defined entity, and then possibly adds more of its own, or modifies the ones received.

a)

Encapsulation

b)

Composition

c)

OOP

d)

Inheritance

e)

Abstraction

66.

A set of rules and methods that describe the functionality, organization and implementation of computer systems, often in terms of the type of processor being used.

a)

Assembly Language

b)

Artificial Intelligence

c)

Pseudocode

d)

Architecture

e)

Machine Language

67.

Identify the data type for this value: 45

a)

char

b)

int, long, byte or short

c)

float or double

d)

boolean

e)

string

68.

Choose the statement that best classifies the identifier creation guideline shown. Class names start with an upper case letter

a)

Convention

b)

Rule

c)

Good idea

69.

The general approach of having a goal in mind and then dividing the goal into sub-goals and tasks, often referred to as step-wise refinement.

a)

Stepwise refinement

b)

Bottom up

c)

Top down

d)

Flowchart

e)

UML

70.

A design process that takes previously developed and tested modules to build a larger software project.

a)

UML

b)

Flowchart

c)

Bottom up

d)

Top down

e)

Stepwise refinement

71.

The process of breaking down large modules of a project into smaller, more manageable modules, a key part of the top down design process.

a)

Top down

b)

Stepwise refinement

c)

UML

d)

Bottom up

e)

Flowchart

72.

An acronym for a family of computer operating systems that were operated by using the command line, the primary predecessor to the Windows GUI based OS.

a)

Windows

b)

Linux

c)

DOS

d)

UNIX

73.

The feature of OOP that allows for classes to be defined based on previously defined and developed classes, inheriting all of the characteristics of the inherited class, and then expanding on those features, easily identified as an "is a" relationship.

a)

Encapsulation

b)

Inheritance

c)

Abstraction

d)

Composition

e)

Polymorphism

74.

A significant portion of time during program development is spent fixing errors in the program, often referred to as:

a)

Coding

b)

Editing

c)

Compiling

d)

Debugging

75.

Traditional development process, that includes the idea phase, analysis, design, development, testing, through to the final product, where any changes in the original design come at significant cost.

a)

Incremental

b)

Agile

c)

Spiral

d)

Waterfall

76.

The practice of using capital letters and lowercase letters to enhance the readability of programmer created multi-word identifiers for variables, method names, and class names.

a)

Style conventions

b)

CamelCase

c)

Try catch block

d)

Pseudocode

77.

Identify the data type for this value: 's'

a)

boolean

b)

char

c)

int, long, byte or short

d)

string

e)

float or double

78.

A concept that indicates how various processes within an entity may be duplicated, accomplishing the same thing, but in different ways, or at different levels.

a)

Encapsulation

b)

Composition

c)

Polymorphism

d)

Inheritance

e)

Abstraction

79.

A family of multitasking, multiuser computer operating systems that use a command-line interface.

a)

Windows

b)

DOS

c)

LINUX

d)

UNIX

80.

A system of using rules to control various aspects of the implementation process of a program that enhances readability and functionality, such as indenting, spacing, naming identifiers, use of comments, and documentation.

a)

Pseudocode

b)

Try catch block

c)

CamelCase

d)

Style conventions

81.

Choose the statement below that best classifies the following identifier example: him and her

a)

Invalid identifier - contains spaces

b)

Invalid - contains invalid symbols

c)

Invalid identifier - Java reserved word

d)

Valid

e)

Invalid - does not start with a letter or underscore

82.

The stage in the software system life cycle that determines the overall needs of the project.

a)

Design

b)

Maintenance

c)

Implementation (Coding)

d)

Analysis

e)

Testing

83.

A general-purpose computer programming language that is class-based and object-oriented, where source code programs are compiled into bytecode files, which are then interpreted by each machine based on its own architecture.

a)

Java

b)

Fortran

c)

COBOL

d)

C++

e)

Pascal

84.

A widely used general-purpose, high-level programming language, with a design philosophy that emphasizes code readability.

a)

Pascal

b)

Python

c)

Java

d)

Fortran

e)

COBOL

85.

The language directly understood and executed by a computer, consisting of pure 0s and 1s.

a)

Artificial Intelligence

b)

Pseudocode

c)

Architecture

d)

Machine Language

e)

Assembly Language

86.

Choose the statement below that best classifies the following identifier example: 4Gone

a)

Invalid - does not start with a letter or underscore

b)

Invalid identifier - contains spaces

c)

Invalid identifier - Java reserved word

d)

Invalid - contains invalid symbols

e)

Valid

87.

An operating system developed by Microsoft that uses mouse interactive graphics to interface with the user instead of typing command line operations.

a)

Linux

b)

Windows

c)

DOS

d)

UNIX

88.

An aspect of object oriented programming that incorporates related data items and methods into a class definition, including instance variables, constructors, accessor and modifier methods.

a)

Polymorphism

b)

Inheritance

c)

Encapsulation

d)

Abstraction

e)

Composition

89.

Identify the data type for this value: 9.532

a)

float or double

b)

int, long, byte or short

c)

string

d)

boolean

e)

char

90.

Identify the data type for this value: 0 (the value zero)

a)

int, long, byte or short

b)

char

c)

string

d)

float or double

e)

boolean

91.

Choose the statement below that best classifies the following identifier example: me&You

a)

Invalid - contains invalid symbols

b)

Invalid identifier - Java reserved word

c)

Invalid identifier - contains spaces

d)

Invalid - does not start with a letter or underscore

e)

Valid

92.

A programming paradigm that uses objects and classes.

a)

Polymorphism

b)

OOP

c)

Encapsulation

d)

Inheritance

e)

Composition

93.

Choose the statement below that best classifies the following identifier example: floated

a)

Invalid identifier - contains spaces

b)

Invalid identifier - Java reserved word

c)

Invalid - does not start with a letter or underscore

d)

Valid

e)

Invalid - contains invalid symbols

94.

Identify the data type for this value: "" (no space between quotes)

a)

string

b)

int, long, byte or short

c)

float or double

d)

char

e)

boolean