Difference between performing section and paragraph

3 posts / 0 new
Last post
Anonymous
Difference between performing section and paragraph

 

 

 

What is the difference between performing secions and performing
paragraphs?
 
One of the question I was asked in an interview
"; ; ; ;
Offline
Joined: 07/07/2011 - 19:59
Performing a section vs performing a paragraph.
When a program performs a section, that means all paragraphs in the section will be performed sequentially until the start of the next section. not as some people might think to the nnext exit statment but "TO THE START OF THE NEXT SECTION". A section is differentiated by the word SECTION as part of the label. Performing a paragraph will perform the statements in the paragraph until the start of the next paragraph. in my experience it is not a good idea to mix the performing of paragraphs and performing of sections in a program. if you are going to perform a paragraph stick only to performing paragraphs in the whole program. if you are going to perform a section stick to only performing sections in the whole program. Execution seems to get a little confused if you mix the two methods up in a program.
Anonymous
re:Difference between performing section and paragraph

 

Performing a SECTION will cause all the paragraphs that are part of the section, to be performed.
 
Performing a PARAGRAPH will cause only that paragraph to be performed
Log in or register to post comments
Sponsored Listing