Programming techniques (unit 11) (not finished) Flashcards
(11.1)What is an IDE?
Integrated Development Environment) is software which enables you to enter, edit, compile (or interpret) and run your programs
(11.1)What features does an IDE have?
Clear, visible line numbers
Automatically indent code
Auto-complete commands
Comment or un-comment a section of code
(11.1)What is a syntax errror?
an error in how the code is written, one of the rules is broken
(11.1)What is a type error
An error in the expected type of data that is inputted, for example a word when it should be a number
(11.1)What IDE tools help a programmer to write their code?
Auto-complete code when typing can avoid spelling mistakes
Code Colour highlighting - Can identify command words
Code comments and annotations
Multiple tabs
Import libraries
(11.1)What IDE tools help a programmer to fix their code?
Stepping - Run one line at a time and check output slowly
Breakpoints - Stop the code at set points to check value of variable(s)
Variable watch window - Check variables values and how they change
Error reporting - report errors locations / give detail on errors
Crash dump , showing the state of variables at crash point
Line numbers to help find errors.
(11.1)What is an algorithm?
An algorithm is a sequence of instructions that can be followed to solve a problem
(11.1)What is pseudocode?
Pseudocode is used to write instructions in statements that are somewhere between English and a programming language
halfway language with no strict rules
(11.1)What is an identifier
A name that points to a memory location
(11.1)What is assignment?
assigning a value to the memory location
(11.1)can the value of a variable be changed while the program is running?
Yes
(11.1)Can the value of a constant be changed while the program is running?
No, it has be be changed in the source code and then recompiled
(11.1)what is the use of a constant
to reduce the risk of errors by reducing the access to the memory location
(11.2) How are IF, ELIF and ELSE conditional statements used in code?
allow the code to not always be top to bottom, as the conditions may make it move past a certain function or to another function
Conditional statements based on a given true or false statement
What are relational/ comparison operators and what are some examples(11.2)
Compare 2 values/ variables
> greater than < less than => greater than or equal to =< less than or equal to == equal to (= in some languages) != not equal to (<> in some languages)