• ¿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

ISDS 505 Midterm 1 Chapter 4 Decisions Questions and answers Latest 2024 Graded A

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

What is the output of the following code segment? int a = 3, b = 4; if(a == b) Write("X"); WriteLine("Y"); a. X b. Y c. XY d. nothing - Answer- b. Y What is the output of the following code segment? int a = 3, b = 4; if(a b) { Write("Y"); WriteLine("Z"); } a. Y b. Z c. YZ d. nothing - Answer- c. YZ What is the output of the following code segment? int a = 3, b = 4; if(a b) Write("Up"); else WriteLine("Down"); a. Up b. Down c. UpDown d. nothing - Answer- b. Down If the following code segment compiles correctly, what do you know about the variable x? if(x) WriteLine("OK"); a. x is an integer variable b. x is a Boolean variable c. x is greater than 0 d. none of these - Answer- b. x is a Boolean variable What is the output of the following code segment? int c = 6, d = 12; if(c d); Write("Green"); WriteLine("Yellow"); a. Green b. Yellow c. GreenYellow d. nothing - Answer- c. GreenYellow What is the output of the following code segment? int c = 6, d = 12; if(c d) if(c 8) Write("Blue"); else Write("Red"); else Write("Green"); a. Blue b. Red c. Green d. nothing - Answer- b. Red What is the output of the following code segment? int e = 5, f = 10; if(e f && f 0) Write("Red"); else Write("Orange"); a. Red b. Orange c. RedOrange d. nothing - Answer- b. Orange Which of the following expressions is equivalent to the following code segment? if(g h)


Información del documento

Subido en
18 de marzo de 2024
Número de páginas
9
Escrito en
2023/2024
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

Vendido
2
Seguidores
1
Artículos
268
Última venta
2 año 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

Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.