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

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

Rating
-
Sold
-
Pages
30
Grade
A+
Uploaded on
11-04-2025
Written in
2024/2025

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

Institution
Ultimate D278 Scripting And Programming Foundation
Course
Ultimate D278 Scripting and Programming Foundation










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

Written for

Institution
Ultimate D278 Scripting and Programming Foundation
Course
Ultimate D278 Scripting and Programming Foundation

Document information

Uploaded on
April 11, 2025
Number of pages
30
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

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

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.
flyhigher329 Liberty University
View profile
Follow You need to be logged in order to follow users or courses
Sold
343
Member since
3 year
Number of followers
175
Documents
16911
Last sold
2 weeks ago
STUDY GUIDES &amp; ALL NURSING AND MORE EXAMS(RATED A+)

ARE YOU LOOKING FOR EXAMS!! MAY IT BE NURSING,EMT,REALTORS e.t.c WELCOME TO OUR SHOP FOR ALL YOU NEED TO PASS COZ WE ARE VERIFIED AND GUARANTEED TO PASS, DONT FORGET TO GIVE A REVIEW AFTER YOU HAVE PASSED THE EXAMS.........

3.7

58 reviews

5
24
4
10
3
14
2
4
1
6

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