answer.
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
jenyasd209
1 month ago
12

An important aspect of maintaining a safe space cushion is also to make sure you have _____ in the event of an emergency. A. an

out B. blind spots C. no distance D. no options
Computers and Technology
2 answers:
maria [1K]1 month ago
7 0

Answer:

A. an out

Clarification:

oksian1 [950]1 month ago
6 0

Answer[]]a

Clarification:

You might be interested in
Cindy visits her favorite website on a lunch break using a hospital computer. After she downloads a file, she notices that the c
Amiraneli [1052]

Explanation:

Keep in mind that Malware is derived from the terms Malicious-Software (Mal...ware). Therefore, Malware can be understood as software that is deliberately created by cybercriminals to infiltrate or damage a computer or network.

a.

Cindy might discover the distinction between these two methods used for executing a malware attack:

  • via downloads from harmful websites: An attacker may create a harmful website where unsuspecting visitors might click to download various files, which will end up installing malware software onto their systems.
  • through phishing emails: These emails may have attachments that, if they are opened or downloaded by an unaware user, will result in malware infecting their system.

b. Here are several basic precautions;

  • Avoid opening attachments from unfamiliar email addresses.
  • install a reputable paid antivirus program.
  • be cautious of websites overloaded with advertisements.
4 0
1 month ago
7. Which of these statements is true? Agile is a programming language MySQL is a database HTML stands for "Hypertext Markup Link
Harlamova29_29 [1022]

Answer:

None of the statements are accurate, although one option appears to lack certain words.

The precise definition is that MySQL functions as a database management system.

Explanation:

Agile is a software development methodology, not a programming language.

HTML denotes "Hypertext Markup Language"

Java and JavaScript are distinct programming languages.

In fact, MySQL serves as a database management system, specifically for managing relational databases, utilizing SQL (Structured Query Language).

5 0
3 months ago
For any element in keysList with a value greater than 50, print the corresponding value in itemsList, followed by a space. Ex: I
ivann1987 [1066]

Answer:

import java.util.Scanner;  //as referenced in the prompt.

public class ArraysKeyValue {  //as mentioned in the prompt.

public static void main (String [] args) {  //as stated in the prompt.

final int SIZE_LIST = 4; //as indicated in the prompt.

int[] keysList = new int[SIZE_LIST]; //as specified in the prompt.

int[] itemsList = new int[SIZE_LIST]; //as outlined in the prompt.

int i; //as identified in the prompt.

keysList[0] = 13; //as mentioned in the prompt.                                

keysList[1] = 47; //as stated in the prompt.

keysList[2] = 71; //as described in the prompt.

keysList[3] = 59; //as referenced in the prompt.

itemsList[0] = 12; //as mentioned in the prompt.

itemsList[1] = 36; //as stated in the prompt.

itemsList[2] = 72; //as specified in the prompt.

itemsList[3] = 54;//as indicated in the prompt.

// additional line needed to finalize the solution is as follows--

for(i=0;i<(keysList.length);i++) //Loop to access each element of keysList array variable.

    {// open for loop braces

        if(keysList[i]>50) // compare the values of keysList array variable with 50.

        System.out.println(itemsList[i]); // print the value

   }// close for loop braces.

}//  close main function braces.

} //close class braces.

Output:

72

54

Explanation:

In the resolution section--

  1. A single loop is engaged that iterates from 0 to (size-1) of the 'keyslist' array.
  2. The 'if' statement checks whether the 'keyslist' array's element exceeds 50 or not.
  3. If it does, the respective 'i' indexed item from the item_list array is printed as well, which corresponds to the higher value of the keyslist array element.

5 0
1 month ago
Describe a strategy for avoiding nested conditionals. Give your own example of a nested conditional that can be modified to beco
maria [1035]

Answer:

To prevent nested conditionals, one can utilize logical expressions like the AND operator.

A recommended approach is creating an interface class with a method designed for a shared function. This design approach is known as the strategy design pattern. The conditional statements can be consolidated into this method. Subsequently, each class can implement this interface and invoke that shared method as needed by constructing instances of subclasses and calling the common method for those objects. This illustrates polymorphism.

Explanation:

Nested conditionals occur when if or else if statements are placed within another condition. For instance:

if( condition1) {

//runs when condition1 is true

  if(condition2) {

//runs when both condition1 and condition2 are true

  }  else if(condition3) {

 //when condition1 is true and condition3 is also true

} else {

 //condition1 is true but neither condition2 nor conditions3 are satisfied

}  }

Excessive nested conditionals can complicate the program, rendering it hard to read or comprehend, particularly if there's improper indentation. Debugging also becomes challenging when there are numerous nested statements.

Thus, several strategies can be adopted to eliminate nested conditionals, such as utilizing a switch statement.

For instance, I’ll present an example of the strategies discussed earlier:

Logical Expressions Usage:

A method to avoid nested conditionals is by employing logical expressions with logical operators like the AND operator. The previous nested conditionals can be reframed as:

if(condition1 && condition2){ //only runs when both condition1 and condition2 are true

} else if(condition1 && condition3) {

executes only if both condition1 and condition3 are true

} else if(condition1 ){

//condition1 is satisfied but neither condtion2 nor condtion3 are true  }

This can be further simplified to one condition as:

if(!condition3){

// when  condition1 and condition2 are both satisfied

}

else

// condition3 is met

Now, consider a simple instance dealing with whether to attend school based on certain conditions.

if (temperature< 40)

{

   if (busArrived=="yes")

   {

       if (!sick)

       {

           if (homework=="done")

           {

               printf("Go to school.");

           }

       }                    

   }

}

Here, nested conditionals are evident. This can be restructured into a solitary conditional using the AND logical operator.

if ((temperature <40) && (busArrived=="yes") &&

(!sick) && (homework=="done"))

{    cout<<"Eligible for promotion."; }

The alternate method is utilizing an interface. For example, you can

abstract class Shape{

//declare a method common to all sub classes

  abstract public int area();

// same method that varies by formula of area for different shapes

}

class Triangle extends Shape{

  public int area() {

     // implementation of area code for Triangle

return (width * height / 2);

  }

}

class Rectangle extends Shape{

  public int area() {

     // implementation of area code for Rectangle

    return (width * height)

  }

}

Now, you can readily create Rectangle or Triangle instances and invoke area() for any of those objects, resulting in execution of the appropriate version accordingly.

4 0
2 months ago
Other questions:
  • Sites like Zillow get input about house prices from a database and provide nice summaries for readers. Write a program with two
    12·1 answer
  • Which of the following type of online advertising intermediaries decide the placement and pricing of online display ads by using
    9·1 answer
  • Suppose that a scheduling algorithm (at the level of short-term CPU scheduling) favors those processes that have used the least
    10·1 answer
  • Henry, a graphic artist, wants to create posters. Which software should Henry use for this purpose?
    13·1 answer
  • A wireless network was recently installed in a coffee shop and customer mobile devices are not receiving network configuration i
    12·1 answer
  • The dealer's cost of a car is 85% of the listed price. The dealer would accept any offer that is at least $500 over the dealer's
    7·1 answer
  • The function below takes two numeric parameters. The first parameter specifies the number of hours a person worked and the secon
    13·1 answer
  • Supervisor: You will need to consolidate your trouble tickets
    10·1 answer
  • Given x and y, each associated with an int, write a fragment of code that associates the larger of these with another variable n
    5·1 answer
  • Write a method named removeDuplicates that accepts a string parameter and returns a new string with all consecutive occurrences
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!