C173/D278 Study Questions by Competency, Exams of Advanced Education

C173/D278 Study Questions by Competency

Typology: Exams

2025/2026

Available from 05/25/2026

QUIZBANK01
QUIZBANK01 ๐Ÿ‡บ๐Ÿ‡ธ

4.9

(9)

4.3K documents

1 / 7

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
/
7
C173/D278 Study Questions by Competency
1.
What
is
the
purpose
of
a
variable?:
a named item like x, used to hold a value.
2.
How do you save a value to a variable?: An assignment statement assigns a variable with a
value.
(x = 0)
3.
What is a programming expression?: A number, variable (x), or simple calculation (numApples
+
1).
4.
What
is
an
identifier?:
A name created for a variable or a function.
5.
What
constitutes
a
valid
identifier?:
An identifier must start with a letter and be a sequence of
letters,
underscores, and digits.
6.
What
is
a
literal?:
any number, text, or other information that directly represents a value.
7.
What
is
an
operator?:
a
symbol
that
performs
a
built-in
calculation.
(+,
-,
*,
/)
8. What precedence rules does programming use?: PEMDAS
9.
How does an integer differ from a float?: Integers are whole numbers and used for counted values.
Floats
allow
the
decimal
point
to
appear
anywhere
in
the
number
and
are
used
for
values
that
are
measured
or
fractions.
10.
What
happens
if
you
divide
two
integers?:
you will get an integer or the answer will be cut
short
11. what happens if you divide an integer and float?:
It returns a float
12.
What happens if you divide a nonzero floating point number by zero?:
In
coral
pf3
pf4
pf5

Partial preview of the text

Download C173/D278 Study Questions by Competency and more Exams Advanced Education in PDF only on Docsity!

1 /

C173/D278 Study Questions by Competency

1. What is the purpose of a variable?: a named item like x, used to hold a value.

2. How do you save a value to a variable?: An assignment statement assigns a variable with a value.

(x = 0)

3. What is a programming expression?: A number, variable (x), or simple calculation (numApples

4. What is an identifier?: A name created for a variable or a function.

5. What constitutes a valid identifier?: An identifier must start with a letter and be a sequence of letters,

underscores, and digits.

6. What is a literal?: any number, text, or other information that directly represents a value.

7. What is an operator?: a symbol that performs a built-in calculation. (+, -, *, /)

8. What precedence rules does programming use?: PEMDAS

9. How does an integer differ from a float?: Integers are whole numbers and used for counted values.

Floats allow the decimal point to appear anywhere in the number and are used for values that are measured or fractions.

10. What happens if you divide two integers?: you will get an integer or the answer will be cut

short

11. what happens if you divide an integer and float?: It returns a float

12. What happens if you divide a nonzero floating point number by zero?: In coral

2 / -infinity or infinity. Otherwise not a number.

13. How do you convert an item's type?: By using a type conversion.

14. What does the modulo operator do?: evaluates to the remainder of the division of two integer

operands.

15. What is the difference in a variable and a constant?: A variable can change while a

constant is a value that always stays the same.

16. How does an array work?: It is a collection of data stored in an index together.

17. What does index reference?: The location where values are stored in an array.

18. How does a branch differ from a loop?: In a branch is only executed under a certain condition

(true, false). A loop repeatedly executes as long as the loops decision expression evaluates to true ( i < numVals.size).

19. How does an if-else branch work?: two branches: IF true the first branch executes. ELSE the

second branch executes.

20. What does the equality operator do? Does it work for all data types?: The

equality operator (==, !=) compares 2 values to see if they are equal or not.

21. What are the four relational operators?: less than (<), greater than (>), less than or equal to

(<=), and greater than or equal to (>=)

22. What are the three logical operators?: and, or, not

23. Explain the precedence rules.: Parenthesis, not, order of operations, relational operators, equality

operators, and, or

24. How is an infinite loop created?: By using a condition that will never become false in a while loop

4 /

38. What is a linear search?: A linear search searches a list of data from the beginning until it finds what it is

looking for or reaches the end.

39. What is SDLC?: Systems Development Life Cycle

40. What are the four phases of SDLC?: analysis, design, implementation, testing

5 /

41. What activities takes place in each of the four phases?: analysis - defines

programs goals design - defines how to build the program implementation - writing the program testing - checks that the program meets the goals

42. In which phase do you write code?: implementation

43. How does a waterfall approach differ from an agile approach?: In a waterfall

approach yo cannot go back to previous phases. In agile approach you can go back to ditterent phases.

44. What is UML?: a modeling language that uses ditterent types of diagrams to visualize the structure and

behavior of a program

45. Which UML diagrams are structural?: class diagram

46. Which UML diagrams are behavioral?: Activity diagram, use case diagram, sequence diagram

47. Which UML diagrams are activity?: flowcharts

48. Which UML diagrams are used in the analysis phase?: Use case diagram

49. Which UML diagrams are used in the design phase?: class diagram

50. Which UML diagrams are used in the implementation phase?: Activity

51. Which UML diagrams are used in the testing phase?: Sequence diagram

52. What is a use case diagram used for?: visually models how a user interacts with a program.

53. What is a class diagram used for?: visually models the classes of a computer program.

7 /

66. Why are programming libraries used?: Improves productivity

67. Are libraries compiled or precompiled?: precompiled