WorksheetsCS 241 Practice Test Week 1
Total questions: 75
Worksheet time: 2hrs 33mins
A visual organizer developed to graphically show objects and their contents.
Syntax Diagram
Flowchar
Pseudocode
UML/Unified Modeling Language
Design strategy of using pre-existing modules to put together a project.
Object-oriented
Cyclical
Bottom-Up
Top-down/Stepwise
Using the flowchart below, what will be output?
5
10
Nothing
Using the flowchart below, what will be the result if score is 284?
Pass
Fail
Nothing
Using the flowchart below, what will be the result if score is 183?
Fail
Pass
Nothing
Which of the following best describes the purpose of creating a flowchart as part of the design of a computer program?
To ensure that all methods are appropriately linked
To graphically display the steps needed to solve the programming problem
To test and maintain the efficiency of the overall program
To determine the necessary number of global and local variables
The stage in the software system life cycle that writes the program using a suitable programming language.
Testing
Analysis
Design
Maintenance
Implementation (Coding)
The stage in the software system life cycle that manages the software project after it has been rolled out and put into use.
Testing
Maintenance
Implementation (Coding)
Analysis
Design
The process of breaking down large modules of a project into smaller, more manageable modules, a key part of the top down design process.
Bottom - up
UML
Flowchart
Stepwise Refinement
A diagram used to represent the overall structure of an object-oriented class design.
Flowchart
Bottom-up
UML
Top-down
Stepwise Refinement
Development process that combines features of other development models into a cyclical process, including several phases, one of which is risk analysis.
Spiral
Waterfall
Incremental
Agile
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.
CamelCase
Constant Name
Style Conventions
Class Name
A software system is to be developed for which the requirements are well understood and the risk of failure is minimal. To meet these requirements, which of the following software development models would be most appropriate to use?
Incremental
Spiral
Agile
Waterfall
A program is considered to be (a) when it can handle gracefully any and all negative issues that might occur during program execution, such as bad input or division by zero.
Development process that achieves production in small steps, where design, implementation, and testing occur during each step.
Spiral
Agile
Waterfall
Incremental
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
Waterfall
Spiral
Incremental
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.
Psedocode
Try Catch Block
CamelCase
Style Conventions
This technique is used in some programming languages to provide input protection in order to make the program more robust.
CamelCase
Style Convention
Pseudocode
Try Catch Block
This module in some programming languages typically starts with an uppercase letter.
Precondition
Class
Constant
Method
PostCondition
A formal comment block that describes what a process needs in order to be effective.
Postcondition
Try-Catch Block
Precondition
Style Conventions
One of the three pillars of object oriented programming that allows for classes to be defined based on previously defined and developed classes, receiving all of the characteristics of the pre-defined class, and then expanding on those features, identified as an "is a" relationship.
Inheritance
Encapsulation
Composition
Abstraction
In object-oriented programming, this is the process of combining simpler data types into more complex data types, often using the phrase "has a" to describe the relationship.
Abstraction
Composition
Encapsulation
Inheritence
Which object-oriented programming concept is described by the following: A certain class GraduateStudent is partially made up of predefined classes PersonalData and CourseLoad.
Inheritance
Composition
Polymorphism - overloading
Polymorphism - polymorphic references
Encapsulation
Which object-oriented programming concept is described by the following: Class Jaguar is defined based on all the characteristics of class LuxuryCar.
Encapsulation
Polymorphism
Composition
Inheritance
Which object-oriented programming concept is described by the following: Class Car has several methods, all named openDoor, but which work in different ways.
Polymorphism-overriding
Polymorphism-polymorphic referencing
Inheritance
Encapsulation
Polymorphism-overloading
Which object-oriented programming concept is described by the following: Class Cupcake inherited a method from class Dessert and redefined it.
Polymorphism-overloarding
Polymorphism - polymorphic reference
Inheritance
Polymorphism - overriding
Composition
Which object-oriented programming concept is described by the following: A parent class J has child classes K and L, and can reference objects of either class.
Polymorphism - polymorphic referencing
Inheritance
Polymorphic - overriding
Polymorphic - overloading
Encapsulation
Which object-oriented programming concept is described by the following: A process in class H is defined in several different ways, but achieves the same result.
Polymorphism
Inheritance
Encapsulation
Composition
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.
Inheritance
Encapsulation
Polymorphism
Abstraction
Composition
A programming entity during the actual execution of a program that encapsulates data and related methods into one package.
method
class
object
procedure
function
A programming language using words and commands easy for humans to understand and organize, but which must be translated into machine language or object code for the computer to understand and execute
Low-level language
Objected-oriented language
High-level language
Functional Language
The language directly understood and executed by a computer, consisting of pure 0s and 1s.
Machine Language
Pascal Language
COBOL Language
Assembly Language
A programming language 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.
Machine Language
Assembly Language
C
Java
Javascript
A language easily understood and executed by a computer, like machine language or bytecode.
High-Level Language
Low-Level Language
Machine Language
Assembly Language
The rules of punctuation and grammar for a programming language is often referred to as _______________.
Lexical
Syntax
Style Conventions
Commands
Which term below best describes the process where the instructions from a program are converted all at once, and then executed?
Compiling
Interpreting
Evaluating
Translating
One of the original high level languages created by John Backus to make programming easier for math and science applications.
Fortran
Python
C++
COBOL
Java
A compiled, English-like computer programming language designed for business use, designed under the leadership of Commodore Grace Hopper.
Java
COBOL
C++
Pascal
Python
A procedural programming language, named in honor of a 17th century French mathematician, designed in the late 60s by Niklaus Wirth.
Pascal
COBOL
Java
C++
Python
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.
Python
COBOL
PASCAL
C++
Java
A widely used general-purpose, high-level programming language, with a design philosophy that emphasizes code readability.
Python
Fortran
C++
COBOL
Java
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.
Python
C++
Java
Pascal
Fortran
An informal high-level description of the operating principle of a computer program or other algorithm.
Machine Language
Assembly Language
Architecture
Pseudocode
Artificial Intelligence
Identify the data type for this value. 45
boolean
int
float
char
string
Identify the data type for this value. 0
float
string
char
boolean
int
Identify the data type for this value: 3.14
char
float
int
string
Identify the data type for this value. 's'
char
string
boolean
int
float
Identify the data type for this value. " "
float
string
char
boolean
A programmer needs a data type that will store the age of a person as a whole number, but wants to be as efficient as possible to conserve memory. Which of the following choices represents the best choice for this situation?
double
short
int
boolean
float
A programmer has been asked to design a program for a micro-biologist to keep track of data measurements of cellular organisms, which require the highest level of storage precision. Which of the data types listed below would be the best choice for storing this type of data?
float
int
char
short
double
Choose the statement below that best classifies the following identifier example.
float
Invalid - contains invalid symbols
Invalid identifier - contains spaces
Invalid - does not start with a letter or underscore
Invalid identifier - programming language reserved word
valid
Choose the statement below that best classifies the following identifier example.
floated
invalid - contains invalid symbols
valid
invalid - programming language reserved word
invalid - contains spaces
invalid - does not start with a letter or underscore
Choose the statement below that best classifies the following identifier example.
4Gone
Invalid - does not start with a letter or underscore
valid
Invalid - contains invalid symbols
Invalid - programming language reserved word
Choose the statement below that best classifies the following identifier example.
him and her
invalid - contains spaces
valid
invalid - does not start with a letter or underscore
invalid - contains invalid symbols
invalid - programming language reserved word
Choose the statement that best classifies the identifier creation guideline shown.
Variable names should be abbreviated.
Rule
Convention
Good idea
Choose the statement that best classifies the identifier creation guideline shown.
Variable start with a letter or the underscore character.
Rule
Style conventions
Good idea
Choose the statement that best classifies the identifier creation guideline shown.
Method names start with a lower case letter.
Convention
Good Idea
Rule
Choose the statement that best classifies the identifier creation guideline shown.
Class names start with an upper case letter.
Rule
Good Idea
Style convention
Choose the statement that best classifies the identifier creation guideline shown.
Variables start with a letter or the underscore character.
Good idea
Convention
Rule
Select all choices listed below that are within the next five values in this base 8 sequence.
5, 6, 7
8
10
13
11
9
Select each identifier shown with the most appropriate type of identifier category.
1. Name
2. Person
3. VALUE
4. doSomething
5. age
1. name - variable
2. Person - class
3. VALUE - constant
4. doSomething() - method
5. age - function
Which choice best describes the stage in the software system life cycle which determines the structure of the software strategy and code?
Design
Analysis
Maintenance
Implementation (Coding)
Testing
Which of the choices listed represents the greatest value?
11000111 base 2
304 base 8
196 base 10
C3 base 16
Which design process below is most appropriate for a project where the design team has taken the analysis and identified many processes already defined that can be used to develop the project, saving much time and effort.
Objected Oriented
Top down
Bottom Up
Stepwise Refinement
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.
method
function
class
procedure
object
An aspect of object oriented programming incorporating related data items and methods into a class definition, including instance variables, constructors, accessor and modifer methods is often referred to as:
Inheritance
Composition
Polymorphism
Encapsulation
Abstraction
Three pillars of OOP.
Inheritance
Encapsulation
Polymorphism
Composition
Abstraction
What is the next value in this binary sequence?
101, 110, 111
(a)
Identify the data type for this value:
"G"
float
boolean
string
char
int
Select the best choice describing a structured comment block indicating the expected output for a process.
block comment
single line comment
postcondition
precondition
external documentation
Choose the statement that best classifies the identifier creation guideline shown.
Contains only alphanumeric characters, or the underscore character
Rule
Convention
Good Idea
If the character 'e' has an ASCII value of 101, what would be the sum of all the ASCII characters in the word "face"?
(a)
The fundamental type of data in a computer, the binary digit, or bit, is represented in different ways. Of the choices shown, check each one that is typically used to represent a bit.
warm, cold
1,0
on, off
high voltage, low voltage
true, false
A customer from a startup company approaches a software development company with a software project to serve one of their company needs. A meeting is scheduled to begin the process of determining all aspects of the project during which representatives of the software company ask questions of the customer to ascertain the specific details of the requirements. Which choice represents this part of the software system life cycle?
Implementation
Design
Analysis
Maintenance
Testing
A "readme.txt" file is created to serve as instructions for a software project delivered to a customer. Which choice best describes this feature?
internal documentation
postcondition
precondition
block comment
external documentation
