• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 9 pages
Exam (elaborations)

WGU D278

Document preview thumbnail
Preview 2 out of 9 pages

Exam of 9 pages for the course WGU D278 at WGU D278 (WGU D278)

Content preview

WGU D278 cb


Studycbonlinecbatcbhttps://quizlet.com/
_dshcjb
1.A car drove 200 miles using 10 gallons of fuel. Which operation shoul
cb cb cb cb cb cb cb cb cb cb cb cb

d be used to compute the miles per gallon, which is 20?: Division
cb cb cb cb cb cb cb cb cb cb cb cb


2.Which operator should be used to determine if a number is evenly divi
cb cb cb cb cb cb cb cb cb cb cb cb

sible by 5?: % cb cb cb


3.A variable should hold the names of all past U.S. presidents. Which
cb cb cb cb cb cb cb cb cb cb cb cb

data type should the variable be?: String array
cb cb cb cb cb cb cb


4.A variable should hold a person's height in meters. Which data type sh
cb cb cb cb cb cb cb cb cb cb cb cb

ould the variable be?: Float
cb cb cb cb


5.A program uses the number of seconds in a minute in various calculati
cb cb cb cb cb cb cb cb cb cb cb cb

ons. How should the item that holds the number of seconds in a minute
cb cb cb cb cb cb cb cb cb cb cb cb cb c

bbe de- clared?: Constant integer secondsPerMinute
cb cb cb cb cb


6.A program determines if a user's age is high enough to run for U.S. p
cb cb cb cb cb cb cb cb cb cb cb cb cb cb

resi-
dent. The minimum age requirement is 35. How should the item that hol
cb cb cb cb cb cb cb cb cb cb cb cb cb

ds the minimum age be declared?: Constant integer minAge
cb cb cb cb cb cb cb cb

7.Given integer x = 3 and integer y = 5.What is the value of the expressi
cb cb cb cb cb cb cb cb cb cb cb cb cb cb cb

n (x cb

/ 2.0) + y?: 6.5
cb cb cb cb

8.Given float x = 10.2 and float y = 1.0.What is the value of the expressi
cb cb cb cb cb cb cb cb cb cb cb cb cb cb cb

on x / y?: 10.2
cb cb cb cb

9.What kind of operator is the == in the expression i == 20?: Equality
cb cb cb cb cb cb cb cb cb cb cb cb cb

10.What is the purpose of parentheses () in a programming expression?
cb cb cb cb cb cb cb cb cb cb

: To group expressions
cb cb cb

11.Given float x = 3.0. Which expression evaluates to 2.0?: x /
cb cb cb cb cb cb cb cb cb cb cb

2 + 0.5 /2 + .25
cb cb cb cb cb cb

12.Which expression represents all the values of x, when x is the age ran
cb cb cb cb cb cb cb cb cb cb cb cb cb

ging from 18 to 24 years old?: (x >= 18) and (x <= 24)
cb cb cb cb cb cb cb cb cb cb cb cb cb

13.Which data type is used for items that are measured in length?: Float
cb cb cb cb cb cb cb cb cb cb cb cb

14.Which data type should be used to keep track of how many planes a
cb cb cb cb cb cb cb cb cb cb cb cb cb

re in a hangar?: Integer
cb cb cb cb

15.What does a programmer do first to use an existing programming librar
cb cb cb cb cb cb cb cb cb cb cb

?-
: Include the library
cb cb cb

16.What relationship is common among a programming library's functions
cb cb cb cb cb cb cb cb

-
: Functions all relate to the same purpose.
cb cb cb cb cb cb cb

17.What is an advantage of using a programming library?: The code
cb cb cb cb cb cb cb cb cb cb

has already been tested.
cb cb cb cb

18.Which language is dynamically typed?: Python
cb cb cb cb cb



1cb/
cb9

, WGU D278
cb


Studycbonlinecbatcbhttps://quizlet.com/
19.Which cblanguagecbiscbnotcbbuiltcboncbobject-orientedcbdesigncbprinciples?:cbC
_dshcjb
20.A language substantially supports a programmer creating items like p
cb cb cb cb cb cb cb cb cb

er-
son, teacher, and students. Each item has internal data and some operat
cb cb cb cb cb cb cb cb cb cb cb cb

ions. Which characteristic describes that language?: Object-oriented
cb cb cb cb cb cb




2cb/
cb9

Document information

Uploaded on
May 28, 2025
Number of pages
9
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$10.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.
Sold
26
Followers
2
Items
3415
Last sold
1 month 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