Scripting and Programming - Foundations WGU- C173 (Unit 2). Exam Review questions. Full Coverage. VERIFIED 2024
Variable - -A named item, such as x or numPeople, used to hold a value. Assignment statement - -Assigns a variable with a value, such as x = 5. That statement means x is assigned with 5, and x keeps that value during subsequent statements, until x is assigned again. = is not equals - -In programming, = is an assignment of a left-side variable with a right-side value. = is NOT equality as in mathematics. Thus, x = 5 is read as "x is assigned with 5", and not as "x equals 5". When one sees x = 5, one might think of a box labeled x having the value 5 put in. Variable declaration - -Declares a new variable, specifying the variable's name and type. Integer - -Can hold whole number values, like 1, 999, 0, -25 (not 3.5 or 0.001) Expression - -May be a number like 80, a variable name like numApples, or a simple calculation like numApples + 1. Simple calculations can involve standard math operators like +, -, and *, and parentheses as in 2 * (numApples - 1). Six degrees of separation - -The popular idea that any two people on earth are connected by just "six degrees of separation", accounting for overlapping of known-people. Identifier - -A name created by a programmer for an item like a variable or function. An identifier must:
Written for
Document information
- Uploaded on
- October 18, 2023
- Number of pages
- 7
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
scripting and programming foundations wgu c173
Also available in package deal