Computing exam Flashcards
5 stages to a system block diagram
Inputs ->Condition ->Do something (usually ‘program’) ->Scale ->Output
Draw a system block diagram for an air conditioner
Check drawing
Steps to a functional requirement spec
IO List
Pseudocode
Flow control diagram
Algorithms (calculations)
Headers in a test plan
All inputs/ unit
All outputs/unit
OK Y/N
Test Notes
Sign/Date
In exam, may only have to fill out first two columns but still create the rest of the table and headers
4 factors that need to be accounted for in the input output section of a test plan
Need to test all possible inputs (a few)
Ensure the outputs match those expected
Test for data which could break the code (1/0=??)
Deliberately break the code and check fail safes
Headers in an IO list
Type(Input/Output)
Name
Unit
Range
Flow Control Diagram
Symbol for Terminators (Start/Stop)
Oblong
Flow Control Diagram
Symbol for processes (can be I/O or just generic processes)
Rectangle
Flow Control Diagram
Symbol for decisions
Diamond
Yes arrow goes down, No arrow goes right
Data flow diagram
What do circles represent
Circles are data transformations (functions/convert)
Pseudocode
What is a minimum cost solution?
Manageable sub units
Each unit can be solved independently
Each unit is easy to debug
Each unit can be modified
Pseudocode
6 steps to efficiency/generating good code
Sensible variable names
Use comments to document your code, use a header to explain the code as well
Using indents on linked commands (loops, decision statements)
Minimal instructions, use as gew operations as possible
Use functions for repeating code
Use loops instead of repeating lines
Generational languages
What are first generation languages?
Include example
Low-level languages that are machine language. Example - machine code.
Generational languages
What are second generation languages?
Include example
Low level assembly languages. They are sometimes used in kernels and hardware drives,
but more commonly used for video editing and video games. Assembly language is example.
Generational languages
What are third generation languages?
Include example
High level languages such as C, C++, JavaScript, Matlab and Haskell
Generational languages
What are fourth generation languages?
Include example
Languages that consist of statetements similar to statements in a human language. Fourth
generation languages are commonly used in database programming and script examples include
Perl, SQL and Python.
Generational languages
What are fifth generation languages?
Include example
Languages that contain a visual tools to help develop a program. Examples are Prolog and Mercury.
Factor of assembly language
Machine/hardware dependent
What is a PLC?
A programmable logic controller is a specific piece of hardware that is optimised only to work on logic systems
What is a ALU?
Arithmetic Logic Unit, a co-processor that is optimised to carry out arithmetic and logic operations
What is a FPGA?
Field programmable gate array - simulate the build of logic gates
What is Qubit?
Quantum Computer
What is labview?
Higher level language, needs ALU/FPCP
Where will you need an ALU?
A higher level language like labview
What is prolog?
Used for neural networks, it will adapt it’s own code