• 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 3 out of 30 pages
Exam (elaborations)

Ultimate D278 Scripting and Programming Foundations Question and answers 100% correct 2025

Document preview thumbnail
Preview 3 out of 30 pages

Ultimate D278 Scripting and Programming Foundations Question and answers 100% correct 2025

Content preview

Ultimate D278 Scripting and Programming Foundations
Question and answers 100% correct 2025

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

2. A car drove 200 miles using 10 gallons Division
of fuel. Which operation should be used
to compute the miles per gallon, which
is 20?

3. A variable should hold a person's height in me- Float
ters.
Which data type should the variable be?

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

5. A program uses the number of 8. Given float x
seconds in a minute in various = 10.2 and
calculations. float y =
How should the item that holds the 1.0. What is
number of seconds in a minute be the value of
declared? the
expression x
6. A program determines if a user's age is /y?
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?

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

1/
30

,Ultimate D278 Scripting and Programming Foundations
Question and answers 100% correct 2025
Constant integer secondsPerMinute



6.5

Constant integer minAge
10.2

9. Equality




2/
30

,Ultimate D278 Scripting and Programming Foundations
Question and answers 100% correct 2025

What kind of operator is the == in the
expres- sion i == 20?

10. What is the purpose of parentheses () ingroup expressions
a pro- gramming expression?

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

12. Which expression evaluates to true only >= 18) and ( x <= 24)
when the user is within 3 years of 21
years, given a variable x containing a
user's age?

13. Which data type is used for items that are mea- Float
sured in length?

14. Which data type should be used to keep Integer
track of how many planes are in a
hangar?
Hours and minutes
15. 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?

16. A function returns a number x cubed. For
exam- x ple, if x is 3, the function returns
3 * 3 * 3, or 27. What should be the input
to the function?

17. A function calculates the weight difference (Diff)
3/
30

Document information

Uploaded on
April 11, 2025
Number of pages
30
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$17.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.
flyhigher329
3.7
(61)
Sold
387
Followers
175
Items
18555
Last sold
1 week ago



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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions