WGU D278 Scripting and Programming
Foundations – Questions With Perfect Solutions
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 Correct Answer - 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. Correct
Answer - 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.
c. The code can be used across programming languages.
d. The code has already been compiled. Correct Answer - b.
The code has already been tested.
Which language is dynamically typed?
a. C
b. С++
c. Java
,d. Python Correct Answer - d. Python
Which language is not built on object-oriented design principles?
a. C
b. С++
c. Java
d. Python Correct Answer - a. 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?
a. Dynamically typed
b. Object-oriented
c. Markup
d. Statically typed Correct Answer - 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
b. Object-oriented
c. Markup
d. Statically typed Correct Answer - 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 Correct Answer - 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 Correct Answer -
c. Converts to machine language before running
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 Correct Answer -
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. Correct Answer - 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.
Foundations – Questions With Perfect Solutions
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 Correct Answer - 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. Correct
Answer - 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.
c. The code can be used across programming languages.
d. The code has already been compiled. Correct Answer - b.
The code has already been tested.
Which language is dynamically typed?
a. C
b. С++
c. Java
,d. Python Correct Answer - d. Python
Which language is not built on object-oriented design principles?
a. C
b. С++
c. Java
d. Python Correct Answer - a. 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?
a. Dynamically typed
b. Object-oriented
c. Markup
d. Statically typed Correct Answer - 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
b. Object-oriented
c. Markup
d. Statically typed Correct Answer - 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 Correct Answer - 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 Correct Answer -
c. Converts to machine language before running
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 Correct Answer -
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. Correct Answer - 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.