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

WGU - Scripting and Programming Foundations - D278 Questions with verified answers

Rating
-
Sold
-
Pages
6
Grade
A+
Uploaded on
25-02-2025
Written in
2024/2025

A car drove 200 miles using 10 gallons of fuel. Which operation should be used to compute the miles per gallon, which is 20? Ans-Division A function calculates the weight difference (Diff) given two sample weights (S1 and S2). What should be the output from the function? Ans-Diff A function MyFct has an input x and an output z. What does MyFct return? Ans-z only A function returns a number x cubed. For example, if x is 3, the function returns 3 * 3 * 3, or 27. What should be the input to the function? Ans-x A function should convert hours and minutes to seconds, such as converting 1 hour and 10 minutes to 4,200 seconds. What should be the input to the functi

Show more Read less
Institution
Module









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

Written for

Institution
Module

Document information

Uploaded on
February 25, 2025
Number of pages
6
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

WGU - Scripting and Programming Foundations - D278
Questions with verified answers
A car drove 200 miles using 10 gallons of fuel.
Which operation should be used to compute the miles per gallon, which is 20?
Ans✓✓✓-Division


A function calculates the weight difference (Diff) given two sample weights (S1
and S2).


What should be the output from the function? Ans✓✓✓-Diff


A function MyFct has an input x and an output z.


What does MyFct return? Ans✓✓✓-z only


A function returns a number x cubed. For example, if x is 3, the function returns 3
* 3 * 3, or 27.


What should be the input to the function? Ans✓✓✓-x


A function should convert hours and minutes to seconds, such as converting 1
hour and 10 minutes to 4,200 seconds.


What should be the input to the function? Ans✓✓✓-Hours and minutes

, 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? Ans✓✓✓-Object-oriented


A language uses tags around text to indicate how that text should be formatted.


Which characteristic describes a language having such tags? Ans✓✓✓-Markup


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? Ans✓✓✓-
Constant integer minAge


A program should continue accepting input numbers, adding each to a sum, until
a 0 is input.


Which control structure should be used? Ans✓✓✓-While loop


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?
Ans✓✓✓-Constant integer secondsPerMinute
£13.08
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Also available in package deal

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.
cracker Chamberlain School Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
2013
Member since
3 year
Number of followers
1342
Documents
46921
Last sold
10 hours ago
✨ Cracker – Verified Study Powerhouse

Welcome to your shortcut to academic and certification success. I'm Cracker, a trusted top seller I specialize in high-quality study guides, test banks, certification prep, and real-world exam material all tailored to help you pass fast and score high.

3.8

369 reviews

5
162
4
84
3
52
2
22
1
49

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 exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions