What does the "var" command do?
¿Qué hace el comando "var"?
"Var" creates a new variable
"Var" crea una nueva variable
What are the two words associated with conditionals?
¿Cuáles son las dos palabras asociadas con los condicionales?
If and else
If y else
What are the two options for what a Boolean expression evaluates to?
¿Cuáles son las dos opciones para evaluar una expresión booleana?
True or false
Cierto o falso
What is the purpose of a function?
¿Cuál es el propósito de una función?
Functions remove repeated code and make it easier to read/debug/update
Las funciones eliminan código repetido y facilitan la lectura, depuración y actualización
What does the MOD operator return?
¿Qué devuelve el operador MOD?
The remainder of 2 divided numbers
Resto de dos números divididos
What will be displayed after this code segment is run?
¿Qué se mostrará después de ejecutar este segmento de código?
9
What is the value of sum after the code is run?
¿Cuál es el valor de la suma después de ejecutar el código?
16
What does this code evaluate to?
¿A qué se evalúa este código?
True
Cierto

What will be the order of letters printed to the console when this program is run?
¿Cuál será el orden de las letras impresas en la consola cuando se ejecute este programa?
x y z y z

What will this display?
¿Qué mostrará esto?
17
What will the value of "score" be at the end of this program?
¿Cuál será el valor de la "puntuación" al final de este programa?
The score is: 8
What will be displayed if the grade is set to 70?
¿Qué se mostrará si la grade se pone en 70?
You passed!

What will the value of the variable bins be at the end of the flowchart?
¿Cuál será el valor de los contenedores de variables al final del diagrama de flujo?
Bins =2
What is wrong with the way this function is called below? Fix it.
¿Qué falla en la forma en que se llama esta función más abajo? Arréglalo.


What is the difference between a global variable and a local variable?
¿Cuál es la diferencia entre una variable global y una variable local?
A local variable exists only in an on-event or function. A global variable can be used anywhere in the code.
Una variable local solo existe en un evento o función activada. Una variable global puede usarse en cualquier parte del código.
What will be displayed?
¿Qué se mostrará?
a:12 b:20 c:32

What text will be output by the porgram?
¿Qué texto generará el programa?
"You pay for yourself"

If input A is false, Input B is false, and Input C is true, what is the value of output?
Si la entrada A es falsa, la entrada B es falsa y la entrada C es verdadera, ¿cuál es el valor de la salida?
False
Falso
What will display after it is run?
Que mostrara?
School day

If category is "new" and age is 20, what are the values of val1 and val2?
Si la category es "new" y la age es 20, ¿cuáles son los valores de val1 y val2?
val1 = false (falso)
val2 = false (falso)

"You win" never displays. How do you fix this?
"You win" nunca se muestra. ¿Cómo se soluciona esto?
Remove the var in line 3
Quita el var de la línea 3
A school charges different prices based on the day of the week and age of the visitor for after school extracurricular activities. The pricing rules are shown below.
On Monday and Friday children 10 and under get in free ($ 0).
For all other days and ages the cost is ten dollars ($ 10).
The visitor’s age is stored in the variable age, the day of the week is stored in a variable as day, and the price in dollars is stored in the variable price.
Write code to decide the price of each ticket.
Una escuela cobra diferentes precios basados en el día de la semana y la edad del visitante para actividades extracurriculares después de la escuela. Las reglas de precios se muestran a continuación.
los lunes y viernes los niños menores de 10 años entran gratis ($ 0).
Para todos los demás días y edades el costo es de diez dólares ($ 10).
La edad del visitante se almacena en la variable edad, el día de la semana se almacena en una variable como día, y el precio en dólares se almacena en el precio variable.
Escribe código para decidir el precio de cada billete.

What does || mean? Que significa ||?
What does && mean? Que significa &&?
What does == mean? Que significa ==?
|| - or
&& - and
== - is equal to

This code is supposed to find the average of the given numbers. Write code for the part that says <missing code> to make it work.
Este código se supone que debe encontrar la media de los números dados. Escribe código para la parte que dice <código faltante> para que funcione.
(a+b+c+d)/4

What displays when we call proc2("birthday", "to you")?
¿Qué se muestra cuando llamamos proc2("birthday", "to you")?
to you happy birthday