Unit 8 - Systems Software & Robust Programming Flashcards
What is Input validation?
Checking input meets certain rules, e.g. the type of data.
What is Anticipating misuse?
Creating precautions for unintended use of the program
What is Authentication?
Entering data twice or checking from an alternative source.
Explain the Use of sub programs.
Creating reusable code where bugs can easily be fixed.
What are Naming conventions?
Good use of variables and sub program names makes programs easier to read.
What is Indentation?
Makes programs easier to read.
What is Commenting?
Helps programmers understand what a program does and how it does it.
What is a Syntax error?
A syntax error is one where the code written doesn’t conform to the rules of the language.
What is a Logical error?
A logical error is when a code runs in a way that is not intended by the programmer, but usually does not prevent it from running.
What are the 4 types of test data and what do they mean?
Normal data: Data that fits within all parameters with ease; Boundary data: Data which is just above or below the minimum or maximum requirements; Invalid data: Data which does not fit within the parameters; Erroneous data: Data which is the wrong type.
Give 3 examples of a High-level Programming language.
Python, Java, C#
Give an example of a Query language.
SQL
Give 2 examples of Markup languages.
HTML, XML
Give an example of a Low-level Programming language.
Assembly language
What is machine code?
Code that is read by the machine and is highly difficult to read by people
Name 3 advantages of a low-level language
A program written in a low-level language can run very quickly, the code will usually require less RAM and statements in a low-level language can be used to control and manipulate specific hardware components.
What do Compilers and Interpreters do?
Translates a high-level language into machine code.
Name 4 differences between a Compiler and an Interpreter.
A compiler translates the whole program
What is assembly language?
Assembly language is a low-level language. It is assembled into machine code before it’s run.
What are IDEs?
IDEs are Integrated Development Environments. They have a number of tools and features that help programmers when they are programming.
Name 4 functions that an IDE introduces to help in programming.
Line numbers – Give a number to each line of code; Syntax highlighting – Different colours for code that has different meanings, such as keywords, strings or variables; Breakpoints, stepping and watching variables – The ability to pause code when running and then run each line of code separately whilst watching the values stored in variables as they change.
How much memory do integers take up?
Integers use around 2 bytes of memory.
How much memory do float values take up?
Float values use around 4 bytes of memory.
How much memory do char values take up?
Char values use around 1 byte of memory.
How much memory do string values take up?
String values use up 1 byte per character in the string.