Answer:
!(key == 'q')
Explanation:
Based on the description, the coded expression that would equate to this would be
!(key == 'q')
This piece of code basically states that "if key pressed is not equal to q", this is because the ! symbol represents "not" in programming. Meaning that whatever value the comparison outputs, it is swapped for the opposite. In this case, the user would press anything other than 'q' to continue, this would make the expression output False, but the ! operator makes it output True instead.
Answer:
a) Viruses
Explanation:
Vulnerability assessment is performed by variety of tools and these can be protocol analyzer, vulnerability scanner, Honeypots, port scanners, honey nets and banner grabbing tools.
Port scanners : they are used to scan the ports which can be exploited by attackers. Most of TCP/IP applications communicate using different ports and attackers can exploit these ports if they are found vulnerable. for example : ports like 80 and 443 are commonly used for HTTP and SSL communication. 22 is used for SSH and if they are open to world then it will allow attackers to use those to get the entry into the system.
Protocol Analyzers : They are used to analyze the packet captures. tools like wireshark, tshark, these tools will help user to decode HTTP/SSL/HTTPS/FTP/RSTP or any application protocols communication. this will help user to understand any unwanted or non-anticipated traffic.
Vulnerability Scanners : They are used to detect the vulnerabilities in the network or systems. these will help administrators to get the alerts whenever there are unanticipated activity. It will have two types of scanners one is active scanner and other is passive scanner. Active scanners will keep on sending probes at the fixed time slots and passibe scanners will be in listening mode all the time. These scanners will alert when a new nodes comes up or goes down or if any system gets compromised.
Honeypots and Honey nets : They are devices or softwares which are having limited security. These devices are made vulnerable purposefully so that attackers can try and attack. This will help softwares to detect the attackers when they try to exploit these open vulnerabilities. They are deceptions created with purpose.
Banner grabbing Tools : These are tools which will capture the banner information like HTTP protocol version, underlying operating system, open ssl versions being used, server software and similar information. these are important as it will open up potential vulnerabilities in the underlying software. for ex : SSLv3 has a vulnerability known to world and can be exploited by anyone.
Answer:
On the screen where you select the disk to install Windows, click "Load Driver"
Explanation:
While the user has Windows installed on a new system. Instead, he configures several hard disks in such a RAID 5 series using the RAID controller onto the motherboard. The user is left unpartitioned and improperly formatted in the list. He edits that boot request from either the optical drive for the BIOS to boot. He installs DVD drive, begins the configuration, and boots to the disk.
Then press the "Load Driver" button on the monitor where he picks the disk to install Windows
Answer:
Add the following lines of code to the already existing code segment
<em>for (i = 0; i < SCORES_SIZE-1; ++i) { </em>
<em> bonusScores.at(i) = bonusScores.at(i) + bonusScores.at(i+1);</em>
<em> }</em>
Explanation:
To do the task in the question, we have to iterate through the vector from the first element i.e. element at index 0 to the second to the last element; i.e. element at last index - 1
We then add each element in this iteration with the next.
This iterates through the vector from 0 to SCORES_SIZE - 1
<em>for (i = 0; i < SCORES_SIZE-1; ++i) { </em>
<em>This adds each vector element with the next</em>
<em> bonusScores.at(i) = bonusScores.at(i) + bonusScores.at(i+1);</em>
<em> }</em>
The above should be added before
<em>for (i = 0; i < SCORES_SIZE; ++i) { </em>
<em> cout << bonusScores.at(i) << " "; </em>
<em>}</em>
<em />
<em>Also, I've made other modifications to the program.</em>
- <em>Proper import of header files</em>
- <em>Proper declaration of vector bonusScores</em>
<em />
<em>See attachment for complete source code</em>