EXAM JANUARY Flashcards

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

what is a linked list

A

a Dynamic data structure where each node has a pointer and a some data in it. pointer gives location of the next node.

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

what is an array

A

a data type where the data is only of one type.

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

what is a record

A

a data structure which is unordered and made up of different data types .all the data is stored in fields.

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

what is a tuple

A

an ordered set of values of any type . a tuple is immutable so it cannot be changed once it has been created.

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

what is a graph

A

a graph is a set of nodes which are connected by edges

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

what is polymorphism

A

where objects of different types are treated in the same way , this reduces the volume of code

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

what is encapsulation

A

the process of keeping the objects attribute private so they can be chnange via public metthods

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

what is inheritance

A

where the classes in inferiors hierarchies have the same same attributes as the parent class , this avoids duplicated code.

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

what are programming paradigms

A

different approaches to using programming languages to solving problems

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

what is a procedural language

A

a type of imperative programming language which uses a sequence of instructions contained within procedures.

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

what is OOP

A

this is where classes and objects and attributes are used. This type of programming mainly focuses on reusability and easy to maintain and update.

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

what is overriding

A

redefining a method in a subclass and altering the code so that it functions differently (produces a different output)

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

what are the advantages of OOP

A

OOP allows for high level of reusability
Encapsulation makes the code more reliable by protecting the attributes from being directly accessed

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

what are disadvantages of OOP

A

it may not be suitable for programmers that are used to working with different programming paradigms
OOP is not suitable for all types of problems. where few components are reused.

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

what happens in a TCP/IP layer

A

in the TCP layer a packet is sent between 2 devices to establish a connection.

In the Internet layer the IP protocol routes packets between both networks

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