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

WGU D278 Study Guide Notes with Complete Verified Solutions.

Document preview thumbnail
Preview 2 out of 9 pages

WGU D278 Study Guide Notes with Complete Verified Solutions.

Content preview

WGU D278 Study Guide Notes with Complete Verified Solutions.


WHAT IS THE PURPOSE OF A VARIABLE?
A NAMED ITEM USED TO HOLD A VALUE


HOW DO YOU SAVE A VALUE TO A VARIABLE?
WITH AN ASSIGNMENT STATEMENT, EG X = X + 1


WHAT IS A PROGRAMMING EXPRESSION?
A NUMBER, VARIABLE NAME, OR SIMPLE CALCULATION; A COMBINATION OF
ITEMS THAT EVALUATES TO A VALUE
EG X + 1


WHAT IS AN IDENTIFIER?
A NAME CREATED FOR AN ITEM LIKE A VARIABLE OR FUNCTION


WHAT CONSTITUTES A VALID IDENTIFIER?
● BE A SEQUENCE OF LETTERS (a-z, A-Z), UNDERSCORES (_) AND
DIGITS (0-9)
● START WITH A LETTER



WHAT IS A LITERAL?
A SPECIFIC VALUE IN CODE



WHAT IS AN OPERATOR?
SYMBOLS THAT PERFORM CALCULATIONS, + - * /

WHAT PRECEDENCE RULES DOES PROGRAMMING USE?
● ITEMS IN PARENTHESES ARE EVALUATED FIRST
● THEN THE MINUS OPERATOR
● */
● +-
● LEFT TO RIGHT

, HOW DOES AN INTEGER DIFFER FROM A FLOAT?
INTEGERS ARE WHOLE NUMBERS, FLOATS HAVE DECIMALS

WHAT HAPPENS IF YOU DIVIDE TWO INTEGERS? A INTEGER AND
FLOAT? WHAT HAPPENS IF YOU DIVIDE A NONZERO FLOATING
POINT NUMBER BY ZERO?
● DIVIND INTEGERS DROPS ANY DECIMAL, EG 2.7 TURNS INTO 2,
ANY ABSOLUTE VALUE LESS THAN 1 BECOMES 0
● DIVING AN INTEGER AND FLOAT RESULTS IN A FLOAT
● DIVIDE A NONZERO FLOAT BY ZERO IS EITHER POSITIVE OR
NEGATIVE INFINITY



HOW DO YOU CONVERT AN ITEM’S TYPE?
● FOR ASSIGNMENTS, RIGHT SIDE TYPE IS CONVERTED TO LEFT
SIDE TYPE


WHAT DOES THE MODULO OPERATOR DO?
% EVALUATES THE REMAINDER, EG 23 % 10 = 3


WHAT IS THE DIFFERENCE IN A VARIABLE AND A CONSTANT?
THE VALUE OF A CONSTANT CANNOT CHANGE, WHILE A VARIABLE’S VALUE CAN
CHANGE


HOW DOES AN ARRAY WORK?
AN ORDERED LIST OF ITEMS OF A GIVEN DATA TYPE, LIKE AN ARRAY OF INTEGERS
OR AN ARRAY OF FLOATS


WHAT DOES INDEX REFERENCE?
WHAT IS THE PURPOSE OF EACH DIFFERENT DATA TYPE?
● INTEGER – TYPICALLY USED FOR VALUES THAT ARE COUNTED
● FLOAT – USED FOR MEASURED VALUES
● ARRAY – STORING LISTS OF DATA TYPES

Document information

Uploaded on
June 8, 2025
Number of pages
9
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.
Stuviatlas
3.8
(436)
Sold
1870
Followers
1470
Items
7359
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