Coumputational Thinking
Coumputational Thinking
ypes of Translators:
T
1. Compiler: Translates the entire program into machine code at once, and the machine code is
.10 How is debugging different from
Q
executed directly. Example: C++ compiler.
2. Interpreter: Translates the program line by line and executes it immediately after translation.
testing?
Example: Python interpreter.
esting: The process of systematically checking whether a software product behaves as
T
3. Assembler: Converts assembly language code into machine code.
expected by running it through a set of predefined cases. The goal is to find bugs or defects in
the system.
executing a program.
. Syntax Errors: Mistakes in the program's syntax, such as missing semicolons or parentheses.
1
2. Runtime Errors: Errors that occur during program execution, such as division by zero or
trying to access an unavailable file.
3. Logical Errors: The program runs without crashing but produces incorrect results due to
incorrect logic or calculations.
4. Semantic Errors: Occur when the code is syntactically correct but does not perform the
intended task or logic.