Font size
WorksheetsComputer Science Quiz
Total questions: 94
Worksheet time: 47mins
A general term that refers to information used by a computer program, such as words and values.
procedure
data structure
data type
data
method
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.
Design
Analysis
Testing
Implementation (Coding)
Maintenance
A method of class F that was inherited from class G is redefined.
Encapsulation
Composition
Polymorphism - polymorphic object
Polymorphism - overloading
Polymorphism - overriding
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.
Object oriented
Procedural
Cyclical
Robust
Identify the data type for this value: "G"
string
char
int, long, byte or short
float or double
boolean
Identify the data type for this value: true
string
char
int, long, byte or short
float or double
boolean
Identify the data type for this value: -45
boolean
float or double
char
int, long, byte or short
string
Development process that combines features of other development models into a cyclical process, including several phases, one of which is risk analysis.
Agile
Incremental
Waterfall
Spiral
Choose the statement that best classifies the identifier creation guideline shown. Contains only alphanumeric characters, or the underscore character
Rule
Convention
Good idea
A parent class X has child classes Y and Z, and can reference objects of either class.
Polymorphism - overriding
Abstraction
Polymorphism - overloading
Encapsulation
Polymorphism - polymorphic object
A certain method of class A, which is a descendant of class B, is redefined in a more special way.
Inheritance
Encapsulation
Composition
Polymorphism
Abstraction
Choose the statement below that best classifies the following identifier example: float
Invalid identifier - Java reserved word
Invalid - contains invalid symbols
Invalid identifier - contains spaces
Invalid - does not start with a letter or underscore
Valid
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.
Composition
Inheritance
Polymorphism
Encapsulation
Abstraction
An object of class A contains instances of previously defined classes B and C.
Polymorphism
Abstraction
Encapsulation
Composition
Inheritance
Choose the statement that best classifies the identifier creation guideline shown. Constants in all upper case letters
Convention
Rule
Good idea
One of the original high level languages created by John Backus to make programming easier for math and science applications.
Pascal
Python
COBOL
C++
Fortran
This module in some programming languages typically starts with an uppercase letter.
Constant
Precondition
Method
Class
Postcondition
The fundamental type of data in a computer, often represented as zero and 1, false and true, off and on, etc.
Byte
AI
DOS
Bit
Class T has several methods all named the same, but work in different ways.
Polymorphism - overloading
Composition
Polymorphism - polymorphic object
Polymorphism - overriding
Encapsulation
The relationship between one entity and another where entity A "is a" type of entity B.
Encapsulation
Composition
Polymorphism
OOP
Inheritance
A concept within the design of an entity where it is partially made up of other, predefined entities.
Composition
Encapsulation
Abstraction
OOP
Inheritance
Choose the statement that best classifies the identifier creation guideline shown. Method names start with a lower case letter.
Convention
Good idea
Rule
A programming entity instantiated during program execution that encapsulates data and related methods into one bundle.
method
procedure
object
class
function
The stage in the software system life cycle that writes the program using a suitable programming language.
Analysis
Design
Maintenance
Testing
Implementation (Coding)
A concept that indicates how an entity contains processes that work, but how they work internally is hidden from the user of that entity.
Encapsulation
Polymorphism
Inheritance
Composition
Abstraction
Identify the data type for this value: " " (single blank space)
char
int, long, byte or short
string
float or double
boolean
A field of study which studies how to create computers and computer software that are capable of independent thinking.
Assembly Language
Machine Language
Artificial Intelligence
Pseudocode
Architecture
Development process that achieves production in small steps, where design, implementation, and testing occur during each step.
Waterfall
Incremental
Agile
Spiral
Choose the statement below that best classifies the following identifier example: name
Invalid - contains invalid symbols
Invalid identifier - Java reserved word
Valid
Invalid - does not start with a letter or underscore
Invalid identifier - contains spaces
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.
function
class
method
object
procedure
A concept that indicates how data and methods that act on the data are all incorporated into a single entity.
OOP
Encapsulation
Polymorphism
Inheritance
Abstraction
A structured comment block that describes what type of input a process expects to receive.
Method
Class
Precondition
Postcondition
Constant
A language easily understood and executed by a computer, like machine language, or bytecode.
High Level
Assembly
Low Level
Pseudocode
This technique is used in some programming languages to provide input protection in order to make the program more robust.
Style conventions
Try catch block
CamelCase
Pseudocode
A diagram used to represent the overall design of an object-oriented class design.
Bottom up
Flowchart
UML
Top down
Stepwise refinement
A diagram that uses geometric shapes connected by arrows to indicate the step-by-step process of a project.
Stepwise refinement
Flowchart
Top down
UML
Bottom up
An object of class A "is a" descendant of class B.
Inheritance
Polymorphism
Composition
Encapsulation
Abstraction
The stage in the software system life cycle that checks the program for reliability, validity, and effectiveness.
Implementation (Coding)
Maintenance
Analysis
Testing
Design
A computer operating system assembled under the model of free and open-source software.
DOS
Linux
Windows
UNIX
An informal high-level description of the operating principle of a computer program or other algorithm.
Assembly Language
Pseudocode
Architecture
Artificial Intelligence
Machine Language
The idea that a program is so well designed, implemented, refined, and tested, that it can handle any data or processing situation without fail.
Robust
Cyclical
Object oriented
Procedural
The stage in the software system life cycle that takes the most amount of time.
Maintenance
Implementation (Coding)
Analysis
Testing
Design
Choose the statement that best classifies the identifier creation guideline shown: No spaces or invalid symbols.
Convention
Rule
Good idea
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.
Fortran
Pascal
COBOL
Java
C++
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.
Agile
Incremental
Waterfall
Spiral
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.
High Level
Low Level
Syntax diagram
Assembly
Choose the statement that best classifies the identifier creation guideline shown. Variables start with a letter or the underscore character.
Rule
Good idea
Convention
Class D contains several instances of data, and owns methods that work with that data.
Composition
Abstraction
Inheritance
Encapsulation
Polymorphism
Identify the data type for this value: "JBO"
int, long, byte or short
string
float or double
char
boolean
The OOP feature of combining simpler data types into more complex data types, often referred to as a "has a" relationship.
Composition
Encapsulation
Abstraction
Inheritance
Polymorphism
A procedural programming language, named in honor of a 17th century French mathematician, designed in the late 60s by Niklaus Wirth.
Pascal
C++
COBOL
Fortran
Python
Choose the statement that best classifies the identifier creation guideline shown. Abbreviations not too short, still recognizable in meaning.
Convention
Rule
Good idea
Identify the data type for this value: false
float or double
boolean
int, long, byte or short
char
string
The stage in the software system life cycle that manages the software project after it has been rolled out and put into use.
Maintenance
Analysis
Design
Testing
Implementation (Coding)
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.
Architecture
Artificial Intelligence
Machine Language
Assembly Language
Pseudocode
A structured comment block that describes what type of result a process expects to provide.
Class
Method
Postcondition
Precondition
Constant
This element in some programming languages by convention contains all capital letters.
Class
Precondition
Constant
Method
Postcondition
A compiled English-like computer programming language designed for business use, designed under the leadership of Commodore Grace Hopper.
Pascal
Fortran
C++
Python
COBOL
The relationship between one entity and another where entity A "has a" type of entity B as one of its characteristics.
Composition
Polymorphism
Abstraction
OOP
Encapsulation
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.
Polymorphism
Abstraction
Composition
Inheritance
Encapsulation
Identify the data type for this value: ' ' (single blank space)
string
char
int, long, byte or short
boolean
float or double
A certain method of class A works in a certain way, but how this is accomplished is not known.
Encapsulation
Abstraction
Composition
Inheritance
Polymorphism
This module in some programming languages typically starts with a lowercase letter.
Class
Method
Constant
Postcondition
Precondition
Choose the statement that best classifies the identifier creation guideline shown. Identifiers meaningful
Convention
Good idea
Rule
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.
Encapsulation
Composition
OOP
Inheritance
Abstraction
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.
Assembly Language
Artificial Intelligence
Pseudocode
Architecture
Machine Language
Identify the data type for this value: 45
char
int, long, byte or short
float or double
boolean
string
Choose the statement that best classifies the identifier creation guideline shown. Class names start with an upper case letter
Convention
Rule
Good idea
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.
Stepwise refinement
Bottom up
Top down
Flowchart
UML
A design process that takes previously developed and tested modules to build a larger software project.
UML
Flowchart
Bottom up
Top down
Stepwise refinement
The process of breaking down large modules of a project into smaller, more manageable modules, a key part of the top down design process.
Top down
Stepwise refinement
UML
Bottom up
Flowchart
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.
Windows
Linux
DOS
UNIX
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.
Encapsulation
Inheritance
Abstraction
Composition
Polymorphism
A significant portion of time during program development is spent fixing errors in the program, often referred to as:
Coding
Editing
Compiling
Debugging
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.
Incremental
Agile
Spiral
Waterfall
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.
Style conventions
CamelCase
Try catch block
Pseudocode
Identify the data type for this value: 's'
boolean
char
int, long, byte or short
string
float or double
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.
Encapsulation
Composition
Polymorphism
Inheritance
Abstraction
A family of multitasking, multiuser computer operating systems that use a command-line interface.
Windows
DOS
LINUX
UNIX
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.
Pseudocode
Try catch block
CamelCase
Style conventions
Choose the statement below that best classifies the following identifier example: him and her
Invalid identifier - contains spaces
Invalid - contains invalid symbols
Invalid identifier - Java reserved word
Valid
Invalid - does not start with a letter or underscore
The stage in the software system life cycle that determines the overall needs of the project.
Design
Maintenance
Implementation (Coding)
Analysis
Testing
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.
Java
Fortran
COBOL
C++
Pascal
A widely used general-purpose, high-level programming language, with a design philosophy that emphasizes code readability.
Pascal
Python
Java
Fortran
COBOL
The language directly understood and executed by a computer, consisting of pure 0s and 1s.
Artificial Intelligence
Pseudocode
Architecture
Machine Language
Assembly Language
Choose the statement below that best classifies the following identifier example: 4Gone
Invalid - does not start with a letter or underscore
Invalid identifier - contains spaces
Invalid identifier - Java reserved word
Invalid - contains invalid symbols
Valid
An operating system developed by Microsoft that uses mouse interactive graphics to interface with the user instead of typing command line operations.
Linux
Windows
DOS
UNIX
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.
Polymorphism
Inheritance
Encapsulation
Abstraction
Composition
Identify the data type for this value: 9.532
float or double
int, long, byte or short
string
boolean
char
Identify the data type for this value: 0 (the value zero)
int, long, byte or short
char
string
float or double
boolean
Choose the statement below that best classifies the following identifier example: me&You
Invalid - contains invalid symbols
Invalid identifier - Java reserved word
Invalid identifier - contains spaces
Invalid - does not start with a letter or underscore
Valid
A programming paradigm that uses objects and classes.
Polymorphism
OOP
Encapsulation
Inheritance
Composition
Choose the statement below that best classifies the following identifier example: floated
Invalid identifier - contains spaces
Invalid identifier - Java reserved word
Invalid - does not start with a letter or underscore
Valid
Invalid - contains invalid symbols
Identify the data type for this value: "" (no space between quotes)
string
int, long, byte or short
float or double
char
boolean
