D684CS WGU Exam Questions with Verified
Correct Answers
Integer
Represents a whole number.
Float
Represents a number with a decimal point.
String
Represents a sequence of characters.
Variable
A named storage location that can hold values that can change.
Identifier
A name given to a variable, function, etc.
Constant
A named storage location whose value cannot change.
Standard Variable Naming Rule
The name should have an appropriate meaning. (Other common rules: start with a letter, no
spaces, no special characters except underscore).
Selection (Conditional Statement)
Allows a choice between performing an action and skipping it (e.g., IF/ELSE).
Iteration (Loop)
, A construct that allows a block of code to be executed repeatedly (e.g., while loop).
Event-controlled loop
Terminates when a certain condition becomes true.
Count-controlled loop
Executes a predetermined number of times.
Input/Output
Operations for getting data into and out of a program.
Assignment
Assigning a value to a variable (e.g., Set counter to 0).
Arithmetic Operators
Operators used for mathematical calculations.
+
Addition
-
Subtraction
*
Multiplication
/
Division (results in a float)
//
Correct Answers
Integer
Represents a whole number.
Float
Represents a number with a decimal point.
String
Represents a sequence of characters.
Variable
A named storage location that can hold values that can change.
Identifier
A name given to a variable, function, etc.
Constant
A named storage location whose value cannot change.
Standard Variable Naming Rule
The name should have an appropriate meaning. (Other common rules: start with a letter, no
spaces, no special characters except underscore).
Selection (Conditional Statement)
Allows a choice between performing an action and skipping it (e.g., IF/ELSE).
Iteration (Loop)
, A construct that allows a block of code to be executed repeatedly (e.g., while loop).
Event-controlled loop
Terminates when a certain condition becomes true.
Count-controlled loop
Executes a predetermined number of times.
Input/Output
Operations for getting data into and out of a program.
Assignment
Assigning a value to a variable (e.g., Set counter to 0).
Arithmetic Operators
Operators used for mathematical calculations.
+
Addition
-
Subtraction
*
Multiplication
/
Division (results in a float)
//