What you should know before starting to learn programming?
Upcoming SlideShare
Loading in...5
×
 

What you should know before starting to learn programming?

on

  • 1,025 views

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.

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.

Statistics

Views

Total Views
1,025
Views on SlideShare
1,022
Embed Views
3

Actions

Likes
0
Downloads
8
Comments
0

2 Embeds 3

http://www.linkedin.com 2
https://twitter.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    What you should know before starting to learn programming? What you should know before starting to learn programming? Presentation Transcript

    • This video is a part of baabtrans’effort to make life easier for peoplewho want to learn programmingand information technologyindustry
    • 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
    • Difference between formal and naturallanguages• Ambiguity– Natural = Contextual• Redundancy– Natural = More verbose• Literalness– Formal = Exact meaning. No symbolic meaning
    • 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.
    • 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
    • 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.
    • Conditional executionCheck for certain conditions and execute theappropriate sequence of statements.RepetitionPerform some action repeatedly, usually withsome variation.
    • 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.
    • 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.
    • 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.
    • 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 */}
    • Tokens & Structure• Basic elements of a language– Keywords, identifier etc– int, main etc.• Structure– How the tokens are arranged– Example structure of a function
    • 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