100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Examen

1.21.1 Introduction to Programming 2025/2026 Exam Questions Marking Scheme New Update | A+ Rated

Puntuación
-
Vendido
-
Páginas
18
Grado
A+
Subido en
24-04-2025
Escrito en
2024/2025

1.21.1 Introduction to Programming 2025/2026 Exam Questions Marking Scheme New Update | A+ Rated What does the mystery function do? function mystery() { while (noBallsPresent()) { move(); } } JavaScript Karel moves until it is on a ball If there is no ball present, Karel will move one time and stop. Karel moves until it puts down a ball Karel checks if there is no ball on the current spot and then moves once -

Mostrar más Leer menos
Institución
Programming
Grado
Programming










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

Escuela, estudio y materia

Institución
Programming
Grado
Programming

Información del documento

Subido en
24 de abril de 2025
Número de páginas
18
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

1.21.1 Introduction to Programming
2025/2026 Exam Questions Marking
Scheme New Update | A+ Rated



What does the mystery function do?

function mystery() { while (noBallsPresent()) { move(); } }

JavaScript




Karel moves until it is on a ball

If there is no ball present, Karel will move one time and stop.

Karel moves until it puts down a ball

Karel checks if there is no ball on the current spot and then moves once - 🧠

ANSWER ✔✔Karel moves until it is on a ball


Question: 2




COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
1
STATEMENT. ALL RIGHTS RESERVED

,Which of the following is not a valid condition to go in an if statement for

Karel?




ballsPresent()

frontIsClear()

leftIsBlocked()


turnLeft() - 🧠 ANSWER ✔✔turnLeft()


Question: 3




Say Karel is on a location with one tennis ball. After the following code

runs, how many tennis balls will there be at that location?

for (var i = 0; i < 3; i++) { if (ballsPresent()) { takeBall(); } else { putBall();

putBall(); } }

JavaScript




0

1

COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
2
STATEMENT. ALL RIGHTS RESERVED

, 2


6 - 🧠 ANSWER ✔✔1


Question: 4




What condition should be used in this while loop to get Karel to pick up all

the tennis balls on the current location?

while (________) { takeBall(); }

JavaScript




noBallsPresent()

ballsPresent()

frontIsClear()


takeBall() - 🧠 ANSWER ✔✔ballsPresent()


Question: 5




Why does a programmer indent their code?



COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
3
STATEMENT. ALL RIGHTS RESERVED
$12.99
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

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.
NinjaNerd Liberty University
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
230
Miembro desde
1 año
Número de seguidores
5
Documentos
12796
Última venta
23 horas hace
NinjaNerd

Here You will All Documents and Package Deals Offered by Seller NinjaNerd.

3.6

39 reseñas

5
15
4
7
3
9
2
3
1
5

Recientemente visto por ti

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