Tuesday, February 25, 2014

Programming Paradigms


  • Structured Oriented Programming
    • each block of code performs a distinct operation 
    • keeps data inside (local) or outside (global) of the procedures
  • Object Oriented Programming
    • gathers together procedures and their associated data into a class
  • Functional Programming 
    • Used in purely mathematical disciplines
  • Logic Programming 
    • Knowledge representation and making inferences
Basic Terms in Programming
  • Data types 
    • Numeric
    • Characters –String
    • Boolean –True / False
  • Operations 
    • Arithmetic Operators 
    • Logical Operators
    • Relational Operators 
    • Bitwise Operators ( & , | , ~ , >>, <<) 
  • Identifiers
    • Variables
    • Constants
  • Function –a section of code that performs a specific task
    • add ( Integer X, Integer Y) -returns X+Y
  • Syntax -how program is formed
    • Grammatical rule in language that defines how to perform expressions and combine them 
  • Semantics –what program does
    • Meaning of an expression or a program

No comments:

Post a Comment