Algorithms and Programming Lab Work 11
Object-Oriented Programming in PythonObject-Oriented Programming (OOP) is a programming paradigm based on the concept of “objects,” which can contain data in the form of fields, also known as attributes, as well as code in the form of functions or procedures, referred to as methods. Python has been an object-oriented language since its inception. ClassA class is a prototype, blueprint, or design that defines the variables and methods for specific objects. A class serves to encapsulate the con...
Statistics Lab Work 11
Analysis of Variance (ANOVA)Analysis of variance (ANOVA) is a statistical technique used to test differences in means among more than two sample groups. ANOVA is actually divided into several types, including one-way ANOVA, two-way ANOVA, and three-way ANOVA. This session will focus solely on one-way ANOVA. The ANOVA technique is also used in experimental data analysis to examine the effects of one or multiple factors (independent variables) on a response variable (dependent variable). MODULE...
Computer Network Lab Work 11
TCP Client-Server in PythonA client-server architecture is a model where the client is the device that receives and displays applications (computer software), while the server is the device that provides and manages the applications, data, and security. In this practical exercise, we will be using the Python programming language. Source CodeDownload Source Code MODULEDownload Module 11
Algorithms and Programming Lab Work 10
Search, List & SortingLinear SearchLinear Search is a searching algorithm, also known as sequential search, that is suitable for finding a specific value within a data set. This algorithm operates by checking each element of a list until a match is found. Binary SearchBinary Search, often referred to as the binary search algorithm, is a technique for finding a specific value in a linear array by eliminating half of the data at each step. It is widely used but not exclusively in computer s...
Statistics Lab Work 10
Probability of Discrete Random Variables (Binomial Distribution)The binomial distribution can be used to calculate the probability of a discrete variable with the following characteristics: A total of n trials are conducted. Each trial results in only 2 possible outcomes, such as success or failure. The results of the trials must be independent. All probabilities must be the same for each trial. MODULEDownload Module 10
Computer Network Lab Work 10
Security of Access Control ListsAn Access Control List (ACL) is a list of permissions attached to an object. An ACL specifies which users or system processes are granted access to the object, as well as the operations permitted on that object. Each entry in a typical ACL specifies a subject and an operation. Advantages of Using ACLs: Limits network access and improves network performance; for example, ACLs can block video traffic, reducing network load and enhancing overall performance. ACLs...
Algorithms and Programming Lab Work 9
File HandlingFile handling refers to the management of files in programming. The concept of file handling allows us to open, close, read, write, append, and copy files. Python treats different types of files, whether in binary or text format. To implement file handling in Python, the syntax used is: file = open(‘filename’, ‘mode’). Python provides three types of modes for opening files: 1234"r", for Read."w", for Write."a", for Addition."r+", for Read &...
Statistics Lab Work 9
Probability of Continuous Random Variables (Normal Distribution)The normal distribution is a type of discussion in statistics related to probability distribution, also known as probability distribution. Through the normal distribution table, it is often used for calculating various phenomena in everyday life, such as height measurement, blood pressure, error calculations, and IQ scores. The term normal distribution is also referred to as Gaussian distribution, with one of the key equations be...
Computer Network Lab Work 9
Cisco Discovery Protocol ConfigurationCisco Discovery Protocol (CDP) is a useful tool for addressing incomplete or inaccurate networks. CDP is media and protocol independent; it only displays information about connections to directly connected Cisco devices. MODULEDownload Module 9
Algorithms and Programming Lab Work 8
Recursive FunctionA recursive function is a function that calls itself repeatedly. So, within the body of the declared function, we call that function itself. Recursion is essentially a form of looping within a program. However, recursive looping is quite different from typical loops like while and for. While their purpose is the same—performing iteration or looping—the difference lies in how they operate. If for and while are loops that use a condition or Boolean (true/false), recursion occu...




