Programming bascis Flashcards
Varaiable
the value of the variable can be changed while the programming is running
Constant
the value of the variable can NOT be changed while the programming is running
MOD and DIV operators
MOD-used to find the remainder in integer division
DIV- integer part of division
Selection;Boolean expressions
AND
NOT
OR
Define nesting
When an construct is written within another
Define iteration
iteration means repetition
Difference between function and procedures
A function is a subroutine that returns one or more values using a return statement
Local variable and global variable
A global variable can be defined in the main program and can be used in any subroutine called from the main program
A local variable can only be used in that one subroutine
What is modular programming
Modular programming means breaking down a major task into smaller sub-tasks
these can be then broken down into one function
Advantages of modular programming
more easily and quickly written
easier to program and manage once broken