D278 - Scripting & Programming Exam
Questions And Answers 2025 Update.
Variable - Answer✔A named item used to hold a value.
Ex: x, numItems, numPeople
Assignment Statement - Answer✔Assigns a variable with a value.
Example: The example states that x is assigned to 5.
x=5
Variable Declaration - Answer✔A statement that declares a new variable, specifying the
variable's name and type.
Integer - Answer✔A whole number. Commonly used to count items.
Example: 1, 999, 0, -25.
Identifier - Answer✔A starts with a letter, can contain a sequence of letters, digits, and
underscores.
Example: num_Cars1, numCars, num__Cars
Reserved Word (Key Word) - Answer✔A word that has a special meaning in a programming
language and therefore cannot be used as a name by the programmer.
Examples: Get, Put
1
, ©FYNDLAY 2024/2025 ALL RIGHTS RESERVED 3:26PM.
Naming Conventions - Answer✔A set of style guidelines defined by a company, team, teacher,
etc., for naming variables.
Are case-sensitive.
Uses Camel Case: capitalizing each word except the first.
Underscore Separated: words are lowercase and separated by underscores.
Expression - Answer✔A combination of items like variables, literals, operators, and parentheses
that evaluates to a value.
Example: x is 3
2 * (x + 1) = 8
Literal - Answer✔A specific value in code, like 2.
Operator - Answer✔A symbol that performs a built-in calculation.
Example:
*/+-
Precedence Rules for Arithmetic Operators - Answer✔Rules used to evaluate an expression in a
certain order.
1. ( ) - Items in parentheses.
2. Unary- used for negotiation
3. * / having equal precedence
4. + - having equal precedence
5. Left to Right; if more than one operator of equal precedence is being evaluated.
Which expression is evaluated first? - Answer✔x = 4
w=2
y = 3 * (x + 10 / w)
2