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 13 pages
Exam (elaborations)

New WGU C173 – Questions With Proper Solutions

Document preview thumbnail
Preview 2 out of 13 pages

New WGU C173 – Questions With Proper Solutions

Content preview

New WGU C173 – Questions With Proper
Solutions
Variable Correct Answer - named item such as X or numPeople
which is used to hold value

Assignment statement Correct Answer - 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 Correct Answer - declares a new variable
specifying the variable's name and type

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

Assignment statement Correct Answer - 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 Correct Answer - 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 Correct Answer - 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) Correct Answer - word that is
part of the language like integer, Get, or Put, programmer cannot use
reserved word as a identifier

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

Two common conventions for distinguishing words in an identifier
are: Correct Answer - Camel case: Lower camel case abuts
multiple words, capitalizing each word 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 Correct Answer - 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 Correct Answer - a specific value in code like a 2

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

An expression evaluates to a value Correct Answer - 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.

Document information

Uploaded on
July 4, 2025
Number of pages
13
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$16.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.
StudyHall
3.8
(231)
Sold
1348
Followers
825
Items
17221
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