Components of program

By: aathishankaran Printer Friendly Format    

Components of program


The components of a program are:


  1. Comment entry: An entry following the symbols

It indicates a comment entry, and is used to specify a comment. It increases readability and clarity of a program for documentation purposes.


  1. Program name: PROGRAM_ONE indicates name of the program.


  1. Delimiters: { and } indicate beginning and end markers of the program. It is also required for statement blocks (set pf sentences which are closely related and form part of a construct).


  1. Sentences: Each line of a program is a sentence.


  1. Sentence terminator: Each sentence is to be terminated with a ; (semi-colon ) which is called the sentence terminator.


  1. Keywords: Sentences can contain certain words, which are used for specific purposes. These words are called keywords/ for example, to show a message, the keyword is display. Keywords appearing in all the examples in this courseware are in lowercase and have been italicized.


The program sequence displays a name:




            display “My name is:”;

            display “Veronica.”;



Most Viewed Articles (in Java )

Latest Articles (in Java)

Comment on this tutorial