D278 Test with Correct Answers
How does a branch differ from a loop?
sequence of statements only executed under a certain condition
What is a Scalar Variable?
A single-item (non-array) variable. Computer variable that stores a single, fundamental data
value, such as a number (integer or float), a character, or a boolean.
How does an if-else branch work?
IF the decision's expression is true then the first branch executes, ELSE the second branch
executes.
What does the equality operator do? Does it work for all data types?
checks whether two operands' values are the same (==) or different (!=). Note that equality is ==,
not just =.
What are the four relational operators?
==, !=, <=, and >=
What is a binary search?
List must be in order; looks in middle; goes left if lower and right if greater
What is a linear search?
starts from the beginning of a data set, each item is checked in turn to see if it is the one being
searched for
What is SDLC?
(System Development Life Cycle) is the process of developing information systems through
investigation, analysis, design, implementation, and maintenance. It represents a systems
approach to problem solving.
, What are the four phases of SDLC?
planning, analysis, design, implementation
In which phase do you write code?
implementation phase
How does a waterfall approach differ from an agile approach?
No earlier phases repeat or come back.
What is UML?
Unified Modeling Language. This is a graphical notation specifically for drawing diagrams of an
object-oriented system.
Which UML diagrams are structural?
class diagram
Which UML diagrams are behavioral?
UML Sequence diagram, and Use case diagram
Which UML diagrams are activity?
Flowchart
Which UML diagrams are used in the analysis phase?
use case diagram
Which UML diagrams are used in the design phase?
class diagram
Which UML diagrams are used in the implementation phase?
class diagram
Which UML diagrams are used in the testing phase?
Sequence diagram
How does a branch differ from a loop?
sequence of statements only executed under a certain condition
What is a Scalar Variable?
A single-item (non-array) variable. Computer variable that stores a single, fundamental data
value, such as a number (integer or float), a character, or a boolean.
How does an if-else branch work?
IF the decision's expression is true then the first branch executes, ELSE the second branch
executes.
What does the equality operator do? Does it work for all data types?
checks whether two operands' values are the same (==) or different (!=). Note that equality is ==,
not just =.
What are the four relational operators?
==, !=, <=, and >=
What is a binary search?
List must be in order; looks in middle; goes left if lower and right if greater
What is a linear search?
starts from the beginning of a data set, each item is checked in turn to see if it is the one being
searched for
What is SDLC?
(System Development Life Cycle) is the process of developing information systems through
investigation, analysis, design, implementation, and maintenance. It represents a systems
approach to problem solving.
, What are the four phases of SDLC?
planning, analysis, design, implementation
In which phase do you write code?
implementation phase
How does a waterfall approach differ from an agile approach?
No earlier phases repeat or come back.
What is UML?
Unified Modeling Language. This is a graphical notation specifically for drawing diagrams of an
object-oriented system.
Which UML diagrams are structural?
class diagram
Which UML diagrams are behavioral?
UML Sequence diagram, and Use case diagram
Which UML diagrams are activity?
Flowchart
Which UML diagrams are used in the analysis phase?
use case diagram
Which UML diagrams are used in the design phase?
class diagram
Which UML diagrams are used in the implementation phase?
class diagram
Which UML diagrams are used in the testing phase?
Sequence diagram