Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 8 pages
Exam (elaborations)

New WGU C173 UPDATED ACTUAL Questions and CORRECT Answers

Document preview thumbnail
Preview 2 out of 8 pages

New WGU C173 UPDATED ACTUAL Questions and CORRECT Answers

Content preview

New WGU C173 UPDATED ACTUAL Questions and CORRECT Answers

variable named item such as X or numPeople which is used to hold value


assignment statement assigns a variable with a value such as x = 5, statement means X is assigned with 5
and X keeps the value during subsequent statements until X is assigned again


variable declaration declares a new variable specifying the variable's name and type


integer can hold whole number values like 1, 999, 0, or -25 but not 3.5 or 0.001


assignment statement assigns the variables on the left side of the = with the current value of the right
side expressions Ex: numApples = 8 assigns numApples with the value of the right
side expressions in this case an 8


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 operations like
+, -, , and parentheses as in 2(numApples -1)


identifier A name created by a programmer for an item like a variable or function, an
identified must be a sequence of letters (a-z, A-Z), underscores (_), and digits (0-
9), they are case sensitive


reserved word (or keyword) word that is part of the language like integer, Get, or Put, programmer cannot use
reserved word as a identifier


naming conventions set of style guidelines defined by a company, team, teacher, etc., for naming
variables.


Two common conventions for distinguishing words in an Camel case: Lower camel case abuts multiple words, capitalizing each word
identifier are: except the first, as in numApples or peopleOnBus.


Underscore separated: Words are lowercase and separated by an underscore, as
in num_apples or people_on_bus.




expression a combination of items, like variables, literals, operators, and parentheses, that
evaluates to a value. Ex: 2 (x + 1) is an expression. If x is 3, the expression
evaluates to the value 8. Expressions are commonly used on the right side of an
assignment statement, as in y = 2 (x + 1).


literal a specific value in code like a 2


operator a symbol that performs a built-in calculation, like the operator + which performs
addition.

, An expression evaluates to a value replaces the expression. Ex: If x is 5, then x + 1 evaluates to 6, and y = x + 1 assigns y
with 6.
An expression is evaluated using the order of standard mathematics, such order
known in programming as precedence rules, listed below.


unary minus A good practice is to include a single space around operators for readability, as in
numItems + 2, rather than numItems+2. An exception is minus used as negative, as
in: xCoord = -yCoord. Minus (-) used as negative


incremental development the process of writing, compiling, and testing a small amount of code, then
writing, compiling, and testing a small amount more (an incremental amount), and
so on.

Document information

Uploaded on
February 2, 2026
Number of pages
8
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$12.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
MGRADES
4.0
(230)
Sold
1515
Followers
106
Items
107179
Last sold
1 day ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions