sem 1 exam revision Flashcards
(31 cards)
DoD TCP/IP Layer 4
Application Layer: Enables the user to interact with the app or network
DoD TCP/IP Layer 3
Transport Layer: Transfers data across a network uses protocols like TCP and UDP
DoD TCP/IP Layer 2
Internet Layer: Handles packaging, addressing and routing of data
DoD TCP/IP Layer 1
Network Access Layer: handles moving data into and out of a network (Wi-Fi, cables).
OSI Layer 7
Application Layer: Interface for the user, supports services like HTTP, SMTP, FTP.
OSI Layer 6
Presentation Layer: Ensures data is transferred through the network in a suitable format
OSI Layer 5
Session Layer: Manages connections (sessions), between local and remote applications
OSI Layer 4
Transport Layer: Ensures complete data transfer, handles errors and flow control, uses TCP and UDP protocols.
OSI Layer 3
Network Layer: Handles IP addressing and routing of data packets across networks.
OSI Layer 2
Data Link Layer: Uses MAC addresses, prepares data for physical layer, handles error-free transfer of data packets.
OSI Layer 1
Physical Layer: Transfers raw bits over a medium like cables or radio waves.
2D arrays
array within an array
creating instances from classes
my_pet = Pet(“Buddy”, 3, “John Doe”)
calling methods from classes
my_pet.show_owner()
inheritance
where one class (child) has the same attributes as another class (parent)
an example is a dog class (child) has some attributes from pet class (parent) but has its own additional attributes (like breed)
polymorphism
method of an object which allows it to take multiple forms
instantiation
blueprint that defines attributes and methods that objects will have
abstraction
hiding complex implementation details
encapsulation
bundling of data (variables) and methods that operate into a single unit - a class
bubble sort
- comparison-based sorting algorithm that swap elements next to each other if in the wrong order
1. start at the beginning of list
2. compare each pair of elements in a list
3. if they are in the wrong order, swap them
4. repeat steps 2-3 until the end of list is reached
5. if any swaps was made in the previous pass, repeat steps 1-4 - time complexity of O(n^2)
insertion sort
- start with second element of list
- compare current element with elements to the left
- if current element is smaller, shift larger elements to the right
- repeat steps 2-3 until current element is in correct position
acceptance testing
-focuses on verifying whether the new system meets the needs and requirements of its intended users
- involves testing the systems functionality, usability and performance to ensure it aligns with the expectations of end-users
mix of transaction types
- simulating various transaction scenarios ensures the system can handle them correctly under a variety of different circumstances
- an example is a banking system
breakpoints
pausing the execution of code and examine the code