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

Computer Exam study guide with Complete Solutions | Already Passed

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

Computer Exam study guide with Complete Solutions | Already Passed What is 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 the meaning of the x variable in the following code: - The x coordinate of the center of the circle If you were given the following variables, What line of code would print the speed in km/hr if the distance is given in km and the time is given in minutes? (Speed = distance/time) - println(distance/(time/60)); In a graphics canvas, what are the coordinates of the bottom right corner of the window? - getWidth(), getHeight() 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();

Vista previa del contenido

Computer Exam study guide with

Complete Solutions | Already Passed


What is 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 the meaning of the x variable in the following code: - ✔✔The x

coordinate of the center of the circle

If you were given the following variables, What line of code would print the

speed in km/hr if the distance is given in km and the time is given in

minutes? (Speed = distance/time) - ✔✔println(distance/(time/60));

In a graphics canvas, what are the coordinates of the bottom right corner of

the window? - ✔✔getWidth(), getHeight()

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 and Avenue 6

How many times should you call the start function in a program? - ✔✔0

Which general While loop definition is written correctly? - ✔✔while

(condition) { // code }

You need to write a program that has Karel move 8 times and then put a

ball. Which control structure do you need to use? - ✔✔For Loop

What is the output of the following program: (Assume the user enters

'Florence' then 'Fernandez'.) - ✔✔FlorenceFernandez

In the following code, we create a circle and add it to the screen. What is

the meaning of the x variable? - ✔✔The radius of the circle

A store has 20 apples in its inventory. How can you store this information in

a JavaScript variable? - ✔✔var numApples = 20;

What function do you need to call to get the width of the screen? -

✔✔getWidth()

You want to read input from the user to know how many apples they would

like to buy. Which statement should you use to read in a number from the

user? - ✔✔var applesToBuy = readInt("How many apples would you like?

");

Información del documento

Subido en
3 de septiembre de 2024
Número de páginas
7
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$9.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.
JOSHCLAY
3.5
(93)
Vendido
435
Seguidores
15
Artículos
20906
Ú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