• ¿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 5 páginas
Examen

Code HS Midterm Material Questions and Answers 100% Solved

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

Code HS Midterm Material Questions and Answers 100% Solved

Vista previa del contenido

Code HS Midterm Material Questions
and Answers 100% Solved


Which of the following while loops will make karel move until a wall is in the way?
while(frontIsBlocked()){ move(); } while(frontIsClear()){ move(); } while(facingEast()){
move();


} while(noBallsPresent()){


move();


} ✔✔while(frontIsClear()){ move();


}




Which of the following pairs of keywords correctly fits in the code below?


____(frontIsClear()){ move();


}


____(ballsPresent()){ takeBall(); } if, else while, else


for, it


while, if ✔✔while, if

, Which of the following choices is a valid and useful variable name?


2nd Number myVariable joes___variable


minNum ✔✔minNum




What is top down Design?


Starting with the most specific problems and then working up to solve the big problem.


Working from the top of your program and coding down to the bottom


Starting with the biggest problem and then working down to solve the more specific problems.

Implementing all of the functions first, then putting them together in the start function.
✔✔Starting with the biggest problem and then working down to solve the more specific
problems.




In order to ask the user for input and store the result as a string, you should use the function
_____. ✔✔read line




Most lines of code must end with a _______. ✔✔Semicolon

Información del documento

Subido en
22 de octubre de 2024
Número de páginas
5
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$8.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.
KeithAndrews
3.0
(28)
Vendido
135
Seguidores
5
Artículos
15485
Última venta
2 semanas 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