Syntax Logic and Run Time Errors ICS 20

  • Slides: 8
Download presentation
Syntax, Logic, and Run. Time Errors ICS 20, B 2. 6

Syntax, Logic, and Run. Time Errors ICS 20, B 2. 6

You were programming a messaging app when, after running it to test it out,

You were programming a messaging app when, after running it to test it out, the app crashed. The screen said that variable “Msg” does not exist. You know that you have a variable named “msg”. Error 1 What kind of error is this? 1. Syntax 2. Logic 3. Run-time

In the Main subway station one of the TTC bus times screens was showing

In the Main subway station one of the TTC bus times screens was showing the bus times for Pape subway station instead. Error 2 What kind of error is this? 1. Syntax 2. Logic 3. Run-time

A student was writing a program and typed the command “Print”. When the program

A student was writing a program and typed the command “Print”. When the program was run there was an error with the usage of “Print”, and the program suggested using “print” instead. Error 3 What kind of error is this? 1. Syntax 2. Logic 3. Run-time

At a restaurant you were using a phone app to calculate the tip. When

At a restaurant you were using a phone app to calculate the tip. When you hit “calculate”, the app crashed with a brief message saying “division by zero”. Error 4 What kind of error is this? 1. Syntax 2. Logic 3. Run-time

A new Xbox was just turned on, and while loading, a blue screen came

A new Xbox was just turned on, and while loading, a blue screen came on saying it could not load the operating system. Error 5 What kind of error is this? 1. Syntax 2. Logic 3. Run-time

While playing your strategy game on your phone, you had defeated an enemy player

While playing your strategy game on your phone, you had defeated an enemy player but the game said you lost! Error 6 What kind of error is this? 1. Syntax 2. Logic 3. Run-time

Answers 1. 2. 3. 4. 5. 6. Syntax Logic Syntax Run-time Logic

Answers 1. 2. 3. 4. 5. 6. Syntax Logic Syntax Run-time Logic