Answer:
a student who researches various websites that show how to gamble online
a student who visits a special website with step-by-step directions on how to make a bomb
a student who posts jokes online about the cultural heritage of other students
Explanation: These are all most likely against school policy. In fact attempting to make a bomb is illegal.
Answer:
b. Enable Secret
Explanation: Enable secret command is used to enable a secret password for a particular privilege level. It encrypts the desired password for entering the privileged executive mode of a router or switch. This encryption restrains the password from being saved in clear text format in configuration file contrary to enable password which is stored in plain text. Enable secret defines additional layer of security over the enable password. It is based on MD5 hash algorithm. If both enable secret and enable password commands are configured, then enable secret outranks and overrides the enable password. Internetwork Operating System will only acknowledge the password as configured in the enable secret command. When you set a password using enable secret command, a password set using the enable password command only works if enable secret is disabled or you are using older version of Cisco IOS software.
Answer:
Following are the code to this question:
CarCounter::~CarCounter()//Defining destructor CarCounter
{
cout << "Destroying CarCounter\n";//print message Destroying CarCounter
}
Explanation:
Following are the full program to this question:
#include <iostream>//Defining header file
using namespace std;
class CarCounter //Defining class CarCounter
{
public:
CarCounter();//Defining constructor CarCounter
~CarCounter();//Defining destructor CarCounter
private:
int carCount;//Defining integer variable carCount
};
CarCounter::CarCounter()//declaring constructor
{
carCount = 0;//assign value in carCount variable
return;//using return keyword
}
CarCounter::~CarCounter()//Defining destructor CarCounter
{
cout << "Destroying CarCounter\n";//print message Destroying CarCounter
}
int main() //Defining main method
{
CarCounter* parkingLot = new CarCounter();//Defining class object parkingLot
delete parkingLot;//
return 0;
}
- In the given C++ language code, a class "CarCounter" is defined, and inside the class, a "constructor, Destructors, and an integer variable" is defined.
- Outside the class, the scope resolution operator is used to define the constructor and assign value "0" in the integer variable.
- In the above-given code, the scope resolution operator, to define destructor and inside this cout function is used, which prints a message.
- In the main method, the class object is created, which automatically calls its class constructor and destructors.
It mainly just depends on if you "misuse" them.
The answer & explanation for this question is given in the attachment below.