1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Jobisdone [24]
3 years ago
15

If a destructive program is running that might be destroying evidence what should be done

Computers and Technology
1 answer:
Vikentia [17]3 years ago
3 0
The choices can be found elsewhere and as follows:
a. perform an immediate full backup
b. attempt to end the process
c. pull the power cable
d. record the destruction using a video capture of the screen

I think the correct answer is option a. If a destructive program is running that might be destroying evidence, then perform an immediate full backup. 
You might be interested in
Given an array A of size N, and a number K. Task is to find out if it is possible to partition the array A into K contiguous sub
Dennis_Churaev [7]

Answer: First lets solve the Prerequisite part

Lets say we have an input array of N numbers {3,2,5,0,5}. We have to  find number of ways to divide this array into 3 contiguous parts having equal sum. So the output for the above input array will be 2 as there are 2 ways to divide the array. One is (3,2),(5),(0,5) and the other is (3,2),(5,0),(5).

Following are the steps to achieve the above outcome.

  • Let p and q point to the index of array such that sum of array elements from 0 to p-1 is equal to sum of array elements from p to q which is equal to the sum of array elements from q+1 to N-1.  
  • If we see the array we can tell that the sum of 3 contiguous parts is 5. So the condition would be that sum of all array elements should be equal to 5 or sum of each contiguous part is equal to sum of all array elements divided by 5.
  • Now create 2 arrays prefix and postfix of size of input array. Index p of prefix array carries sum of input array elements from index 0 to index p. Index q of postfix array carries sum of input array elements from index p to index N-1
  • Next move through prefix array suppose at the index p of prefix array : value of prefix array == (sum of all input array elements)/5.
  • Search the postfix array for p index found above. Search it starting from p+2 index. Increment the count variable by 1 when the value of postfix array =(sum of all input array elements)/5 and push that index of postfix array into a new array. Use searching algorithm on new array to calculate number of values in postfix array.

Now lets solve the main task

We have an array A of size N and a number K. where A[]= {1,6,3,4,7} N=5 and K=3. We have to find if its possible to partition A into 3 contiguous subarrays such that sum of elements in each subarray is the same. It is possible in this example. Here we have 3 partitions (1,6),(3,4),(7) and sum of each of subarrays is same (1+6) (3+4) (7) which is 7.

Following are the steps to achieve the above outcome.

  • In order create K contiguous subarrays where each subarray has equal sum, first check the condition that sum of all elements in the given array should be divisible by K. Lets name another array as arrsum that will be the size of array A. Traverse A from first to  last index and keep adding current element of A with previous value in arrsum. Example A contains (1,6,3,4,7} and arrsum has {1,7,10,14,21}
  • If the above condition holds, now check the condition that each subarray or partition has equal sum. Suppose we represent sum1 to sum of all element in given array and sum2 of sum of each partition then: sum2 = sum2 / K.
  • Compare arrsum to subarray, begining from index 0 and when it becomes equal to sum2 this means that end of one subarray is reached. Lets say index q is pointing to that subarray.
  • Now from q+1 index find p index in which following condition holds: (arrsum[p] - arrsum[q])=sum2
  • Continue the above step untill K contigous subarrays are found. This loop will break if, at some index, sum2 of any subarray gets greater than required sum2 (as we know that every contiguous subarray should contain equal sum).

A easier function Partition for this task:

int Partition(int A[], int N, int k) // A arra y of size N and number k

{      int sum = 0;    int count = 0;  //variables initialization    

   for(int j = 0; j < N; j++)  //Loop that calculates sum of A

  sum = sum + A[j];        

  if(sum % k != 0) //checks condition that sum of all elements of A should be //divisible by k

   return 0;        

   sum = sum / k;  

   int sum2 = 0;  //represents sum of subarray

  for(int j = 0; j < N; j++) // Loop on subarrays

  {      sum2=sum2 + A[j];  

   if(sum2 == sum)    { //these lines locates subarrays and sum of elements //of subarrays should be equal

       sum2 = 0;  

       count++;  }  }  

/*calculate count of subarrays whose

sum is equal to (sum of complete array/ k.)

if count == k print Yes else print No*/

if(count == k)    

return 1;  

   else

   return 0;  }

6 0
4 years ago
C++ program: Write a program that prompts the user to input three numbers. The program should then output the numbers in ascendi
Lelechka [254]

Answer:

// here is code in C++.

#include<iostream>

using namespace std;

int main()

{

// declare variables

  double num1, num2, mun3, t;

  cout << "Enter three numbers: ";

// read the three numbers

  cin >> num1 >> num2 >> mun3;

  //sort the three numbers

  if( num1>num2 )

  {

     t = num1;

     num1 = num2;

     num2 = t;}

  if( num2>mun3 ){

     t = num2;

     num2 = mun3;

     mun3 = t;}

  if( num1>num2 ){

     t = num1;

     num1 = num2;

     num2 = t;

  }

  // print the output

  cout<<"numbers in ascending order:";

  cout << num1 << " " << num2 << " " << mun3 << endl;

  return 0 ;

}

Explanation:

Declare three variables to store the input. Read the value of all three variables. If first number is greater than second, then with the help of variable "t" swap the  value of first and second.after that if second is greater than third number, swap them.In last if first number is greater than second one then swap them. This will sort the three numbers in ascending order.

Output:

Enter three numbers: 3 7 2                                                                                                

numbers in ascending order:2 3 7

3 0
3 years ago
50 POINTS! PLEASE HELP!
Basile [38]

Answer:

NAT

Explanation:

The Network Address Translation (NAT) is a Virtual Machine Software which allows organizations to make use of a single Internet Protocol by altering the private network addresses to a private one. It makes it possible to Map multiple network addresses to a public address thereby providing security. The NAT VMware allows a single device such as a router provide an information transfer interface between a private and public network. Hence, it does not use the physical network of the computer.

8 0
3 years ago
Write a program that inserts 25 random integers from 0 to 100 in order into a LinkedList object.The program must:• sort the elem
posledela

Answer:

Written in Java

import java.util.Collections;

import java.util.Random;

import java.util.LinkedList;

class Main {

 public static void main(String[] args) {

   LinkedList<Integer> myList = new LinkedList<Integer>();

   Random rand = new Random();

   int randnum;

   int sum = 0;

   for(int i = 0;i<25;i++)     {

       randnum = rand.nextInt(101);

       myList.add(new Integer(randnum));    

       sum+=randnum;

   }

   Collections.sort(myList);

   System.out.println(myList);

   System.out.println("Average: "+(float)sum/25);

 }

}

Explanation:

import java.util.Collections;

import java.util.Random;

import java.util.LinkedList;

class Main {

 public static void main(String[] args) {

This declares a linkedlist as integer

   LinkedList<Integer> myList = new LinkedList<Integer>();

This declares random variable rand

   Random rand = new Random();

This declares randnum as integer

   int randnum;

This declares and initializes sum to 0

   int sum = 0;

The following iteration generates random numbers, inserts them into the linkedlist and also calculates the sum of the generated numbers

<em>    for(int i = 0;i<25;i++)    { </em>

<em>        randnum = rand.nextInt(101); </em>

<em>        myList.add(new Integer(randnum));     </em>

<em>        sum+=randnum; </em>

<em>    } </em>

This sorts the list

   Collections.sort(myList);

This prints the list

   System.out.println(myList);

This calculates and prints a floating-point average

   System.out.println("Average: "+(float)sum/25);

 }

}

4 0
3 years ago
If we collect data on the number of wins each team in the NFL had during the 2011-12 season, we have _____________ data.
olchik [2.2K]

Answer:

Cross Sectional Data.

Explanation:

Cross-sectional data:- These are the observations that are made at the same point in the defined time period. These observations could be on a single day or these observations can also be for a week, month, year.

So the case provided to us is the data for a season of NFL that was from 2011-2012 season.So we can say that the data is cross-sectional.

7 0
3 years ago
Other questions:
  • Based on the current economic situation do you expect the employment demand for graduating engineers to increase or decrease? Ex
    9·1 answer
  • Which programming language is an interpreted language most commonly used for client-side Web scripting, such as animating page e
    14·1 answer
  • Much has been made of the new Web 2.0 phenomenon, including social networking sites and user-created mash-ups. How does Web 2.0
    11·1 answer
  • One of your clients is looking into investing in direct participation programs. He is examining several different types of progr
    13·1 answer
  • Which site was launched by Ben t Smith iv
    12·1 answer
  • Code Example 17-1 class PayCalculator { private: int wages; public: PayCalculator&amp; calculate_wages(double hours, double wage
    8·1 answer
  • How many days till earth ends
    12·1 answer
  • In the Burp Suite Program that ships with Kali Linux, what mode would you use to manually send a request (often repeating a capt
    14·1 answer
  • Hue purchased 50 shares of stock on April 24, 2019. The price skyrocketed, so she decided to sell the stock in April of 2020. Wh
    12·1 answer
  • A web site that contains large numbers of misspelled words and grammatical errors fails which of these general criteria?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!