Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

WGU D278 – Scripting & Programming Foundations Final Exam (2026/2027) | Actual Questions & Verified Answers | 100% Correct | Grade A+ | Guaranteed Pass!!

Beoordeling
-
Verkocht
-
Pagina's
30
Cijfer
A+
Geüpload op
07-12-2025
Geschreven in
2025/2026

WGU D278 – Scripting & Programming Foundations Final Exam (2026/2027) | Actual Questions & Verified Answers | 100% Correct | Grade A+ | Guaranteed Pass!! What is the loop variable initialization in the following pseudocode? y = 0 s = 100.0 while y 10 s = s + (s * 5.0) y = y + 1 A y = 0 B y = y + 1 C s = 100.0 D s = s + ( s * 5.0) - ANSWER: A What does the following algorithm determine? if x == y z = 1 else z = 0 A Whether x and y are the same B Whether x and y are negative C Whether x is 1 D Whether x is 0 - ANSWER: A What does the following algorithm accomplish? x = Get next input if x == -1 Put "Goodbye" to output A Outputs -1 when user types any input B Outputs "x" when user types -1 C Outputs -1 when x is positive D Outputs Goodbye when user types -1 2 - ANSWER: D Order the steps needed to output the minimum of x and y from first (1) to last (4). Select your answers from the pull-down list. A Declare variable min B Put min to output C min = x D If y min, set min = y - ANSWER: ACDB Order the steps needed to calculate speed in miles per hour given a start and end location and time traveled in hours from first (1) to last (4). Select your answers from the pull-down list. A Put speedMph to output B Declare variables distMiles and speedMph C distMiles = endLocation – startLocation D speedMph = distMiles / timeHours - ANSWER: BCDA Order the tasks needed to create a pyramid (large on bottom, small on top) on a table from first (1) to last (4). Select your answers from the pull-down list. A Place largest shape. B Clear table. C Place smallest shape. D Place middle-sized shape. - ANSWER: BADC 3 What does an output of 1 indicate for the following algorithm running on a fiveelement list of integers? i = 0 x = 0 while i 5 if list[i] 0 x = 1 i = i + 1 Put x to output A All integers are positive. B All integers are negative. C At least one integer is negative. D At least one integer is positive. - ANSWER: C When should a programmer develop an algorithm to solve a problem? A Before knowing the problem. B Before writing a program to solve the problem. C While writing a program to solve the problem. D After writing a program to solve the problem . - ANSWER: B Which text represents an algorithm? A Cats and dogs have tails. B Insert key, turn key, open door. C The forecast for tomorrow is rain. D A box has balls, bats, and hats. 4 - ANSWER: B Which operator should be used to determine if a number is evenly divisible by 5? A + B - C * D % - ANSWER: % A car drove 200 miles using 10 gallons of fuel. Which operation should be used to compute the miles per gallon, which is 20? A Addition B Subtraction C Multiplication D Division - ANSWER: Division

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

WGU D278 – Scripting & Programming Foundations Final
Exam (2026/2027) | Actual Questions & Verified Answers |
100% Correct | Grade A+ | Guaranteed Pass!!


What is the loop variable initialization in the following pseudocode?
y = 0 s = 100.0 while y < 10 s = s + (s * 5.0) y = y + 1
Ay=0
By=y+1
C s = 100.0
D s = s + ( s * 5.0)
- ANSWER: A




What does the following algorithm determine? if x == y
z = 1 else z = 0
A Whether x and y are the same
B Whether x and y are negative
C Whether x is 1
D Whether x is 0
- ANSWER: A


What does the following algorithm accomplish?
x = Get next input if x == -1
Put "Goodbye" to output
A Outputs -1 when user types any input
B Outputs "x" when user types -1
C Outputs -1 when x is positive
D Outputs Goodbye when user types -1




1

, - ANSWER: D




Order the steps needed to output the minimum of x and y from first (1) to last (4).
Select your answers from the pull-down list.
A Declare variable min
B Put min to output
C min = x
D If y < min, set min = y
- ANSWER: ACDB


Order the steps needed to calculate speed in miles per hour given a start and end
location and time traveled in hours from first (1) to last (4).
Select your answers from the pull-down list. A
Put speedMph to output
B Declare variables distMiles and speedMph
C distMiles = endLocation – startLocation
D speedMph = distMiles / timeHours
- ANSWER: BCDA


Order the tasks needed to create a pyramid (large on bottom, small on top) on a
table from first (1) to last (4).
Select your answers from the pull-down list.
A Place largest shape.
B Clear table.
C Place smallest shape.
D Place middle-sized shape.
- ANSWER: BADC




2

, What does an output of 1 indicate for the following algorithm running on a five-
element list of integers?
i = 0 x = 0 while
i<5
if list[i] < 0 x = 1 i
=i+1
Put x to output
A All integers are positive.
B All integers are negative.
C At least one integer is negative.
D At least one integer is positive.
- ANSWER: C


When should a programmer develop an algorithm to solve a problem?
A Before knowing the problem.
B Before writing a program to solve the problem.
C While writing a program to solve the problem. D After writing a program to
solve the problem .
- ANSWER: B




Which text represents an algorithm?
A Cats and dogs have tails.
B Insert key, turn key, open door.
C The forecast for tomorrow is rain.
D A box has balls, bats, and hats.




3

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
7 december 2025
Aantal pagina's
30
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$16.99
Krijg toegang tot het volledige document:

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


Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

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.
ExcelAcademia2026 Chamberlain College Of Nursing
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
2229
Lid sinds
4 jaar
Aantal volgers
1651
Documenten
9074
Laatst verkocht
10 uur geleden
EXCEL ACADEMIA TUTORS

At Excel Academia Tutoring, You will get solutions to all subjects in both assignments and major exams. Contact me for assistance. Good luck! Well-researched education materials for you. Expert in Nursing, Mathematics, Psychology, Biology etc. My Work has the Latest &amp; Updated Exam Solutions, Study Guides and Notes (100% Verified Solutions that Guarantee Success)

3.7

377 beoordelingen

5
156
4
80
3
70
2
23
1
48

Recent door jou bekeken

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