Skip to content
cs2study

cs2study

Computer Science C.B.S.E syllabus

  • Home
  • Python-Class XI
    • Videos
    • PDF/PPT
    • Programs
    • Papers
    • MCQ Quiz
    • Project/Practical File Class XI
    • Online Class-XI
  • Python-Class XII
    • Videos
      • File Handling
      • Python Functions
      • Stack
      • MySQL with Python
      • Videos-Networking
    • PDF/PPT
      • Function
      • Python Modules
      • File Handling
      • Stack and Queue
      • MySQL
      • Networking
    • Programs
      • Function Programs
      • File Handling
      • Stack and Queue
      • MySQL
      • MySQL Connectivity
    • Papers
      • Sample Papers
      • School Papers
      • Assignment/Test
    • MCQ
      • MCQ Quiz
      • MCQ Chapter-wise
    • Projects & Practical Files
    • Board Practical Exam
  • Python-Quick Revision
    • Notes
    • Errors and Outputs
    • Exam Revision Notes
    • Question Bank
  • C++
    • Notes
    • Programs/Questions
    • Project/Practical File C++
  • MySQL Software
  • Syllabus
  • Toggle search form
meaning of debugging

Debugging

Posted on By Pallavi S No Comments on Debugging

Meaning of Debugging

Debugging means the process of finding errors,  finding reasons for errors, and techniques of their fixation. An error,  also known as a  bug,  is a  programming code that prevents a program interpretation.

Errors are of three types –

  • Compile Time Error
  • Run Time Error
  • Logical Error

Compile-time error :

These errors are basically of 2 types –
Syntax Error: Violation of formal rules of a programming language results in a syntax error.

For ex-
a=5
if a>10
SyntaxError: ‘:’ syntax error
Semantics Error: Semantics refers to the set of rules which sets the meaning of statements. A meaningless statement results in semantics error.
For ex-
x * y = z

Logical Error

If a program is not showing any compile-time error or run time error but not producing desired output, it may be possible that the program is having a logical error. These are not detected by the compiler or interpreter. These are hard to detect.
Some example-

  • Use a variable without an initial value.
  • Provide wrong parameters to a function.
  • Use of the wrong operator in place of correct operator required for operation.

X=a+b (here – was required in place of + as per requirement

Run time Error

These errors are generated during a program execution due to resource limitations. Python is having the provision of checkpoints to handle these errors.

For ex-
a=10
b=int(input(“enter a number”))
c=a/b
Value of b to be entered at run time and the user may enter 0 at run time, that may cause run time error because any number can’t  be divided by 0

Run time Error in Python

In Python, try and except clauses are used to handle an exception/runtime  error  which  is  known  as  exception handling

try:
#  code with a probability of exception will be written here.
a=10
b=int(input(“enter a number”))
c=a/b
except:
#code to handle exception will be written here.
print(“divide by zero error”)

[wpdatatable id=1]

 

 

 

Class XI

Post navigation

Previous Post: Data Type
Next Post: MySQL Notes

Leave a Reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Tips-Networking Case-based Questions
  • XII-Board Practical Exam 2020-21
  • Stack and Queue
  • Questions on Tuples
  • Networking -Full Forms

Recent Comments

  • ubasexazejil on Tips-Networking Case-based Questions
  • ugajefeq on Tips-Networking Case-based Questions
  • www.seoshop.xmc.pl on Tips-Networking Case-based Questions
  • igesuzuxumuli on Tips-Networking Case-based Questions
  • oqiteranif on Tips-Networking Case-based Questions

Categories

  • About
  • C++
    • Notes
    • Programs/Questions
    • Project/Practical File C++
  • Class XI
    • MCQ
    • Online Class-XI
    • PDF/PPT
  • Class XII
    • Assignment/Test
    • Board Practical Exam
    • File Handling
    • File Handling
    • Function Programs
    • Notes
    • Projects and Practical Files Class XII
      • Project/Practical File Class XI
      • Stack
        • Stack and Queue
    • Quick Revision
      • Errors and Outputs
      • Exam Revision Notes
      • Question Bank
    • Stack and Queue
  • File Handling
  • Function
  • Home
  • MCQ Chapter-wise
  • MCQ Quiz
  • MCQ Quiz
  • MySQL
  • MySQL Software
  • Papers
  • Papers
  • PDF/PPT
    • MySQL
    • MySQL with Python
    • Networking
  • Practical/Project
  • Programs
  • Programs
    • MySQL Connectivity
  • Python Functions
  • Python Modules
  • Python_fundamentals
  • Sample Papers
  • School Papers
  • Syllabus
  • Videos
  • Videos
  • Videos-Networking

Archives

  • March 2021
  • February 2021

Categories

  • Assignment/Test paper
  • Board Practical Exam
  • Class XI
  • Class XI
  • Class XII
  • Function
  • MySQL Notes
  • MySQL with Python
  • Networking
  • tuple
  • XI Videos

Copyright © 2025 cs2study.

Powered by PressBook WordPress theme