D278 WGU Scripting and Programming Foundations
EXAM A, B & C ALL 300 QUESTIONS AND CORRECT
ANSWERS LATEST UPDATE THIS YEAR
D278 WGU Scripting and Programming Foundations EXAM A
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?
a. Dynamically typed
b. Object-oriented
c. Markup
d. Statically typed
b. Object-oriented
A programmer wants a compiler to report an error if an integer variable is assigned with a
string. Which kind of language should the programmer use?
a. Dynamically typed
1
, Page 2 of 84
b. Object-oriented
c. Markup
d. Statically typed
d. Statically typed
A language uses tags around text to indicate how that text should be formatted. Which
characteristic describes a language having such tags?
a. Objects
b. Compiler
c. Script
d. Markup
d. Markup
What is a characteristic of a compiled language?
a. Runs one statement at a time by another program
b. Is slower than an interpreted language
c. Converts to machine language before running
d. Runs on any machine having an interpreter
c. Converts to machine language before running
2
, Page 3 of 84
What is a characteristic of an interpreted language?
a. Runs faster than compiled languages
b. Outputs an interpreter to run the program
c. Runs easily on different kinds of machines
d. Needs to be converted to machine code first
c. Runs easily on different kinds of machines
What is an advantage of interpreted programs?
a. They generally run faster than compiled programs.
b. They can be modified at run time.
c. They use memory more efficiently.
d. They create a separate file.
b. They can be modified at run time.
Which characteristic specifically describes a markup language?
a. Tags surround text to describe desired formatting.
b. A program's execution marks output with numbers and strings.
c. A compiler marks statements with 0's and 1's.
d. An interpreter executes statements one at a time.
3
, Page 4 of 84
a. Tags surround text to describe desired formatting.
What does a programmer do first to use an existing programming library?
a. Write the library's functions
b. Modify the library's functions
c. Include the library
d. Discard the library
c. Include the library
What relationship is common among a programming library's functions?
a. Functions all relate to the same purpose.
b. Each function competes with the other function.
c. Each function fixes bugs in the other functions.
d. Every function performs the identical computation.
a. Functions all relate to the same purpose
What is an advantage of using a programming library?
a. The code has not been tested.
b. The code has already been tested.
4