WGU D278 SCRIPTING AND PROGRAMMING
|PA|PRE-ASSESSMENT EXAM QUESTIONS
AND ANSWERS
Correct
100%
Incorrect
of 70
Term
What is an advantage of using a programming library?
Give this one a try later!
, Don't know?
2 of 70
Term
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
Give this one a try later!
at least one integer is positive all integers are positive
all integers are negative at least one integer is negative
Don't know?
3 of 70
Term
Joe is building an online game. He wants to provide a riddle and
have the player guess the answer. The game needs to prompt the
user to enter the answer, check to see if it the input provided does
,not match the correct answer, and continue prompting the user
until the answer entered matches the correct answer.
Which control structure supports Joe’s needs?
Give this one a try later!
for loop if-else branch
while loop do-while loop
Don't know?
4 of 70
Term
A language substantially supports a programmer creating items
like person, teacher, and students. Each item has internal data and
some operations. Which characteristic describes that language?
Give this one a try later!
statically typed dynamically typed
object-oriented markup
Don't know?
, 5 of 70
Term
A programmer shows a program's first version to a customer.
Based on feedback, the programmer begins writing a second
version of the program. In which phase of an agile approach does
the writing of a second version of the program occur?
Give this one a try later!
analysis testing
implementation design
Don't know?
6 of 70
Term
A program uses the number of seconds in a minute in various
calculations. How should the item that holds the number of
seconds in a minute be declared?
Give this one a try later!
constant float userTime variable float userTime
variable integer secondsPerMinute
|PA|PRE-ASSESSMENT EXAM QUESTIONS
AND ANSWERS
Correct
100%
Incorrect
of 70
Term
What is an advantage of using a programming library?
Give this one a try later!
, Don't know?
2 of 70
Term
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
Give this one a try later!
at least one integer is positive all integers are positive
all integers are negative at least one integer is negative
Don't know?
3 of 70
Term
Joe is building an online game. He wants to provide a riddle and
have the player guess the answer. The game needs to prompt the
user to enter the answer, check to see if it the input provided does
,not match the correct answer, and continue prompting the user
until the answer entered matches the correct answer.
Which control structure supports Joe’s needs?
Give this one a try later!
for loop if-else branch
while loop do-while loop
Don't know?
4 of 70
Term
A language substantially supports a programmer creating items
like person, teacher, and students. Each item has internal data and
some operations. Which characteristic describes that language?
Give this one a try later!
statically typed dynamically typed
object-oriented markup
Don't know?
, 5 of 70
Term
A programmer shows a program's first version to a customer.
Based on feedback, the programmer begins writing a second
version of the program. In which phase of an agile approach does
the writing of a second version of the program occur?
Give this one a try later!
analysis testing
implementation design
Don't know?
6 of 70
Term
A program uses the number of seconds in a minute in various
calculations. How should the item that holds the number of
seconds in a minute be declared?
Give this one a try later!
constant float userTime variable float userTime
variable integer secondsPerMinute