last min paper 2 notes Flashcards
What are some similarities between a graph data structure an d a tree ?
Similarties :
both include the use of nodes
both dynamic data structures
both are connected by links and edges
difference:
graphs can be weighted
graphs can be directional
tree will not have cycles
What is the difference between get method and set method ?
A get method allows the attributes to be accessed and returned
s set method allows the attribute to be changed
Debbugging tools used in IDE?
Stepping Through The Code…
* Syntax Error Highlighting….
* Setting breakpoints…
* Variable watch indow…
what is a constructor?
to create an instance of an object from a class
what is IDE and list its tools
IDE(integrated development environment ) are a set of tools that help increase the productivity of a developer ,
tools are :
error diagnostic
syntax highlight
debugging tools- variable catch window, breakpoints ,pretty printing
auto-correction
code editor
translator
what are the three diffrent loops
For loop
while loop
do until loop
if a 9 marker on data mining come up you can talk about what?
- define key word
-used to spot patterns algorithims
-used by businesses
-used for predictions
-
what are the computational methods?
-Decompostion
-data mining
-backtracking
-pipeliing
-pattern recognition
what is a binary tree?
This is a tree where each node, the left subtree is lesser in value than the right subtree.
what is break point ?
This is a break point in the code, that stops execution , this allows the code to exame the beviour of the program up to that point.
what is performance modelling ?
This is a computational method, that uses an approximation of mathematics to simulate a problems performance.This creates a simulation of a program , without having to do detailed testing. This lowers cost for testing
descibe the process of lexical analysis?
Lexical analysis is a stage of compilation and this is when , the source program is tokenized into symbols. This gets rid of white spaces.
- The source program is read from left to right, then each word in the program is put into a symbol table with tokens to indtify each variable. This gets rid of whit spaces and get rid of coders comments. and prepares of the next stage of compilation.
what are the different stages of compilation ?
Lexical anaysis
syntax analyis
semantic anylsis
what are the different types of storage devices?
USD-for transfereing files between two differnt devices
Hard drive/SSD- to store files or software
CD
CD-ROM- for installing software
portable hard drive - to store files
cloud storage- this is to get access to other files remotely
difference between CISC and RIsk Architecture?
CISC:
-comlicated processer designed
-each instruction can take up to more than one cycle
-many different instructions available
-multiple clock cycles
RISC:
- each instructions performs a simple task
-limited number of instructions avalibile
simple processor designed
-complex tasks can only be designed by combining more than one intrcution together