XTRA 2 Flashcards
What is problem recognition
Identify there is a problem to be solved // what the
problem is
Data mining has to be
Large quantities of data
What does data mining do
Turn large quantities of data into useful information
Why is performance modelling used
Simulate/test the behaviour of the system before it is used …
Type of testing
Stress testing
Can trees be directed/undirected like graphs
No
Advantages of visualisation
Visualisations benefit humans rather than computers
Visualisations present the information in a simpler
form to understand
Visualisations can best explain complex situations
Heuristics produce a solution in a
Faster time
Scaling problems pathfinding
A* will matter more bigger problems and should be a lot quicker
Syntax errors are
Underlined dynamically so they can be corrected before running which save rimes
Traces in IDE
Print outs of variable values for each statement
Crash dump
Shows state of variables when error occurs
Cross referencers in IDE
Identifies where variables/constants are used in a
program to avoid duplications
Why would a value b passed by alue
If the value is sent by value, num1 will not be overridden
/ it is a copy of the parameter that is used (1) and this
will produce the correct output (1)
if the parameter had been passed by reference it would
not produce the correct result (1) as num1 would be
overridden / because it is a pointer to the address of the
variable (1
What is gobal same as
Reference
Global takes more
Memory
What do parameters and local allow
Memory t obe reallocated
Ae more memory spaces needed for local
Yes in recursion
Why do recirsion use more memory
Each recursive call stores the current state on the stack // creates new variables
Iteration reuses the same variables
Flags and
lowerbound greater than or equal to upperbound
Same and differences between records and classes
Record is a data structure…
…A class is a template for making data structures (objects)
Class also has methods (which describes functionality)
Both store data of different types
Which can be accessed by their names
But classes can make them accessible via methods
Both can have multiple ‘instances’
Class can include visibility of properties / private
Does date need speech marks
Yes