• Verkeerd document? Gratis ruilen
  • Geschreven door studenten die geslaagd zijn
  • Direct beschikbaar na je betaling
  • Online lezen of als PDF
Verkopen
Kies je studieland
Kies je taal
Document preview thumbnail
Voorbeeld 3 van de 30 pagina's
Tentamen (uitwerkingen)

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

Document preview thumbnail
Voorbeeld 3 van de 30 pagina's

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

Voorbeeld van de inhoud

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

Documentinformatie

Geüpload op
11 april 2025
Aantal pagina's
30
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden
€16,08

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
flyhigher329
3,7
(61)
Verkocht
387
Volgers
175
Items
18555
Laatst verkocht
1 week geleden

Echte notities, van echte studenten
Elk document op Stuvia is geschreven door een medestudent die hetzelfde vak deed. Zo leer je van iemand die het al heeft gehaald.



Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen