A hacker is trying to perform a Distributed Denial of Service (DDoS) attack on the server by flooding it with bogus requests from zombies in a botnet.

Answers

Answer 1

The correct option is A: "A hacker is trying to perform a DDoS attack on the server by flooding it with bogus requests from zombies in a botnet".

Distributed Denial of Service (DDoS) attacks are a type of denial of service (DoS) attack. A DDoS attack involves a network of multiple connected online devices, known as a botnet, that are used to flood a target website with bogus traffic.

In the scenerio where you are watching the network with a sniffer, analyzing external traffic when a server suddenly begins getting hundreds of unidentifiable random packets from a variety of sources. The most likely scenario is that a cybercriminal is trying to launch a DDoS attack on the server by flooding it with bogus requests from zombies in a botnet.

"

Complete question:

You are monitoring the network by analyzing the external traffic with a sniffer when, suddenly, a server starts receiving hundreds of unidentified random packets from many different sources. What is most likely happening?

A) A hacker is trying to perform a Distributed Denial of Service (DDoS) attack on the server by flooding it with bogus requests from zombies in a botnet.

B) A hacker is making the server devote more resources than the attacker's machine by exploiting a protocol weakness.

C) A hacker is trying to brute force the server to break into it with admin credentials.

D) A hacker is performing an ARP (Address Resolution Protocol) poisoning attack to make the attacker's IP the default gateway in order to redirect traffic.

"

You can leanr more about Distributed Denial of Service (DDoS) at

https://brainly.com/question/29992471

#SPJ4


Related Questions

You were conducting a forensic analysis of an iPad backup and discovered that only some of the information is within the backup file. Which of the following best explains why some of the data is missing

Answers

The backup being examined in this case is probably a differential backup that contains the data that has changed since the last complete backup.

How does forensic analysis work?

A thorough study to determine the cause, origin, perpetrators, and outcomes of a security event or a breach of company policy or federal law is known as forensic analysis. Particularly in criminal cases, forensic analysis is frequently associated with evidence presented to the court.

What is the work of a forensic analyst?

Forensic science technicians often perform the following tasks in labs: Analyze the forensic evidence you have collected from crime scenes using chemical, biological, and microscopic methods. Investigate potential connections between suspects and criminal conduct using DNA or other scientific analysis findings.

To know more about forensic analysis visit:

https://brainly.com/question/4327079

#SPJ4

To analzye various alternative scenarios, a manager would use _______.
a. the spreadsheet's 'what-if' capability
b. the graphing features of spreadsheet software
c. the reporting feature of a BI tool
d. a data visualization tool

Answers

The 'what-if' feature of the spreadsheet would be used by the management to assess numerous potential scenarios.

used to search through enormous amounts of data for hidden patterns that can be utilized to forecast future trends?

Large data sets are sorted through using a technique called data mining to find patterns and relationships that may be used to analyze data and find answers to business challenges. Businesses can foresee future trends and make more educated business decisions thanks to data mining techniques and tools.

Which of the following will be a fact measure in a data cube utilized at a chain retail establishment?

The revenue for a chain retail business is typically the fact measure in a data cube (example: Indiana's second-quarter revenue of $900 from sales of pants).

To know more about spreadsheet visit :-

https://brainly.com/question/8284022

#SPJ4

to use the predefined function tolower, the program must include the header file ____.

Answers

To use the predefined function to lower, the program must include the header file cc type

What is the variable in the heading of a function called?

What are the variables that are defined in the function heading known as? formal parameters. What are the actual parameters of a function? The expressions, variables or constant values that are used in a function call.

What is the variable in the heading of a function called?

What are the variables that are defined in the function heading known as? formal parameters. What are the actual parameters of a function? The expressions, variables or constant values that are used in a function call.

To know more about program visit:-

https://brainly.com/question/14718387

#SPJ4


1.Explain five measures that protect users in the computer laboratory (10mks)

Answers

This chapter covers safe lab techniques, fundamental workplace safety precautions, proper instrument usage, and computer disposal.

What security precautions are in place in the computer lab?

When you are through using the device, turn it off. Never connect external devices without first checking them for malware. Since there are numerous devices and they might rapidly overheat in a lab, it is important to maintain a cool temperature in the space.

What safety measures in laboratories are most crucial?

Put on safety lab gear: As soon as you enter the lab, make sure you are wearing PPE. Before entering the lab, put on a lab coat with long sleeves, closed-toe shoes, and safety goggles. Keep your hair long if you have long hair.

To know more about computer laboratory visit:-

https://brainly.com/question/14751939

SPJ1

To achieve server scalability, more servers may be added to a configuration and make use of:
Choose matching definition
1. Inbound packets are traversing the active firewall and return traffic is being sent through the passive firewall
2. load balancers
3. RAID
Clustering
Load balancing

Answers

To achieve server scalability, more servers may be added to a configuration and make use of: 2. load balancers

How does a load balancer operate?

A load balancer serves as the "traffic cop" in front of your servers, distributing client requests among all servers equipped to handle them in a way that maximizes speed & capacity utilization and makes sure that no server is overloaded, which can result in performance degradation.

What is load balancing at Layer 4?

Without needing to see the content of messages, Layer 4 load balancing controls traffic based on network metadata like protocols and application ports.

To know more about  server scalability visit:

https://brainly.com/question/29869699

#SPJ4

As part of clinical documentation improvement, a patient case review resulted in the determination that a patient's previous hospital discharge was inappropriate because the patient was transported back to the hospital via ambulance and admitted through the emergency department within three days of the previous discharge; this process is called a __________ audit.

Answers

Within three days of the previous release; this procedure is known as a readmission audit.

For an osteoporosis diagnosis, which code would be considered a medical necessity?

The WHO classifies ICD-10 code Z13. 820, Encounter for osteoporosis screening, as a medical condition that falls under the heading of "Factors influencing health status and interaction with health services."

What kind of code should be used to record a patient's disease, injury, or medical condition?

The state of the patient and the diagnosis made by the doctor are represented by ICD codes. These codes are employed in the billing procedure to establish medical necessity. Coders must ensure that the procedure they are billing for is appropriate given the provided diagnosis.

To know more about readmission audit visit :-

https://brainly.com/question/29979411

#SPJ4

A recovery tool that creates restore points, which are snapshots of Windows, its configuration, and all installed programs.

Answers

restore the system A recovery application that takes screenshots of Windows, its setup, and all installed programs to generate restore points

A recovery tool is what?

Software tools for backup and recovery are made to provide storage backup to tape, disk, or optical media as well as data recovery when necessary. Products geared specifically toward helping the recovery process, such as virtual tape libraries, are also included in this area.

What is the mechanism of the recovery tool?

When the master file table reference is deleted, the space on the disk where the data is stored is marked as free and accessible for new data to be overwritten. If no data is erased, data recovery is still a possibility. This is essentially how data recovery software works.

To know more about recovery tool visit:

https://brainly.com/question/29315685

#SPJ4

The local amusement park has decided to stop printing paper copies of the park map. It will now only be available as a digital file. Why do some visitors think this is a bad idea

Answers

For the fact that not every visitor will have a mobile device on which he or she can read the map, some visitors believe that this is a bad idea.

What sort of paper is ideal for printing maps on?

A synthetic paper is the finest medium to print maps on if you want results that are waterproof, durable, and tear resistant. SYNPLAS SPA possesses all of these qualities. For printing maps and charts, synthetic papers are available.

Are paper maps distributed at Disneyland?

There are various places to get a map while in the Disneyland Resort. At the main entrance turnstiles of the theme park, there is a paper park brochure with a map. The majority of Guest Relations sites also have these.

To know more about mobile device visit :-

https://brainly.com/question/30011881

#SPJ4

Which of the following is one of the primary advantages to using Active Directory to store DNS information

Answers

The primary advantages to using Active Directory to store DNS information is fault tolerance

Making it possible for domain client computers to locate a domain controller AND for domain controllers to locate one another in order to replicate changes to the Active Directory database is the major goal of DNS for Active Directory (AD).

Some recommendations to keep in mind when designing fault-tolerant systems for the canning department include:

1) To examine the software's dependability

2) To examine the system's redundancy structure for fault tolerance

3) To assess the use of reliability-oriented designs, programming approaches, and methods.

Four) Creating diverse

5) Resources and methods to be applied

6) The dependability of the software and hardware

Your question is incomplete ut most probably your full question was

Which of the following is one of the primary advantages to using Active Directory to store DNS information

a. fault tolerance b. zero configuration c. low maintenanced.

Learn more about dns at https://brainly.com/question/17163861

#SPJ4

URGENT: What questions would you ask a USER when in a requirements-gathering session? Multiple answers may be selected.

1. Are there any websites that you like or dislike?
2. What key information do you expect to find on the site?
3. What kind of security would you like to be implemented for the transactions you might do?
4. What might help you to navigate the sire?

Answers

The questions would you ask a user when in a requirements-gathering session are:

2. What key information do you expect to find on the site?

3. What kind of security would you like to be implemented for the transactions you might do?

What is a requirements-gathering session?

The act of developing a list of requirements to explain what a project is about and its aim is known as requirement gathering. Stakeholders, whether clients, employee users, consumers, or vendors, can provide insights.

Requirement gathering is frequently used to create project blueprints. Developers, for example, adjust requirements between iterations.

Therefore, the correct options are 2 and 3.

To learn more about the requirements-gathering session, refer to the link:

https://brainly.com/question/29768295

#SPJ1

What type of error is raised when the Python virtual machine runs out of memory resources to manage a process

Answers

Stack overflow error is the  type of error is raised when the Python virtual machine runs out of memory resources to manage a process.

How can you define a stack overflow error example?

JVM will generate a StackOverflowError during this process if there is not enough room to store the new stack frames that must be constructed. Consider this: improper or nonexistent termination conditions This is mostly what leads to the condition known as unterminated or infinite recursion.

Why do Java stack overflow errors occur?

The Javadoc description for StackOverflowError notes that the error is generated as a result of too deep recursion in a specific code snippet as the most frequent cause for the JVM to experience this circumstance.

To know more about Stack overflow visit

brainly.com/question/28198079

#SPJ4

The comparison of the present state of a system to its baseline is known as what?
Question 4 options:
a. Baseline reporting
b. Compliance reporting
c. Baseline assessment
d. Compliance review

Answers

Baseline reporting is the process of comparing the current state of a system to its baseline.

What is the name for a network that is purposefully vulnerable?

A honeynet is a network that has been intentionally set up with flaws and is hosted on a phony server to draw in hackers. The main goal is to simulate assaults in order to test network security.

What alternative term would you use to describe a security weakness?

A security vulnerability is a weak point, fault, or mistake discovered in a security system that could be used by a threat agent to penetrate a protected network.

To know more about Baseline visit :-

https://brainly.com/question/30193816

#SPJ4

Why would a technician enter the command copy startup-config running-config?
O to remove all configurations from the switch
O to save an active configuration to NVRAM
O to copy an existing configuration into RAM
O to make a changed configuration the new startup configuration

Answers

The technician wishes to modify a previously saved configuration by copying it from NVRAM into RAM.

What does the command copy startup config running-config accomplish?

Use the command copy running-config startup-config to replace the current startup configuration file with the contents of the running configuration file (copy run start). copies a new checkpoint's or the startup configuration's current configuration.

What would require a technician to use the copy command?

The COPY command transfers chosen file components to a different file, the printer, or the terminal. Additionally, by assigning it a new item-ID, you can duplicate any item and put it in the same file.

To know more about RAM visit:-

https://brainly.com/question/15302096

#SPJ4

Based on the videos and the reading material, how would you define a data scientist and data science?
As discussed in the videos and the reading material, data science can be applied to problems across different industries. Give a brief explanation describing what industry you are passionate about and would like to pursue a data science career in?
Based on the videos and the reading material, what are the ten main components of a report that would be delivered at the end of a data science project?

Answers

The task of gathering, examining, and interpreting enormous volumes of data falls under the purview of the data scientist.

The role of a data scientist is an offshoot of several traditional technical roles, including mathematician, scientist, statistician, and computer professional. A data scientist is a person who connects the dots between the current understanding of the business world as well as the data world

A data scientist uses data science as the craft to accomplish this. The foundation for corporate expansion, cost and risk reduction, and even the development of new business models, is provided by data science and machine learning. Data scientists built it for data scientists.

Now you can create values faster using the best of open source. Data Science is a thorough examination of the information flow from the enormous volumes of data kept in a repository by an organisation. It entails deriving valuable insights from unstructured, raw data that has been handled using programming, analytical, and business abilities.

To learn more about data scientists

https://brainly.com/question/24269857

#SPJ4

Given the set of element {a, b, c, d, e, f} stored in a list, show the final state g of the list, assuming we use the move-to-front heuristic and

Answers

Self-Organizing list according to a certain sequence applying move-to-Front algorithm. Output of the different states of the list including the final state is shown.

Python code

from __future__ import print_function

#Define variables

inpt = 'abcdefacfbde'

seq = list('abcdef')

sq, p = [], seq[::]

ss = 0

if __name__ == '__main__':

   print("Self-Organizing Lists applying move-to-Front algorithm")

   print("Define sequence pattern: ", seq[:])

   print("")

   print("Access sequence")

   for s in inpt:

       ss+=1

       for x in seq:

 #applying move-to-Front algorithm

           idx = p.index(x)

           sq.append(idx)

           p = [p.pop(idx)] + p

           if p[0] == s:

 #output sequence

               print("seq:",ss, ": ", p)

               lst = (p[len(p)-1])

               sp = p

   sp.append(lst)

   print("Final state of the list: ", sp )

   

To learn more about Self-Organizing list see: https://brainly.com/question/6362941

#SPJ4

 

3. __________is the energy of position. Hint: It is stored energy of an object due to its height that has the ability to become active. Page 259 *

Answers

Potential energy is the energy that an object has due to its position. The energy an object possesses as a result of its motion is referred to as kinetic energy.

What does potential energy mean?

Potential energy is energy that is conserved or stored in a substance or an item. The object or substance's position, organization, or state determines the amount of stored energy. Consider it as energy with the "potential" to do work.

What three types of energy have potential?

Potential energy exists in stones perched on a cliff's edge. The potential energy will be transformed into kinetic energy if the stones fall. High on the tree, branches have the potential to fall, which gives them vitality.

To know more about potential energy visit :-

https://brainly.com/question/24284560

#SPJ4

2. State eight typing keys (8mks)​

Answers

     On a keyboards, the main sequence is the central row where the keys are located. When beginning to write, you rest your fingertips on the home keys. F, D, S, and A are the main keys, and J, K, L, and ; (semicolon) are located on the right side of the keyboard.

For this assignment, you will create a calendar program that allows the user to enter a day, month, and year in three separate variables as shown below.

Please enter a date
Day:
Month:
Year:
Then, your program should ask the user to select from a menu of choices using this formatting:

Menu:
1) Calculate the number of days in the given month.
2) Calculate the number of days passed in the given year.
If a user chooses option one, the program should display how many days are in the month that they entered. If a user chooses option two, the program should display how many days have passed in the year up to the date that they entered.

Your program must include the three following functions:

leap_year: This function should take the year entered by the user as a parameter. This function should return 1 if a year is a leap year, and 0 if it is not. This information will be used by other functions. What is a Leap Year? (Links to an external site.)
number_of_days: This function should take the month and year entered by the user as parameters. This function should return how many days are in the given month. (Links to an external site.)
days_passed: This function should take the day, month, and year entered by the user as parameters. This function should calculate the number of days into the year, and return the value of number of days that have passed. The date the user entered should not be included in the count of how many days have passed.
Hints
Start by defining your variables, using comments. You will need a separate variable for day, month, and year that store numbers input from the user.
Make sure to name your three functions exactly as they are named above, and pass the parameters exactly in the order specified below:
leap_year(y)
number_of_days(m, y)
days_passed(d, m, y)
Once you have a function that calculates whether a year is a leap year, that function should be called within your number_of_days() function. February can have either 28 or 29 days, so your number_of_days() function needs to take into account whether or not it is a leap year.
Once you have a function that calculates the number of days in a given month, that function should be called within your days_passed() function. Different months have different numbers of days, so your days_passed() function needs to take into account what month of the year it is.

Sample Run 1
Please enter a date
Day: 5
Month: 5
Year: 1984
Menu:
1) Calculate the number of days in the given month.
2) Calculate the number of days passed in the given year.
1
31

Sample Output 1
Please enter a date
Menu:
1) Calculate the number of days in the given month.
2) Calculate the number of days passed in the given year.
31

Sample Run 2
Please enter a date
Day: 21
Month: 6
Year: 2016
Menu:
1) Calculate the number of days in the given month.
2) Calculate the number of days passed in the given year.
2
172

Sample Output 2
Please enter a date
Menu:
1) Calculate the number of days in the given month.
2) Calculate the number of days passed in the given year.
172

Answers

Answer:

hummm i have the same work i got a A

is this it is

Explanation:

For this assignment, you will create a calendar program that allows the user to enter a day, month, and year in three separate variables as shown below. Please enter a date Day: Month: Year: Then, your program should ask the user to select from a menu of choices using this formatting: Menu: 1) Calculate the number of days in the given month. 2) Calculate the number of days passed in the given year. If a user chooses option one, the program should display how many days are in the month that they entered. If a user chooses option two, the program should display how many days have passed in the year up to the date that they entered. Your program must include the three following functions: leap_year: This function should take the year entered by the user as a parameter. This function should return 1 if a year is a leap year, and 0 if it is not. This information will be used by other functions. What is a Leap Year? (Links to an external site.) number_of_days: This function should take the month and year entered by the user as parameters. This function should return how many days are in the given month. (Links to an external site.) days_passed: This function should take the day, month, and year entered by the user as parameters. This function should calculate the number of days into the year, and return the value of number of days that have passed. The date the user entered should not be included in the count of how many days have passed. Hints Start by defining your variables, using comments. You will need a separate variable for day, month, and year that store numbers input from the user. Make sure to name your three functions exactly as they are named above, and pass the parameters exactly in the order specified below: leap_year(y) number_of_days(m, y) days_passed(d, m, y) Once you have a function that calculates whether a year is a leap year, that function should be called within your number_of_days() function. February can have either 28 or 29 days, so your number_of_days() function needs to take into account whether or not it is a leap year. Once you have a function that calculates the number of days in a given month, that function should be called within your days_passed() function. Different months have different numbers of days, so your days_passed()

You are working on a computer with a host name of nntp-9.BoutiqueHotel. What is the NETBIOS name of this computer

Answers

NetBIOS domain name: The DNS domain name is often the parent domain of the NetBIOS domain name. For instance, the NetBIOS domain name is contoso if the DNS domain name is contoso.com.

Windows 10: Where can I locate my NetBIOS name?

You may verify NetBIOS and your Active Directory domain FQDN with a few straightforward command prompt commands. Information is seen when you type nbtstat -n. There will be numerous entries under Name, and one of the Group types will be NetBIOS.

How many characters may a fully qualified domain name (FQDN) have in total?

The host name and fully qualified domain name (FQDN) are limited to 63 bytes per label and 255 characters per FQDN, respectively.

To know more about DNS visit:-

https://brainly.com/question/17163861

#SPJ4

g Shift registers and counters use hardware _____________________ for their internal data storage.

Answers

A series of core registers coupled together to generate a clock-driven data shift is known as shift register counters. Johnson counters and ring counters are two of the most popular types of these.

What is the purpose of a shift register?

Shift registers are widely used in converters that convert parallel data to serial data or vice versa. Shift registers can also be employed as delay circuits and digital pulse extenders.

Can data be stored in a shift register?

A shift register is represented by a pair of terminals that are placed next to one another, vertically on either side of the loop boundary. When an iteration is finished, data is stored in the terminal on the right side of the loop, which has an up arrow.

To know more about shift register here:-

brainly.com/question/14096550

#SPJ4

n his e-mail to select bank customers, Patrick was careful to use an informative subject line and to use a font size and style that is easy to read. These preparations serve what function in this communication scenario?netiquetteaudiencepurposeworkplace c

Answers

Answer:

These preparations serve the purpose of making the e-mail more effective in communicating the message to the audience.

Explanation:

origin encountered an issue loading this page. please try reloading it – if that doesn’t work, restart the client or try again later. I have reinstalled it multiple times, but still have same issue. Any solution?

Answers

Accessing the Origin data folder and deleting the cached files there is one of the most effective fixes for the "Origin Encountered an Issue Loading this Page" error.

Why won't my Origin page load?

Do a Clean Boot and restart your modem and router. Check to see if your UAC is activated and configured to notify. Install the client by downloading the most recent version of Origin and running the setup file with administrative privileges. Specify the Origin in firewall and antivirus exclusions, and open the required ports.

How do I resolve Origin has trouble loading this page?

Try to access the Origin data folder and remove the cache files inside if you want to get rid of the "Origin Encountered an Issue Loading this Page" error.

What happens when the Origin cache is cleared?

Older content is replaced by new content after clearing the origin cache. This occurs as a result of the origin server having fresh data. Therefore, the proxy servers start to cache new content.

To know more about encountered visit:

https://brainly.com/question/30168732

#SPJ4

Computer file have name that conit of which two part?
bae file name and file name prefix
long file name and hort file name
bae file name and file creation date
bae file name and file name extenion

Answers

Windows file names consist of the file name, a period, and the file extension (suffix). A three- or four-letter shorthand known as the "extension" designates the type of file.

What is a file name the two parts of a filename?Windows file names consist of two parts: the file name and a three- or four-character extension that indicates the file type. These two sections are separated by a period. within costs. For instance, in the file name expenses.xlsx, the file extension is.xlsx.The file's extension informs your computer which programme created or can open the file and which icon to use. For instance, the docx extension instructs your computer to display a Word symbol when you examine the file in File Explorer and that Microsoft Word may open it.The majority of file name extensions work with many programmes that you have installed. The only thing that will change when you change a file's extension is the file name; nothing else will be altered.

To learn more about extension refer :

https://brainly.com/question/28578338

#SPJ4

The process of sending print jobs from the print queue to the printer is called? a. spooling b. queuing c. redirecting d. printing.

Answers

Printing is the action of sending print jobs from the print queue to the printer.

Which of the following describes a print server's role?

By establishing a network connection with the server, computers may interact with nearby printers. The print server guards printers from overloads. It manages the allocation of ’s due to devices and queues them in order to maintain orderly operation and avoid overloading printer hardware.

The message is produced using the print() method to a standard output device, such the screen. The message can be a phrase or any other object, and the object will be converted to a string before it is presented on the screen.

To know more about Print server's, refer:

brainly.com/question/29738751

#SPJ4

what zone configuration file contains a ptr record used to identify the loopback adapter?

Answers

/var/named/named.local zone configuration file contains a ptr record used to identify the loopback adapter.

What is  the loopback adapter?

When network access is unavailable or you wish to separate your testing network from your primary network, you can utilize the loopback adapter, a dummy network card, as a testing tool for virtual network settings.

What is the use of a loopback adapter?

If you want to connect the computer to a network after the installation, you will need a loopback adapter if you are installing on a non-networked machine. A local IP address is given to your computer when you install a loopback adapter, according to the loopback adapter.

                          If you want to connect the computer to a network after the installation, you will need a loopback adapter if you are installing on a non-networked machine. A local IP address is given to your computer when you install a loopback adapter, according to the loopback adapter.

Learn more about the loopback adapter

brainly.com/question/4464564

#SPJ4

Can someone explain this question & answer to me?

var list = [11, 35, 6, 0];
var sum = 0;

for (var i = 0; i < list.length; i++) {
sum = sum + list[i];
}
sum = sum/list.length;
console.log(sum);

Answers

The code iterates through the list of numbers and adds them up.
The sum is then divided by the length of the list to get a percentage.
The code will iterate through the list of numbers and add them up.
The sum variable is then divided by the number of items in the list to determine the average value.

Joe, a user, wants his desktop RAID configured to allow the fastest speed and the most storage capacity. His desktop has three hard drives. Which of the following RAID types should a technician configure to achieve this?
A. 0
B. 1
C. 5
D. 10

Answers

For Joe, the technician has to set up RAID 0. By dividing data into many copies, RAID 0, also known as the striped volume or stripe set, is set up to provide the highest performance and greatest storage space.

How does a RAID function?

Data is duplicated across two drives in the array using RAID 1 (mirrored disks), which offers complete redundancy. The identical data is always stored on both drives at the same time. As long as one disk remains, no data is lost.

Why could someone utilize RAID?

Redundant Array of Independent Disks, or RAID, is a technology that combines many hard disks to increase performance. RAID configuration might affect how quickly your computer operates.

To know more about RAID visit:

https://brainly.com/question/14669307

#SPJ4

Write a method sameDashes that takes two Strings as parameters and that returns whether or not they have dashes in the same places (returning true if they do and returning false otherwise). For example, below are four pairs of Strings of equal length that have the same pattern of dashes. Notice that the last pair has no dashes at all.
string 1: "hi--there-you." "-15-389" "criminal-plan" "abc"
string 2: "12--(134)-7539" "-xy-zzy" "(206)555-1384" "9.8"
To be considered a match, the Strings must have exactly the same number of dashes in exactly the same positions. The Strings might be of different length. For example, the following calls should each return true:
sameDashes("1st-has-more characters", "2nd-has-less")
sameDashes("1st-has-less", "2nd-has-more characters")
because the Strings each have two dashes and they are in the same positions. But the following calls should each return falsebecause the longer string has a third dash where the shorter string does not:
sameDashes("1st-has-more-characters", "2nd-has-less")
sameDashes("1st-has-less", "2nd-has-more-characters")
Method problem: For this problem, you are supposed to write a Java method as described. You should notwrite a complete Java class; just write the method(s) described in the problem statement.

Answers

In Java that compares two strings for dashes. The test only returns true if each string has the same amount of dashes in the same position in the strings.

What is java? and how to write method described in problem statement?

Java is a programming language and computing platform first released by Sun Microsystems in 1995. It has evolved from humble beginnings to power a large share of today’s digital world, by providing the reliable platform upon which many services and applications are built. New, innovative products and digital services designed for the future continue to rely on Java, as well.Java is fast, secure, and reliable. Developers use Java to construct applications in laptops, data center's, game consoles, scientific supercomputers, cell phones, and other devices.

I have to write a program in Java that compares two strings for dashes. The test only returns true if each string has the same amount of dashes in the same position in the strings.

Comparing the following two strings

String string1 = "two-twenty-nine"

String string2 = "ten-forty-five and I'm hungry."

with the above criteria would return true. It doesn't matter whether one string is longer than the other.

Any assistance would be appreciated!

I have tried:

- converting the strings to char arrays and then comparing the indexes

- Using String. index Of() for each string, and then creating a variable int new Start = String. index Of() with the index of the previous dash as the new starting point to look from

public static void sameDashes(String string1, String string2) {

   int count = 0;

   char index1 = ' ';

   char index2 = ' ';

   char dash = '-';

   char[] string1Array = string1.toCharArray();

   char[] string2Array = string2.toCharArray();

   while (count < string1Array.length && count < string2Array.length) {

       if (string1Array[index1] == dash && string2Array[index2] == dash) {

           System. out. print ln("true");

To learn more about Java refers to ;

https://brainly.com/question/26789430

#SPJ4

Using what you know about variables and re-assignment you should be able to trace this code and keep track of the values of a, b, and c as they change. You should also have a sense of any possible errors that could occur. Trace the code, and choose the option that correctly shows what will be displayed

Answers

According to the question, option a: 10 b: 17 c: 27 accurately depicts what would be revealed.

Which 4 types of coding are there?

It's usual to find languages that are chosen to write in an extremely important, functional, straightforward, or object-oriented manner. These coding dialect theories and models are available for programmers to select from in order for them to meet their demands for a given project.

Is coding difficult?

It is common knowledge that programming is one of the most difficult things to master. Given how different coding is from long - established teaching techniques, which would include higher education degrees in computer science.

To know more about Code visit :

https://brainly.com/question/8535682

#SPJ4

The Complete Question :

Using what you know about variables and re-assignment you should be able to trace this code and keep track of the values of a, b, and c as they change. You should also have a sense of any possible errors that could occur.

Trace the code, and choose the option that correctly shows what will be displayed.

1 var a = 3;

2 var b = 7;

3 var c = 10;

4 a = a + b;

5 b = a + b;

6 c = a + b;

7 console.log("a:"+a+" b:"+b+" c:"+c);

The statement int[ ] list = {5, 10, 15, 20};
O initializes list to have 5 int values
O initializes list to have 20 int values
O initializes list to have 4 int values
O declares list but does not initialize it
O causes a syntax error because it does not include "new int[4]" prior to the list of values

Answers

Option 3 is correct ( initializes list to have 4 int values) The syntax here implies direct setup of integer array named list with 4 initial values. there is no need to mention size for this kind of syntax.

Describe an array.

An array is a group of related data items kept in close proximity to each other in ram. The sole way to retrieve each data element direct is using its index number, making it the most basic data structure.

How do arrays function?

A linear data structure called an array contains elements of the same data type in contiguous and nearby memory regions. Arrays operate using an index with values ranging from zero to (n-1), where n is the array's size.

To know more about array visit :

https://brainly.com/question/15048840

#SPJ4

Other Questions
g Many impoverished nations struggle with diseases like malaria. How would a reduction in or elimination of malaria contribute to long-run economic growth Beeline Inc. offers entrepreneurs the opportunity to operate a franchise under the Beeline trade name as a dealer that sells and leases Beeline equipment. To potential franchisees, Beeline must provide Group of answer choices none of the choices. projected earnings figures. no earnings figures. hypothetical earnings figures. Ricardo's town recently voted on a new education funding package. Of the voters who voted for the bill, 20% voted for it. What fraction of the voters voted in favor of the measure?Enter the fraction in simplest form. Find the number of the degree of this polynomial.(please) The sum of two numbers is 50. the greater number is four less than five times the lesser number. Find the numbers How an author creates an intended effect using diction? The design for the new electric car had been approved by the board and production was underway, but the VP of Manufacturing was nervous about the rate of defective parts from suppliers. See the screenshot below. What function can be used to summarize the number of defects by subassembly name by month in the cells G3 LB? Assume the three columns of the dataset have been named Subassembly Name, Month and Defects. D G 1 jan Feb March April May une Subably Name Master Cylinder Master Cylinder Wheb Master Cylinder LED Army LED bly Month May Feb March an une March Defects 22 14 90 45 23 87 Master Cylinder Wheel Hub LED Assembly Air Cockpit Monitor Locking June Cockpit Monitor May 38 29 33 71 14 Masterinde March une Marc Fe ht 1 Cockpit Lic Maler de 61 45 23 5 Mars 40 12 TE GESUBTOTAL(9 Defects Month GS2 Subassembly Name SF3) H lan Feb March April mer June blom 2 Master Minder Master Cylinder Wheel Hub Master Cylinder 6 LED Asembly LED Assembly Nrba 9 Airbag 10 Cockpit Monitor 11 Airbus 12 Master Cylinder Month May Feb March Jan June March Defects 22 14 90 45 23 87 SS 38 29 33 71 Merder Wheel LED Asembly Art Cockpit Monitor Locking June April May June March June March Feb Feb June March Feb Eeb und April 15 Airbag It Cockpit Monitor 1+ locking System T Master Cylinder 19 Locking System 20 Lacking System 1 LED bly Locking System Cockpit Monitor Locking System Arbag Wheel HD GH 45 23 81 40 125 43 76 March 58 41 =SUBTOTAL(9, Defects, Month G$2 Subassembly Name SF3) -SUMIF(Month=G$2 Subassembly Name=SF3 Defects) =SUMIFS(Defects Month G$2 Subassembly_Name SF3) =AUTOSUM (Defects Month=G$2 Subassembly Name=$F3) Ross walked 7 miles in 2 hours. What is his unit rate of miles per hour? Students in a statistics class took their first test. The following are the scores they earned. Create a frequency distribution and histogram for the data using a lower class limit of 49.5 and a class width of 10. Describe the shape of the distribution Search Search Select an answer variable(s), the correct graph to make is a a) Since data were collected for? Select answer b) For this one the class width is given to be the following: class width Complete the frequency relative frequency table using the given class width. Round relative frequencies to 3 decimal places. Frequency Relative Frequency Classes 495 c) Which of the following is the correct histogram for the given data? Frey 495 595 695 795 Histogram for Test I Score 895 995 Q Search Search 5 Spring ZOO) Final El Pl E U M QUI PUUVITU 495 595 69.5 79.5 Histogram for Test / Score 89.5 99.5 Q a Frequency 49.5 595 695 795895995 Histogram for Test / Score Frequency 595 603 795 Histogram for Tere d) What shape is the histogram above? Select an ant Q Search Search LE Number of days a taxpayer is allowed to extend the time to petition the tax court? Is 1g equal to 1 mol? Which of the following is an advantage of joint ventures as a mode of entry into foreign markets?A) The foreign firm does not have to bear any development costs and risks associated with opening a foreign market.B) The foreign firm can protect its technology from being appropriated by its local partner.C) It gives a firm tight control over subsidiaries, which enables it to realize experience curve or location economies.D) There is less cause for friction and conflict between the foreign and local partners.E) The foreign firm benefits from a local partner's knowledge of the host country. There i a bag filled with 4 blue, 3 red and 5 green marble. A marble i taken at random from the bag, the colour i noted and then it i replaced. Another marble i taken at random. What i the probability of getting 2 blue? Is 5 years a long-term investment? if the slope of a line is 3 ,then the slope of a parallel line is 4 4 3true or false? A computer program outputs whether a capital city in Europe is north or south of another capital city in Europe. It only needs to know the latitude of the two cities the other detail is unnecessary. This is an example of abstraction; including the necessary detail and not including the unnecessary detail. Consider how you would fill in this graphic organizer for the essay The Teen Brain: Still Under Construction. What is the articles central idea? (Write an answer only if you have read the article please!) Common LitChameleonDavid leporaHow does paragraph 4 develop the author's point of view?A. It shows that the author is unsure about buying the shoes because they are expensive.B. It shows that the author is unsure about buying the shoes because none of his friends are there.C. It shows that the author is unsure about buying the shoes because he is not sure he wants to fit in.D. It shows that the author is unsure about buying the shoes because of a bad experience at the store. We take a sample of 80 observations from a large population with a mean of 1460 and a standard deviation of 270. The probability that the sample mean is between 1300 and 1400 is: two students are sitting next to each other on chairs with wheels. They push each other and separate in opposite directions. The student with a mass of 48 kg moves to the left with a velocity of 1.8 m/s. How fast and in what direction does the other student with a 59-kg mass move?