100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

WGU D278 QUESTIONS & ANSWERS(RATED A+)

Rating
-
Sold
-
Pages
6
Grade
A+
Uploaded on
22-11-2025
Written in
2025/2026

A car drove 200 miles using 10 gallons of fuel. Which operation should be used to compute the miles per gallon, which is 20? - ANSWERDivision Which operator should be used to determine if a number is evenly divisible by 5? - ANSWER% A variable should hold the names of all past U.S. presidents. Which data type should the variable be? - ANSWERString array

Show more Read less
Institution
WGU D278
Course
WGU D278









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
WGU D278
Course
WGU D278

Document information

Uploaded on
November 22, 2025
Number of pages
6
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

  • wgu d278

Content preview

WGU D278 QUESTIONS &
ANSWERS(RATED A+)
A car drove 200 miles using 10 gallons of fuel. Which operation should be used to
compute the miles per gallon, which is 20? - ANSWERDivision

Which operator should be used to determine if a number is evenly divisible by 5? -
ANSWER%

A variable should hold the names of all past U.S. presidents. Which data type should
the variable be? - ANSWERString array

A variable should hold a person's height in meters. Which data type should the variable
be? - ANSWERFloat

A program uses the number of seconds in a minute in various calculations. How should
the item that holds the number of seconds in a minute be declared? -
ANSWERConstant integer secondsPerMinute

A program determines if a user's age is high enough to run for U.S. president. The
minimum age requirement is 35. How should the item that holds the minimum age be
declared? - ANSWERConstant integer minAge

Given integer x = 3 and integer y = 5.What is the value of the expression (x / 2.0) + y? -
ANSWER6.5

Given float x = 10.2 and float y = 1.0.What is the value of the expression x / y? -
ANSWER10.2

What kind of operator is the == in the expression i == 20? - ANSWEREquality

What is the purpose of parentheses () in a programming expression? - ANSWERTo
group expressions

Given float x = 3.0. Which expression evaluates to 2.0? - ANSWERx / 2 + 0.5 /2 + .25

Which expression represents all the values of x, when x is the age ranging from 18 to
24 years old? - ANSWER(x >= 18) and (x <= 24)

Which data type is used for items that are measured in length? - ANSWERFloat

Which data type should be used to keep track of how many planes are in a hangar? -
ANSWERInteger

, What does a programmer do first to use an existing programming library? -
ANSWERInclude the library

What relationship is common among a programming library's functions? -
ANSWERFunctions all relate to the same purpose.

What is an advantage of using a programming library? - ANSWERThe code has already
been tested.

Which language is dynamically typed? - ANSWERPython

Which language is not built on object-oriented design principles? - ANSWERC

A language substantially supports a programmer creating items like person, teacher,
and students. Each item has internal data and some operations. Which characteristic
describes that language? - ANSWERObject-oriented

A programmer wants a compiler to report an error if an integer variable is assigned with
a string. Which kind of language should the programmer use? - ANSWERStatically
typed

A language uses tags around text to indicate how that text should be formatted. Which
characteristic describes a language having such tags? - ANSWERMarkup

What is a characteristic of a compiled language? - ANSWERConverts to machine
language before running

What is a characteristic of an interpreted language? - ANSWERRuns easily on different
kinds of machines


function P(integer x) returns integer y y = 2 * x What does P(5) evaluate to? -
ANSWER10

Function F() Put "Hey" to output What entire output appears after three successive calls
to F()? - ANSWERHeyHeyHey

What is a valid user-defined function name? - ANSWERAny valid identifier

A function MyFct has an input x and an output z. What does MyFct return? - ANSWERz
only

What is the return value of a function? - ANSWEROutput of a function

A program should continue accepting input numbers, adding each to a sum, until a 0 is
input. Which control structure should be used? - ANSWERWhile loop

Get to know the seller

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.
shantelleG West Virgina University
View profile
Follow You need to be logged in order to follow users or courses
Sold
603
Member since
2 year
Number of followers
368
Documents
17777
Last sold
1 day ago
GOLD PREMIUM

HELLO? welcome to my store thanks for visiting this page here you are guaranteed of well revised and assured EXAMS ALL GRADED A+ thus making your education journey easy and seamless . DO NOT HESITATE TO CONTACT ME IF YOU ARE IN NEED OF ANY EXAM .I AM READY 24/7 TO ASSIST YOU ALSO REFER YOUR FRIENDS.

4.1

114 reviews

5
69
4
10
3
21
2
2
1
12

Recently viewed by you

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

Frequently asked questions