last min paper 2 notes Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What are some similarities between a graph data structure an d a tree ?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the difference between get method and set method ?

A

A get method allows the attributes to be accessed and returned

s set method allows the attribute to be changed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Debbugging tools used in IDE?

A

Stepping Through The Code…
* Syntax Error Highlighting….
* Setting breakpoints…
* Variable watch indow…

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is a constructor?

A

to create an instance of an object from a class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is IDE and list its tools

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what are the three diffrent loops

A

For loop
while loop
do until loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

if a 9 marker on data mining come up you can talk about what?

A
  • define key word
    -used to spot patterns algorithims
    -used by businesses
    -used for predictions
    -
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what are the computational methods?

A

-Decompostion
-data mining
-backtracking
-pipeliing
-pattern recognition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what is a binary tree?

A

This is a tree where each node, the left subtree is lesser in value than the right subtree.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what is break point ?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what is performance modelling ?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

descibe the process of lexical analysis?

A

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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what are the different stages of compilation ?

A

Lexical anaysis
syntax analyis
semantic anylsis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what are the different types of storage devices?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

difference between CISC and RIsk Architecture?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what is a class

what is an object?

A

a class is a template of an object this stores its methods and attributes

an object is an instance of a class