• ¿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 4 fuera de 43 páginas
Examen

Code HS Answers: Lessons 1-20 100% pass Newest

Document preview thumbnail
Vista previa 4 fuera de 43 páginas

Code HS Answers: Lessons 1-20 100% pass NewestCode HS Answers: Lessons 1-20 100% pass NewestCode HS Answers: Lessons 1-20 100% pass NewestCode HS Answers: Lessons 1-20 100% pass NewestCode HS Answers: Lessons 1-20 100% pass Newest

Vista previa del contenido

Code HS Answers: Lessons 1-20 100% pass
Newest

Which is a valid Karel command?
II! II! II! II! II!




move; II!




MOVE

move(); II!




move() - Correct Answers move(); II! II! II! II! II!




II! What is a street in a Karel world? - Correct Answers Row
II! II! II! II! II! II! II! II! II! II! II! II!




II! What is an avenue in a Karel world? - Correct Answers Column
II! II! II! II! II! II! II! II! II! II! II! II!




II! If Karel starts at Street 1 and Avenue 3 facing East, what street (row) and avenue (column) will Karel be on
II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II!




II! after this code runs?
II! II! II!




move();

move();

move();

turnLeft();

move(); - Correct Answers Street 2 Avenue 6
II! II! II! II! II! II! II! II!




II! If Karel is facing North and the code
II! II! II! II! II! II! II! II!




turnLeft();

turnLeft();

runs; which direction is Karel facing now? - Correct Answers South
II! II! II! II! II! II! II! II! II! II! II!




II! How many times should Karel turn left in order to turn right? - Correct Answers 3
II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II!

,II! What can be used to teach Karel to turn right? - Correct Answers functions
II! II! II! II! II! II! II! II! II! II! II! II! II! II!




II! Which function will teach Karel how to spin in a circle one time?
II! II! II! II! II! II! II! II! II! II! II! II!




function spin() { II! II!




II! turnRight();

}

function spin() { II! II!




II! turnLeft();

II! turnLeft();

II! turnLeft();

II! turnLeft();

}

function spin() { II! II!




II! turnLeft();

II! turnLeft();

}

function spin() { II! II!




II! move();

II! move();

II! move();

II! move();

} - Correct Answers function spin() {
II! II! II! II! II! II! II!




II! turnLeft();

II! turnLeft();

II! turnLeft();

II! turnLeft();

}

, II! How many times should the start function be defined in a program? - Correct Answers 1
II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II!




II! How many times should the start function be called in a program? - Correct Answers 0
II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II!




II! Why do we use functions in programming? - Correct Answers Break down our program into smaller parts
II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II!




Avoid repeating code II! II!




Make our program more readable
II! II! II! II!




II! What is a top down design? - Correct Answers Top down design is a way of designing your program by
II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II!




II! starting with the biggest problem and breaking it down into smaller and smaller pieces that are easier to
II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II!




II! solve.



II! What is a code comment - Correct Answers A way to give notes to the reader to explain what your code is
II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II!




II! doing



II! What commands does SuperKarel know that regular Karel does not? - Correct Answers turnAround();
II! II! II! II! II! II! II! II! II! II! II! II! II! II!




II! and turnRight();
II!




II! Why should a programmer indent their code? - Correct Answers Helps show the structure of the code
II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II!




Easier for other people to understand
II! II! II! II! II!




Indenting is a key part of good programming styleII! II! II! II! II! II! II! II!




II! 2.4.7 Building a Shelter Code - Correct Answers turnLeft();
II! II! II! II! II! II! II! II! II!




makeSide();

function turnRight(){ II!




II! turnLeft();

II! turnLeft();

II! turnLeft();
II!




}

turnRight();

, makeSide();



function makeSide(){
II!




II! move();

II! putBall();

II! move();

II! putBall();

II! move();

II! putBall();

}



goHome();

function goHome(){
II!




II! turnRight();

II! move();

II! putBall();

II! move();

II! putBall();

II! move();

II! putBall();

II! turnLeft();

II! turnLeft();

II! turnLeft();

II! move();

II! move();

II! move();

II! turnLeft();

II! turnLeft();

}

Información del documento

Subido en
12 de febrero de 2025
Número de páginas
43
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$8.99

¿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.
STUVEX
3.8
(123)
Vendido
834
Seguidores
314
Artículos
16233
Última venta
2 días 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