Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Examen

Code HS Answers: Lessons 1-20 Complete Test Answered Correctly.

Puntuación
-
Vendido
-
Páginas
28
Grado
A+
Subido en
13-03-2023
Escrito en
2022/2023

Code HS Answers: Lessons 1-20 Complete Test Answered Correctly. Which is a valid Karel command? move; MOVE move(); move() move(); What is a street in a Karel world? Row What is an avenue in a Karel world? Column If Karel starts at Street 1 and Avenue 3 facing East, what street (row) and avenue (column) will Karel be on after this code runs? move(); move(); move(); turnLeft(); move(); Street 2 Avenue 6 If Karel is facing North and the code turnLeft(); turnLeft(); runs; which direction is Karel facing now? South How many times should Karel turn left in order to turn right? 3 What can be used to teach Karel to turn right? functions Which function will teach Karel how to spin in a circle one time? function spin() { turnRight(); } function spin() { turnLeft(); turnLeft(); turnLeft(); turnLeft(); } function spin() { turnLeft(); turnLeft(); } function spin() { move(); move(); move(); move(); } function spin() { turnLeft(); turnLeft(); turnLeft(); turnLeft(); } How many times should the start function be defined in a program? 1 How many times should the start function be called in a program? 0 Why do we use functions in programming? Break down our program into smaller parts Avoid repeating code Make our program more readable What is a top down design? Top down design is a way of designing your program by starting with the biggest problem and breaking it down into smaller and smaller pieces that are easier to solve. What is a code comment A way to give notes to the reader to explain what your code is doing What commands does SuperKarel know that regular Karel does not? turnAround(); and turnRight(); Why should a programmer indent their code? Helps show the structure of the code Easier for other people to understand Indenting is a key part of good programming style 2.4.7 Building a Shelter Code turnLeft(); makeSide(); function turnRight(){ turnLeft(); turnLeft(); turnLeft(); } turnRight(); makeSide(); function makeSide(){ move(); putBall(); move(); putBall(); move(); putBall(); } goHome(); function goHome(){ turnRight(); move(); putBall(); move(); putBall(); move(); putBall(); turnLeft(); turnLeft(); turnLeft(); move(); move(); move(); turnLeft(); turnLeft(); } 2.5.4: Pancakes with Start function start(){ move(); makePancakes(); move(); move(); makePancakes(); move(); move(); makePancakes(); move(); } function makePancakes(){ putBall(); putBall(); putBall(); } 2.6.4: The Two Towers function start(){ move(); turnLeft(); makeTower(); move(); turnRight(); move(); move(); turnRight(); move(); makeTower(); turnLeft(); turnLeft(); move(); move(); move(); turnRight(); } function makeTower(){ putBall(); move(); putBall(); move(); putBall(); } function turnRight(){ turnLeft(); turnLeft(); turnLeft(); } 2.6.5: Make a 'Z' function start(){ putBallsInRow(); makeDiagonal(); move(); turnAround(); putBallsInRow(); } // Puts down four balls in a row function putBallsInRow(){ move(); putBall(); move(); putBall();

Mostrar más Leer menos
Institución
Code HS
Grado
Code HS










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

Escuela, estudio y materia

Institución
Code HS
Grado
Code HS

Información del documento

Subido en
13 de marzo de 2023
Número de páginas
28
Escrito en
2022/2023
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

$17.99
Accede al documento completo:

¿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

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.
BESTPUBLISHER01 College Of Nursing And Technology
Ver perfil
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
11
Miembro desde
3 año
Número de seguidores
12
Documentos
978
Última venta
1 año hace
BESTPUBLISHER01

NURSING, ECONOMICS, MATHEMATICS, BIOLOGY, AND HISTORY MATERIALS BEST TUTORING, HOMEWORK HELP, EXAMS, TESTS, AND STUDY GUIDE MATERIALS WITH GUARANTEED A+ I am a dedicated medical practitioner with diverse knowledge in matters of Nursing and Mathematics. I also have a piece of additional knowledge in Mathematics based courses (finance and economics).

3.0

1 reseñas

5
0
4
0
3
1
2
0
1
0

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