WGU D278 OA | Objective Taken by: Wiseman
Assessment 0% Score 163/163
1. Describe the main functional difference between 'while' loops and 'do while'
loops in programming.
The 'while' loop is faster than the 'do while' loop in execution.
The 'while' loop is used for iterating over arrays only.
The main functional difference is that a 'do while' loop guarantees at
least one execution of the loop body, while a 'while' loop may not
execute at all if the condition is false initially.
The 'do while' loop can only be used with integer data types.
2. What is the definition of 'grammar' in the context of programming languages?
The process of debugging code for errors.
The set of rules that define the structure of statements in a
programming language.
The collection of functions available in a programming language.
The method of writing comments in code.
3. Describe the significance of object-oriented principles in programming
languages.
Object-oriented principles focus solely on data types and variables.
Object-oriented principles are only applicable in web development.
Object-oriented principles allow for encapsulation, inheritance, and
polymorphism, which enhance code reusability and organization.
Object-oriented principles eliminate the need for algorithms in
programming.
,5/31/25, 5:52 PM WGU D278 OA Exam
4. If a software project skips the testing phase, what potential issues might arise
during deployment?
The software will require less maintenance after deployment.
The software will be completed faster without testing.
User satisfaction will automatically increase.
Undetected bugs and unmet requirements may lead to software
failures.
5. Which design process promotes teamwork and cross training, is easy to
manage, and delivers early work?
Waterfall
Agile
6. If you modify the function to 'myNewFunction(integer Iy) z = y + 5', what
would be the new parameter and its significance?
z, which is a constant value in the function.
5, which defines the return type of the function.
y, which is the output of the function.
Iy, which is used as an input for the calculation in the function.
7. Describe the significance of the argument passed to the function popcorn in
determining its output.
The argument is irrelevant to the function's output.
The argument is used for debugging purposes only.
The argument influences the calculation or logic within the function
to produce a specific result.
,5/31/25, 5:52 PM WGU D278 OA Exam
The argument only affects the function's execution time.
8. What is the name of the operator type that produces a boolean value?
Relational operator
Boolean operator
Arithmetic operator
Assignment operator
9. What is the advantage of a high-level programming language rather than a
low-level programming language?
Correct answer
Easier to read, write, and maintain.
10. If the pseudocode is modified to decrement x by 1 instead of 2, what will be
the output?
4, 2, 0
4, 2
4, 3, 2, 1, 0
4, 3, 1
11. Describe the significance of using a descriptive variable name like
'IherIfavoriteItoy' in programming.
, 5/31/25, 5:52 PM WGU D278 OA Exam
Using descriptive variable names improves code readability and
maintainability.
Descriptive variable names have no impact on programming.
Descriptive variable names increase the execution speed of the
program.
Descriptive variable names are only necessary in large projects.
12. A primitive type that can only store two different values:
Correct answer
13. Compiled languages are compiled from source into _____ , which is executed
by the CPU
Correct answer
machine code
14. If a team skips the design phase in the SDLC, what potential issues might
arise during the implementation phase?
Improved software quality from direct coding without design.
Faster implementation due to fewer planning steps.