Answer:
C. Post-incident activity.
Explanation:
An incident is a event of intrusion or attack or violation of an attempt of an attack. An incident response is an opposing response to an attack or violation.
An incident response life cycle are stages followed to mitigate a current attack or violation. The stages of the incident response life cycle are, preparation, detection and analysis, containing and eradicating and recovery, and post incident activity.
Renting provides greater flexibility but can lead to higher costs in the long term.
Answer:
The program to the given statement can be defined as follows:
Program:
//header file
#include <stdio.h> //defining header file
int main() //defining main method
{
int k; //defining integer variable k
for (k=1;k<=97;k++) //defining for loop
{
printf("*"); //print value asterisks
}
return 0;
}
Output:
*************************************************************************************************
Explanation:
Firstly, the headers file is included in the above C-language, and then the main method is described and all computations are performed with this method, which can be described as follows:
- Inside the main method, an integer variable k is declared.
- In the next line, the for loop is declared, which uses the variable k, which starts from 1 and ends when the value of k is less than equal to 97, inside the loop, it will print asterisks.
Answer:
10.
Explanation:
Binary search divides the array to be search each in half according to the value of the element.
The worst case time complexity of binary search is O(logN).
In this case the time complexity will come out to be log₂(1024)=10.
So the binary search can divide this array in half maximum of 10 times.
Hence the main loop will executes 10 times.
Answer:
public static List<String> listUpper(List<String> list){
List<String> upperList = new ArrayList<String>();
for(String s:list){
s = s.toUpperCase();
upperList.add(s);
}
return upperList;
}
Explanation:
Create a method named listUpper that takes list as a parameter
Inside the method, initialize a new list named upperList. Create a for-each loop that iterates through the list. Inside the loop, convert each string to uppercase, using toUpperCase method, and add it to the upperList.
When the loop is done, return the upperList