Types of Errors#1
Types of Errors#2
Algorithms
Debugging
Factorial and Prime Number
100

What are 3 types of errors?

Syntax Error

Run-Time Error

Logic Error

100

What type of error does it have?

int value 0;

Syntax Error

100

"a sequence of steps, that when applied to a problem, will result in a solution. What is this?

algorithms

100

Errors in programs are often called what?

Bugs

100

What is factorial?

A factorial is the product of multiplying every number together, from 1 to a given number. It’s denoted by writing n!

200

When you make a mistake in how the code is written, what error is this?

Syntax Error

200

What type of error does it have?

Area = 3.14 * radius * 2

Logic-Error

200

What is the planning tool that can be use in algorithms?

Top-down Design

200

You may have found yourself spending a lot of time removing these bugs, what process is this called?

Debugging

200

What is the symbol of factorial?

!

300

When your program crashes, what error is this?

Run-Time Error

300

What type of error does it have?

Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - 可能尚未初始化变量value

构建失败 (总时间: 6 秒)

Run-Time Error

300

If cake looks done and is a bit spongy on top then and remove cake from oven. What judgement is use for this algorithum?

Human judgement

300

What is the planning tool that can be use in debugging?

Top-down Design

300

What is the value for 3! ?

6

400

When your program runs but the output is incorrect, what error is this?

Logic-Error

400

What is the meaning of:

while (valid == false)

loop will continue

400

Is this a good algorithm without human judgement?

Step 1: Prepare for the baking powder (120g water)

Step 2: Knead the dough

Step 3: Add the butter into the dough

Step 4: Put the dough inside a plate with 28 degrees temperature.

Step 5: The dough will become bigger then place it inside the oven (200 degrees) and set a timer (10-15 min)

Yes!

400

What is IDE?

Integrated Development Environment

400

0  1  1  2  3  5  8  13  (  ) (  )

What are the next two value?

21 and 34

500

This word means "to continually try out solutions, refining each one, and getting closer to the end goal with each attempt. "

Iteration

500

This program prompted the user to enter an integer, but the user entered a string which caused the program to crash. What way to prevent this from happening ?

try...catch

500

Sort of like a short form of writing that is between normal English and computer programming language. What is this?

Pseudocode

500

When do we use this code (Integer, String, or double, etc)?  

}catch(Exception e)

{

     System.out.println(e.toString());

 }

Integer

500

2, 6, 17, 32, 51

How many numbers are prime number?

2 and 17

2 number are prime number

M
e
n
u