Variables
Strings and Operators
Conditionals
Functions
Debug the Code
100

What is a variable?

An element, feature, or factor that can change in an experiment.

100

What is a string?

    A string is a data type used to represent text.

100

 What is a conditional?

 A statement expressing that one thing is contingent on or happens under a certain condition.

100

What is a function?

 A function in coding is a reusable block of self-contained code designed to perform a specific task

100

What is the definition of debugging a code? 

Debugging is the process of finding, analyzing, and fixing errors (bugs) within a computer program to ensure it runs correctly and efficiently.

200

When do you use a variable?

To store data for later.

200

 What is the result in (“5”  +  “5”);

55

200

 Why do you need conditionals?

They allow you to link a cause condition or decision to a specific outcome or action.

200

How does a function work?  

A function performs a specific task when called and may return a value. Some functions return nothing.

200

What would happen if you didn't debug a code?  

The system would fail and would have unpredictable behavior.

300

True or False: This is an example of a true variable, var price=5

True

300

 True or False: Both numbers and words need quotation marks.

False

300

 What would happen if you did not have conditionals?

Programs would lose decision-making capability and perform the same actions regardless of conditions.

300

How does a function shorten the code?

 A function shortens code by reusing a single block of instructions instead of writing the same logic out over and over again.

300

 How do you know if you need to debug a code?

If you get an error or your code doesn’t run properly

400

What would happen if variables were not a thing? 

It would make the code break down.

400

What does the symbol * mean?

Multiplication

400

 True or False most programming languages the code an if block executes only when its condition to true?

True

400

"Can it be declared once, but called twice or declared twice, but called once or called as many times as you want?"



It should be declared once, but called twice

400

What's the difference between a red square and a yellow triangle?

A red error icon indicates an error that must be fixed for the program to run properly, while a yellow warning icon indicates a potential issue that may not stop the program from running.

500

What are the two main types of variables and what do they mean?

 Dependent variables and independent variables.

500

Which one is correct? “\n”  or  “/n”

"\n"

500

What are the three main types of conditionals?

 A if statement,  if-else statement, and lastly a else if.

500

What is the difference between declaring a function and calling a function?

What is the difference between declaring a function and calling a function? The difference between declaring a function and calling a function is whether you are defining how the function works or actually executing its code.

500

 What happens if you put “var” at the bottom?  

It depends on the program. If a variable is used before it is declared, it may cause errors or unexpected behavior.