Answer:
cookies are stored on client side.
A hacker would need access to your computer, either by physically reading the cookie data or by means of cross-site scripting.
Other than that, cookies should not contain passwords or credit card numbers, just things like preferences or session identifiers.
Answer:
false well if u know someone u can click it
Answer:
Here it is
Explanation:
#include <iostream>
using namespace std;
int main()
{
int a, b;
cin >> a >> b;
int nr_digits1 = 0, nr_digits2 = 0;
int sum1 = 0, sum2 = 0;
int max_digit1 = 0, max_digit2 = 0;
while (a > 1)
{
int digit = a % 10;
nr_digits1 += 1;
sum1 += digit;
if (digit > max_digit1)
{
max_digit1 = digit;
}
a /= 10;
}
while (b > 1)
{
int digit = b % 10;
nr_digits2 += 1;
sum2 += digit;
if (digit > max_digit2)
{
max_digit2 = digit;
}
b /= 10;
}
cout << "For a: \n" << " No. of digits: " << nr_digits1 << "\n";
cout << " Sum of digits: " << sum1 << "\n";
cout << " Max digit: " << max_digit1 << "\n";
cout << "\n";
cout << "For b: \n" << " No. of digits: " << nr_digits2 << "\n";
cout << " Sum of digits: " << sum2 << "\n";
cout << " Max digit: " << max_digit2 << "\n";
return 0;
}
Answer:
1: Don't repeat yourself (DRY).
2: Keep it simple (KISS)
3. Minimize Coupling
4. Maximize Cohesion
5. Hide Implementation Details
6. Law of Demeter
7: Open/Closed Principle
Explanation:
1. Avoiding repetition is probably the single most fundamental tenet in programming.
2. Simplicity should always be a key goal. Simple code takes less time to write, has fewer bugs, and is easier to modify.
3. Any section of code (code block, function, class, etc.) should minimize the dependencies on other areas of code. This is achieved by using shared variables as little as possible.
4. Code that has similar functionality should be found within the same component.
5. Hiding implementation details allows change to the implementation of a code component while minimally affecting any other modules that use the component.
6. Code components should only communicate with their direct relations (e.g. classes that they inherit from, objects that they contain, objects passed by argument, etc.)
7. Software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification. In other words, it is not recommended to write classes that people can modify, write classes that people can extend.
I hope this helps and I'm sorry if it doesn't.
Have a great day! :)
Answer:
E-publishing is also known as digital publishing or online publishing.It means to publish the content in electronic form.It is growing rapidly.It consist digital publication of e-books,digital magazines that can be read on a screen.
<u>Explanation:</u>E-publishing is very convenient.We do not have to keep large number of books on the shelves.E-books are best during travelling because we need not to carry heavy luggage of books.E-books are cheaper than paperbacks.
E-publishing can allow the authors to reach large number of readers.Electronic contents are very well updated.Electronic books are environment friendly.It saves wastage of papers and hence cutting of trees.
Besides above advantages there are some disadvantages of E-publishing:
There are more responsibilities in E-publishing.Chances of copyright infringement can be there.
Profits are very low in case of e-publishing.It is not easy to earn money through this method.
Quality of printed books is much better than e-books.
So we can say that e-publishing has it's own advantages and disadvantages.