General Concepts of Programming Methodology

Use of Proper Names for Identifiers

Concepts of Programming Methodology

Programming is basically solving a particular problem by giving coded instructions to the computer. Furthermore, the whole scenario of programming cycle involves writing, testing, troubleshooting, debugging, and maintaining a computer program. Moreover, a good program should have clarity and simplicity of expressions, should make use of proper names for identifiers, contain comments, and have proper indentation.

Programming Process Cycle

The steps of programming are as follows:

Writing

This step involves writing the desired output of the code. besides, drawing a flowchart depicting all the steps from beginning to end. Then the programmer writes the first copy of the code on the programming software.

Testing

This step is about testing the code against the test cases. If the output is according to desired test cases, the code is correct.

Troubleshooting

After testing the program we perform the error correction in this step.

Debugging

It is the process of finding the exact location of error in the code.

Running

After all these steps the program is run to get the desired output.

Browse more Topics Under General Concepts of Programming Methodology

What is an efficient program?

A program that gives the correct desired output for every input, including the wrong input is an efficient program. Moreover, it should produce correct results in less time and use less memory space. Besides, an efficient program should have clarity and simplicity of expressions, should make use of proper names for identifiers, contain comments, and have proper indentation. Here, we will study about use of proper names for identifiers in detail.

Use of proper names for identifiers

An identifier is basically a name that identifies an object or an object of classes. Moreover, the name associated to any function, constant or variable refers to that particular object. There are certain rules to make use of proper names for identifiers. These are as follows:

  • An identifier can include only capital letters, small letters, digits, and underscore .
  • The name should be meaningful. For example, if you are storing name of a person declare the identifier as ‘name’.
  • Use meaningful names for defined constants. For example ‘eular_constant=2.71’.
  • Don’t use similar names more than once.
  • Do not use single lettered identifiers such as ‘a’, ‘d’, etc.
  • Keywords should not be used as identifiers.
  • Refer to particular rules of each programming language.

Frequently Asked Questions (FAQs)

Q1. What is programming?

A1. Programming is basically solving a particular problem by giving coded instructions to the computer.

Q2. What are the steps of writing a successful program?

A2. The whole scenario of programming cycle involves writing, testing, troubleshooting, debugging, and maintaining a computer program.

Q3. What is an identifier?

A3. An identifier is basically a name that identifies an object or an object of classes.

Q4. Answer in true or false: You can choose a keyword as an identifier.

A4. False

Q5. What is an efficient program?

A5. A program that gives the correct desired output for every input, including the wrong input is an efficient program. Moreover, it should produce correct results in less time and use less memory space.

Share with friends

Customize your course in 30 seconds

Which class are you in?
5th
6th
7th
8th
9th
10th
11th
12th
Get ready for all-new Live Classes!
Now learn Live with India's best teachers. Join courses with the best schedule and enjoy fun and interactive classes.
tutor
tutor
Ashhar Firdausi
IIT Roorkee
Biology
tutor
tutor
Dr. Nazma Shaik
VTU
Chemistry
tutor
tutor
Gaurav Tiwari
APJAKTU
Physics
Get Started

Leave a Reply

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

Download the App

Watch lectures, practise questions and take tests on the go.

Customize your course in 30 seconds

No thanks.