• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 9 páginas
Examen

WGU D278

Document preview thumbnail
Vista previa 2 fuera de 9 páginas

Exam of 9 pages for the course WGU D278 at WGU D278 (WGU D278)

Vista previa del contenido

WGU D278 cb


Studycbonlinecbatcbhttps://quizlet.com/
_dshcjb
1.A car drove 200 miles using 10 gallons of fuel. Which operation shoul
cb cb cb cb cb cb cb cb cb cb cb cb

d be used to compute the miles per gallon, which is 20?: Division
cb cb cb cb cb cb cb cb cb cb cb cb


2.Which operator should be used to determine if a number is evenly divi
cb cb cb cb cb cb cb cb cb cb cb cb

sible by 5?: % cb cb cb


3.A variable should hold the names of all past U.S. presidents. Which
cb cb cb cb cb cb cb cb cb cb cb cb

data type should the variable be?: String array
cb cb cb cb cb cb cb


4.A variable should hold a person's height in meters. Which data type sh
cb cb cb cb cb cb cb cb cb cb cb cb

ould the variable be?: Float
cb cb cb cb


5.A program uses the number of seconds in a minute in various calculati
cb cb cb cb cb cb cb cb cb cb cb cb

ons. How should the item that holds the number of seconds in a minute
cb cb cb cb cb cb cb cb cb cb cb cb cb c

bbe de- clared?: Constant integer secondsPerMinute
cb cb cb cb cb


6.A program determines if a user's age is high enough to run for U.S. p
cb cb cb cb cb cb cb cb cb cb cb cb cb cb

resi-
dent. The minimum age requirement is 35. How should the item that hol
cb cb cb cb cb cb cb cb cb cb cb cb cb

ds the minimum age be declared?: Constant integer minAge
cb cb cb cb cb cb cb cb

7.Given integer x = 3 and integer y = 5.What is the value of the expressi
cb cb cb cb cb cb cb cb cb cb cb cb cb cb cb

n (x cb

/ 2.0) + y?: 6.5
cb cb cb cb

8.Given float x = 10.2 and float y = 1.0.What is the value of the expressi
cb cb cb cb cb cb cb cb cb cb cb cb cb cb cb

on x / y?: 10.2
cb cb cb cb

9.What kind of operator is the == in the expression i == 20?: Equality
cb cb cb cb cb cb cb cb cb cb cb cb cb

10.What is the purpose of parentheses () in a programming expression?
cb cb cb cb cb cb cb cb cb cb

: To group expressions
cb cb cb

11.Given float x = 3.0. Which expression evaluates to 2.0?: x /
cb cb cb cb cb cb cb cb cb cb cb

2 + 0.5 /2 + .25
cb cb cb cb cb cb

12.Which expression represents all the values of x, when x is the age ran
cb cb cb cb cb cb cb cb cb cb cb cb cb

ging from 18 to 24 years old?: (x >= 18) and (x <= 24)
cb cb cb cb cb cb cb cb cb cb cb cb cb

13.Which data type is used for items that are measured in length?: Float
cb cb cb cb cb cb cb cb cb cb cb cb

14.Which data type should be used to keep track of how many planes a
cb cb cb cb cb cb cb cb cb cb cb cb cb

re in a hangar?: Integer
cb cb cb cb

15.What does a programmer do first to use an existing programming librar
cb cb cb cb cb cb cb cb cb cb cb

?-
: Include the library
cb cb cb

16.What relationship is common among a programming library's functions
cb cb cb cb cb cb cb cb

-
: Functions all relate to the same purpose.
cb cb cb cb cb cb cb

17.What is an advantage of using a programming library?: The code
cb cb cb cb cb cb cb cb cb cb

has already been tested.
cb cb cb cb

18.Which language is dynamically typed?: Python
cb cb cb cb cb



1cb/
cb9

, WGU D278
cb


Studycbonlinecbatcbhttps://quizlet.com/
19.Which cblanguagecbiscbnotcbbuiltcboncbobject-orientedcbdesigncbprinciples?:cbC
_dshcjb
20.A language substantially supports a programmer creating items like p
cb cb cb cb cb cb cb cb cb

er-
son, teacher, and students. Each item has internal data and some operat
cb cb cb cb cb cb cb cb cb cb cb cb

ions. Which characteristic describes that language?: Object-oriented
cb cb cb cb cb cb




2cb/
cb9

Información del documento

Subido en
28 de mayo de 2025
Número de páginas
9
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$10.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

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.
Vendido
26
Seguidores
2
Artículos
3415
Última venta
1 mes hace




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