Answer:
#include<iostream>
#include<cmath>
#include <ctime>
using namespace std;
int main()
{
time_t t = time(NULL);
tm* timePtr = localtime(&t);
cout << "seconds= " << (timePtr->tm_sec) << endl;
cout << "minutes = " << (timePtr->tm_min) << endl;
cout << "hours = " << (timePtr->tm_hour) << endl;
cout << "day of month = " << (timePtr->tm_mday) << endl;
cout << "month of year = " << (timePtr->tm_mon)+1 << endl;
cout << "year = " << (timePtr->tm_year)+1900 << endl;
cout << "weekday = " << (timePtr->tm_wday )<< endl;
cout << "day of year = " << (timePtr->tm_yday )<< endl;
cout << "daylight savings = " <<(timePtr->tm_isdst )<< endl;
cout << endl;
cout << endl;
cout << "Date " <<(timePtr->tm_mday)<<"/"<< (timePtr->tm_mon)+1 <<"/"<< (timePtr->tm_year)+1900<< endl;
cout << "Time " << (timePtr->tm_hour)<<":"<< (timePtr->tm_min)<<":"<< (timePtr->tm_sec) << endl;
return 0;
}
Explanation:
The given question is not a true or false question. It is a Multiple Choice question. By googling it you can find the correct question here https://www.coursehero.com/file/poq0d6/The-practice-of-spamming-has-been-growing-because-a-it-is-unregulated-b-it-is/
The practice of spamming has been growing because it is so inexpensive and can reach so many people.
Option: D.
<u>Explanation:</u>
Spamming is sending unsolicited messages which is mostly used to prank initially. Spamming has increased these days in various forms and platforms, Mainly in the marketing field, in the form of email, direct messages, etc, to advertise products.
There are various tools that can send a message along with the sender's website or product links to multiple recipients. These tools are widely used in the spamming process. These tools require only a small amount of money either to buy a membership or to send the messages.
Moreover, most of the people around the world using smartphones have mail ids and smartphones have access to the Internet. Either 2 out of 5 people will get attracted to the message and visit the respective sender's site. That, in turn, builds traffic to the sender's site or makes the recipients buy the sender's product or services.
Answer:
Information assurance
Explanation:
Data theft can be defined as a cyber attack which typically involves an unauthorized access to a user's data with the sole intention to use for fraudulent purposes or illegal operations. There are several methods used by cyber criminals or hackers to obtain user data and these includes DDOS attack, SQL injection, man in the middle, phishing, etc.
Information assurance is a broad category that is typically used by cybersecurity or network experts to protect sensitive user information such as passwords, keys, emails, etc., in both digital and hard-copy forms
<span>A compiler executes each program statement as soon as it is translated.
</span>The statement that logic errors are easily identified when a program is compiled is false, because the compiler locates only syntax errors, but logic errors <span>can be
eliminated only through careful examination of your program. </span>
Logic
errors are usually more difficult to find and resolve than syntax
errors.
Answer:
Explanation:
A general idea is that you should repeat the simulation until the results converge. An easy but illustrative example of this is that we want to see if the R function rbinom is accurate in simulating a coin toss with a given probability. We will simulate one coin toss 10000 times, and plot the percentage of heads against the number of coin tosses:
set.seed(1)
n <- 10000
result <- NULL
percent <- NULL
for (i in 1:n) {
result[i] <- rbinom(1,1,0.5)
percent[i] <- sum(result)/i
}
plot(seq(1:10000),percent, type="l")
abline(0.5, 0, lty=2)