WGU C173 SCRIPTING AND PROGRAMMING – FOUNDATIONS OBJECTIVE ASSESSMENT EXAM, Exams of Programming Languages

WGU C173 SCRIPTING AND PROGRAMMING – FOUNDATIONS OBJECTIVE ASSESSMENT EXAM WGU C173 SCRIPTING AND PROGRAMMING – FOUNDATIONS OBJECTIVE ASSESSMENT EXAM WGU C173 SCRIPTING AND PROGRAMMING – FOUNDATIONS OBJECTIVE ASSESSMENT EXAM WGU C173 SCRIPTING AND PROGRAMMING – FOUNDATIONS OBJECTIVE ASSESSMENT EXAM WGU C173 SCRIPTING AND PROGRAMMING – FOUNDATIONS OBJECTIVE ASSESSMENT EXAM WGU C173 SCRIPTING AND PROGRAMMING – FOUNDATIONS OBJECTIVE ASSESSMENT EXAM

Typology: Exams

2025/2026

Available from 01/15/2026

richard-brown-3
richard-brown-3 🇺🇸

310 documents

1 / 18

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1g/
g5
WGU C173 SCRIPTING AND PROGRAMMING FOUNDATIONS
OBJECTIVE ASSESSMENT EXAM
1.Whichgoperatorgshouldgbegusedgtogdeterminegifgagnumbergisgevenlygdivisiblegb
yg5?
gANSg%g(modulo)
2.Agvariablegshouldgholdgagperson'sgheightgingmeters.g
Whatgdatagtypegshouldgthegvariablegbe?
gANSgFloat
3. Agprogramgusesgthegnumbergofgsecondsgingagminutegingvariousgcalculations.
Howgshouldgthegitemgthatgholdsgthegnumbergofgsecondsgingagminutegbegde-gclared?
gANSgConstantgintegergsecondsgPergMinute
4. Agprogramgdeterminesgifgaguser'sgagegisghighgenoughgtogrungforgU.S.gpresi-
gdent.
Thegminimumgagegrequirementgisg35.
Howgshouldgthegitemgthatgholdsgthegminimumgagegbegdeclared?
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download WGU C173 SCRIPTING AND PROGRAMMING – FOUNDATIONS OBJECTIVE ASSESSMENT EXAM and more Exams Programming Languages in PDF only on Docsity!

1 g/

WGU C173 SCRIPTING AND PROGRAMMING – FOUNDATIONS

OBJECTIVE ASSESSMENT EXAM

1.Whichgoperatorgshouldgbegusedgtogdeterminegifgagnumbergisgevenlygdivisiblegb

yg5?

gANSg%g(modulo)

2.Agvariablegshouldgholdgagperson'sgheightgingmeters.g

Whatgdatagtypegshouldgthegvariablegbe?

gANSgFloat

  1. Agprogramgusesgthegnumbergofgsecondsgingagminutegingvariousgcalculations.

Howgshouldgthegitemgthatgholdsgthegnumbergofgsecondsgingagminutegbegde-gclared?

gANSgConstantgintegergsecondsgPergMinute

  1. Agprogramgdeterminesgifgaguser'sgagegisghighgenoughgtogrungforgU.S.gpresi-

gdent.

Thegminimumgagegrequirementgisg35.

Howgshouldgthegitemgthatgholdsgthegminimumgagegbegdeclared?

2 g/

gANSgConstantintegergminAge

4 g/

Whatgshouldgbegtheginputgtogthegfunction?

gANSgHoursgandgminutes

12.FunctiongF()gPutg"Hey"gtogoutputgWhatgentiregoutputgappearsgaftergthreegs

uccessivegcallsgtogF()?

gANSgHeyHeyHey

13.Whatgisgagvalidguser-definedgfunctiongname?

gANSgAnygvalidgidentifier

14.AgfunctiongMyFctghasganginputgxgandgangoutputgz.gW

hatgdoesgMyFctgreturn?

gANSgzgonly

15.Whatgisgthegreturngvaluegofgagfunction?

gANSgOutputgofgagfunction

  1. Agprogramgshouldgcontinuegacceptingginputgnumbers,gaddinggeachgtogags

um,guntilgag 0 gisginput.

Whichgcontrolgstructuregshouldgbegused?

gANSgWhilegloop

5 g/

  1. Joegisgbuildinggangonlineggame.gHegwantsgtogprovidegagriddlegandghave

7 g/

andgcontinuegpromptinggtheguserguntilgtheganswergenteredgmatchesgthegcorrectgan

swer.

WhichgcontrolgstructuregsupportsgJoe'sgneeds?

gANSgDo-whilegloop

18.xg=g 3

do

PutgxgtogoutputgP

utg"g"gtogoutputgxg=

gxg-g 1

whilegxg>g 0 gANSg 3 g 2 g 1

  1. Whatgisgthegloopgexpressiongingthegfollowinggpseudocode?

ig=g 0

whilegig<g 20 gPut

gigtogoutputgig=gig

+g 1 gANSgi

<g 20

  1. Whatgisgthegloopgvariableginitializationgingthegfollowinggpseudocode?

yg=g 0

sg=g100.

whilegyg<g 10

8 g/

sg=gsg+g(sg*g5.0)

10 g/

27.Whichgphasegofgangagilegapproachgwouldgdefinegaghypothesisgtogfindgagpr

oblemgingagprogram?gANSgTesting

  1. Whichgphasegofgangagilegapproachgwouldgcreategangexecutablegprogram?-

gANSgImplementation

29.Whichgphasegofgangagilegapproachgwouldgcreategaglistgofgcomponentsgn

eededgtogbuildgangonlinegauctiongsite?gANSgDesign

30.Whichgphasegofgagwaterfallgapproachgdefinesgagprogram'sggoals?gANS

Analysis

  1. Aftergagprogrammergisgdonegwritinggagprogram,ganothergpersongrunsgthegpro

gramghundredsgofgtimes,geachgtimegwithgdifferentginput,gcheckinggthatgeachgrung

yieldsgcorrectgoutput.

Whichgphasegofgagwaterfallgapproachgisgthegpersongcarryinggout?gANSgTesting

  1. AgprogrammergdecidesgagprogramgshouldgconvertgU.S.gunitsgtogmetricgunitsg

andgdecidesgtogwritegthegprogramgingC++gusinggseveralgfunctions.

Whichgphasegofgagwaterfallgapproachgisgoccurringgwhengthegprogrammergstartsgwr

itinggthegprogram?gANSgImplementation

  1. Agcompanyghasgagnewgprojectgitgwishesgtogimplementgtogtrackgandganalyzege

mployeegandgcustomerginteractions.gThegcompanygleadershipgdeterminesgthatgt

hegsystemgshouldgsupportgdirectgdatagentrygasgwellgasgautomatedgdatagcapturego

fgphonegcallsgandgemails.

Whichgphasegofgthegwaterfallgprocessgisgoccurring?gANSgAnalysis

  1. Agprogrammergshowsgagprogram'sgfirstgversiongtogagcustomer.gThegcus-

gtomergprovidesgfeedback,gwhichgcausesgthegprogrammergtogchangegtheggoalsgo

fgthegprogram.

11 g/

Ingwhichgphasegofgangagilegapproachgareggoalsgchangedgbasedgongcustomer

13 g/

38.Whatgisgthegpurposegofgthegfollowinggclassgdiagram?

gANSgDepictsgthegEmployeeclass'gname,gdatagmembers,gandgfunctions

  1. Whatgisgthegpurposegofgagusegcasegdiagram,gsuchgasgthegfollowinggdiagram?-

gANSgDescribesghowgagusergcanginteractgwithgagprogram

40.Whichgelementsgaregcharacteristicgofgagclassgdiagram?

gANSgSystem'sgclasses,attributes,gandgmethodsgandgtheirgfeatures,gconstr

aints,gandgr e

e v

la e

t r

i a

o l

n u

s s

h e

ips

14 g/

16 g /

50.Whatgisgagcharacteristicgofgagcompiledglanguage?gANSgConvertsgto

17 g /

machinelanguagegbeforegrunning

51.Whatgisgagcharacteristicgofganginterpretedglanguage?

gANSgRunsgeasilygongdifferentkindsgofgmachines

52.Whatgisgangadvantagegofginterpretedgprograms?

gANSgTheygcangbegmodifiedgatgruntime.