100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Examen

WGU D278 Final Exam Scripting and Programming - Foundations | Questions and Verified Answers | 100% Correct | Grade A

Puntuación
-
Vendido
-
Páginas
85
Grado
A+
Subido en
10-12-2025
Escrito en
2025/2026

A programming library is used to: (choose two) - answer- improve productivity add functionality related to a single purpose Which language type executes faster? - answer- A *compiled* language. Which language type is NOT written for a specific type of machine? - answer- interpreted language

Mostrar más Leer menos
Institución
WGU D278
Grado
WGU D278

Vista previa del contenido

WGU D278 Final Exam Scripting and Programming -
Foundations | Questions and Verified Answers | 100%
Correct | Grade A
A programming library is used to: (choose two) - answer- improve productivity

add functionality related to a single purpose



Which language type executes faster? - answer- A *compiled* language.



Which language type is NOT written for a specific type of machine? - answer-
interpreted language



Which languages are compiled? - answer- C, C++, Java, C#



Which languages support object-orientated principles? - answer- Python

JavaScript

C#

MATLAB

C++

Java



Which type of language cannot change a variables type while running the program? -
answer- statically typed



Which type of language is considered easier to use? - answer- dynamically typed

,You create an integer variable and assign it a string value. When you run the program
you do not receive an error. What type of language are you using? - answer-
dynamically typed



Which type of language leads to more understandable, manageable, and properly-
executing programs? - answer- object-oriented



A mark-up language is: - answer- used to describe content



function myNewFunction(integer x) z = x - 3returns integer yWhat is the parameter? -
answer- integer x



What happens if you define a function but do not call it? - answer- Nothing. The code
will simply remain in memory but will not execute.



A function, anyKey, has an input x and an output z. What does anyKey return? -
answer- z



function popcorn(integer k) returns integer y y = k * 2 What does popcorn(12)
evaluate to? - answer- 24



function math(integer x) returns integer y y = 3 * x + 1 What does math(5) evaluate
to? - answer- 16



Function hello() Put "Hello my friend" to output What output appears after two
successive calls to the function? - answer- Hello my friendHello my friend

,Using the following function, which portion is the function declaration? function
myFunction(integer b) a = b - 3 returns integer a + b myFunction(6) - answer-
function myFunction(integer b)



Using the following function, which portion contains the function's argument?
function myFunction(integer b) a = b - 3 returns integer a + b myFunction(6) -
answer- myFunction(6)



Using the following function, which portion calls the function? function
myFunction(integer b) a = b - 3 returns integer a + b myFunction(6) - answer-
myFunction(6)



Using the following function, which portion defines the output? function
myFunction(integer b) a = b - 3 returns integer a + b myFunction(6) - answer- returns
integer a + b



Your user needs to enter a number into the program that will be used throughout its
execution. Before the user enters a number, which loop type can determine how
many times the loop will run? - answer- for



Which loop types are best suited to continually check a test expression? - answer-
while

do while



What type of loop is best suited to perform operations over a range of values? -
answer- for



What type of loop is shown here? - answer- while

, What is the purpose of an "if" statement? - answer- To control what code executes
based on the result of a test expression.



What is it called if a "while" statement's test expression never changes to false? -
answer- Infinite Loop



How many times can you call a function to run? - answer- as many times as you want.



What is the primary difference between a "while" loop and a "do while" loop? -
answer- The "do while" is guarenteed to run at least once before testing the
condition.



How many times will this loop iterate? for i = 0; i < 4; i = i + 1; // Loop statements -
answer- four times



Fill in the blank so that the loop will iterate 10 times. for i = 1; _________; i = i + 1; //
Loop statements - answer- i <= 10



What is put to output by the following pseudocode? x = 4 while x >= 0 Put x to
output x = x - 2 - answer- 420



What is put to output by the following pseudocode? x = 6 while x > 0 Put x to output
Put " " to output x = x - 2 - answer- 6 4 2



How many times does this loop run? a = 8 b = 4 while a % b == 0: Put a to output b
=b+2

Loop Application Project - answer- 1

Escuela, estudio y materia

Institución
WGU D278
Grado
WGU D278

Información del documento

Subido en
10 de diciembre de 2025
Número de páginas
85
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

$17.49
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Academicaffairs Kaplan University
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
270
Miembro desde
3 año
Número de seguidores
221
Documentos
1394
Última venta
1 día hace

3.9

35 reseñas

5
16
4
7
3
8
2
1
1
3

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes