C173/D278 Study Questions by Competency Questions with
complete solution 2025/2026
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,
un- derscores, and digits.
6. What is a literal? any number, text, or other
infor- mation 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
1/
13
, C173/D278 Study Questions by Competency Questions with
complete solution 2025/2026
measured or fractions.
10. What happens if you divide two integers? you will get an integer or the
an-
swer will be cut short
2/
13
complete solution 2025/2026
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,
un- derscores, and digits.
6. What is a literal? any number, text, or other
infor- mation 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
1/
13
, C173/D278 Study Questions by Competency Questions with
complete solution 2025/2026
measured or fractions.
10. What happens if you divide two integers? you will get an integer or the
an-
swer will be cut short
2/
13