The answers are 1, 3, and 5.
Answer:
I am writing the Python program. Let me know if you want the program in some other programming language. Here is the Python code:
class Student(object):
def __init__(a,score=10):
a.score=score
def add_score(a,score):
a.score += 10
return (score)
def decrease_score(a,score):
a.score -=10
return (score)
def __str__(a):
current_score="{}".format(a.score)
return current_score
Explanation:
The program has a Student() class with attribute score.
It has the following methods:
__init__(): This method works as a constructor and enables to initialize score attribute of Student class. The value of score is initialized to 10. I have used a as the instance of Student class. However self keyword can also be used as an instance of the object to access the attributes and methods of Student class.
add_score() This method is used to add 10 to the score.
decrease_score() This method is used to decrease the score by 10.
__str__() This method is used to return the current score. format() is used here to return a string. current_score holds the value of the current score.
If you want the check the working of the program, then you can use the following statements to see the results on the output screen:
p = Student()
print(p)
p.add_score(p)
print(p)
This will create an object p of Student class and calls the above methods to display the values of the score according to the methods.
The program along with its output is attached.
DDoS - Distributed Denial of Service
<u>Explanation:</u>
- In DDoS attack, the attack comes from various system to a particular one by making some internet traffic.
- This attack is initiated from various compromised devices, sometimes distributed globally through a botnet. It is different from other attacks such as (DoS) Denial of Service attacks, in which it utilizes an unique Internet-connected device ( single network connection) to stream a target with the malicious traffic.
- So in DDoS, multiple systems are involved in the attack and hence we can conclude that as the answer.
Answer:
web portals
Explanation:
B2B (business-to-business) is a marketing strategy that deals with meeting the needs of other businesses, by selling products or services to the organizations for resale to other consumers, used in production of goods or for the operation of an organisation.
B2B (business-to-business) model focuses on facilitating sales transactions between businesses.
Under the B2B, the producer sells its products directly to other businesses such as wholesalers or retailers and not the end consumers.
B2B partners often connect to each other on the Internet through special web portals that are designed to facilitate exchange of information and simplified business transactions.
Additionally, a popular application of the seller-side marketplace model, which is a major business-to-business (B2B) e-commerce model, is e-procurement of goods through the use of web portals over the internet and as such eliminating the option of physical buying or procurement.