What you should know before starting to learn programming?

1,782 views

Published on

This PPT explains what you should know before you start learning to program a computer. It will help students not to by heart the syntax of a programming language.

Published in: Education, Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,782
On SlideShare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
21
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

What you should know before starting to learn programming?

  1. 1. This video is a part of baabtrans’effort to make life easier for peoplewho want to learn programmingand information technologyindustry
  2. 2. FORMAL and Natural Languages• Natural Language– English, Malayalam, Hindi, Tamil, Kannada• Formal Language– Languages that are designed by people for specificapplications– Ex. 2H + O  H2O– Programming languages are formal languages– Strict rules and syntax
  3. 3. Difference between formal and naturallanguages• Ambiguity– Natural = Contextual• Redundancy– Natural = More verbose• Literalness– Formal = Exact meaning. No symbolic meaning
  4. 4. Programming LanguagesProgramming Languages are formal languagesWhat is a program?A program is a sequence of instructions thatspecifies how to perform a computation. Itcan be written in any language.
  5. 5. Programming• It can be defined as the process of breakingcomplex, large task into smaller and smallersubtasks until the subtasks are simple enoughto be performed with sequences of thesebasic instructions
  6. 6. Basic InstructionsInputGet data from the keyboard, a file, or some otherdevice.OutputDisplay data on the screen or send data to a fileor other device.math and logicPerform basic mathematical operations likeaddition, and multiplication, and logicaloperations like and, or, and not.
  7. 7. Conditional executionCheck for certain conditions and execute theappropriate sequence of statements.RepetitionPerform some action repeatedly, usually withsome variation.
  8. 8. Debugging• debugging is the process of locating and fixingor bypassing bugs (errors) in computerprogram code or the engineering of ahardware device– Identify the problem– Isolate the source of program. Remember ultimately computerprocesses only one instruction at a time.– Fix it• Frustrating but most challenging job. Especially when you areworking in a live environment.• Trial and error is a bad way of debugging.
  9. 9. Syntax errors• Syntax refers to the structure of a programand the rules about that structure. Forexample, in English, a sentence must beginwith a capital letter and end with a period.this sentence contains a syntax error.• Initial days of coding you will find it difficult tofix the syntax errors. But later you will tend toreduce the errors. It is like changing gear whileyou learn driving.
  10. 10. Runtime Errors• These errors which appear when you startrunning a program. These can be called asexceptions. Exceptions can be handled whilecoding. If you handle all the exceptions, theprogram will not stop abruptly while running.• If exceptions are not handled properly, theusers will get non-user friendly messages.
  11. 11. Semantic Errors/Logical Errors• There won’t be any error but you will not getthe desired output.• For exampleint average(int a, int b){return a + b / 2; /* should be (a + b) / 2 */}
  12. 12. Tokens & Structure• Basic elements of a language– Keywords, identifier etc– int, main etc.• Structure– How the tokens are arranged– Example structure of a function
  13. 13. Contact UsEmarald Mall (Big Bazar Building)Mavoor Road, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550NC Complex, Near Bus StandMukkam, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550Start up VillageEranakulam,Kerala, India.Email: info@baabtra.com

×