• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 7 pages
Exam (elaborations)

D278 (Latest Update ) Pre-Assessment Questions with 100- Correct Answers

Document preview thumbnail
Preview 2 out of 7 pages

What is the return value of a function? A Output of a function B Call to run the function C Data passed to the function D Variable in the declaration of the function - correct answer Output of a function A program should continue accepting input numbers, adding each to a sum, until a 0 is input. Which control structure should be used? A If statement B For loop C Multiple if statements D While loop - correct answer While loop 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? A For loop B While loop C Do-while loop D If-else branch - correct answer Do-while loop What is put to output by the following pseudocode? x = 3 do Put x to output Put " " to output x = x - 1 while x 0 A 3 2 1 0 B 3 2 1 0 -1 C 2 1 0 D 3 2 1 - correct answer 321 A programmer has developed the following code: count = 0 while count is less than 5: print 'Hello'

Content preview

D278 (Latest Update ) Pre-
Assessment Questions with 100% Correct
Answers– WGU

What does a programmer do first to use an existing programming library? - correct
answer Include the library


What relationship is common among a programming library's functions? - correct
answer Functions all relate to the same purpose.


What is an advantage of using a programming library? - correct answer The code has
already been tested.


Which language is dynamically typed? - correct answer Python


Which language is not built on object-oriented design principles? - correct answer C


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? - correct answer Object-oriented


A programmer wants a compiler to report an error if an integer variable is assigned
with a string.


Which type of language should the programmer use? - correct answer Statically Typed


A language uses tags around text to indicate how that text should be formatted.


Which characteristic describes a language having such tags? - correct answer Markup

, D278 (Latest Update ) Pre-
Assessment Questions with 100% Correct
Answers– WGU


What is a characteristic of compiled language? - correct answer Converts to machine
language before running


What is a characteristic of interpreted programs? - correct answer They can be
modified at run time


Which characteristic specifically describes a markup language? - correct answer Tags
surround text to describe desired formatting


Which characteristic specifically describes interpreted language? - correct answer
They can run on any machine having the right interpreter


Which data type is used for items that are measured in length? - correct answer Float


What is the purpose of parentheses () in a programming expression? - correct answer
To group expressions


Which data type should be used to keep track of how many planes are in a hanger? -
correct answer Integer


What is a valid user-defined function name? - correct answer Variable identifier


What is the return value of a function? - correct answer Output of a function

Document information

Uploaded on
November 8, 2025
Number of pages
7
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
CA$20.54

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
9
Followers
0
Items
837
Last sold
4 months ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions