Unit 11 Programming Techniques Flashcards
What is an IDE?
Integrated Development Environment
A software which enables you to enter, edit, compile, interpret and run your programs
How can an IDE make entering program code as easy and quick as possible? (4)
- Add line numbers
- Automatically indent code
- Auto-complete commands
- Comment or un-comment a region
What is an Algorithm?
A sequence of instructions that can be followed to solve a problem
What is Pseudocode?
A type of instructions that are somewhere between English and a programming language
What is an Identifier?
A name that points to memory location
What is Assignment?
Assigning a value to the memory location
What is the difference between a Variable and a Constant?
A variable can be changed a constant can’t
Why would someone use a Constant instead of a Variable?
Reduces the risk of errors by reducing access to the memory location
What does MOD do?
Outputs the remainder after dividing 2 numbers
What does DIV do?
Outputs the integer answer after dividing 2 numbers
What does a Boolean Condition evaluate to?
True or Flase
What does AND do?
Returns TRUE if both conditions are true
What does OR do?
Returns TRUE if either of the conditions is true
What does NOT do?
A TRUE expression becomes FALSE and vice versa
What is Iteration?
Repetition of sections of code. There are 3 types of loop: While, Do and For