What is one way polymorphism is implemented?


created a new class using an existing class

changing a variable from a string to a float

hiding class variables from the programs using instances of the class

repurposing an operation

Answers

Answer 1

Answer:

repurposing an operation

Explanation:

Got it right


Related Questions

Taylor and Rory are hosting a party. They sent out invitations, and each one collected responses into dictionaries, with names of their friends and how many guests each friend is bringing. Each dictionary is a partial list, but Rory's list has more current information about the number of guests. Fill in the blanks to combine both dictionaries into one, with each friend listed only once, and the number of guests from Rory's dictionary taking precedence, if a name is included in both dictionaries. Then print the resulting dictionary.

Answers

Answer:

Following are the code to this question:

def combine_guest(guest1, guest2):#defining a method combine_guest that accepts two dictionary

   guest2.update (guest1)#use dictionary guest2 that use update method to update guest2 dictionary

   return guest2#return guest2 dictionary values

Rory_guest= { "Ada":2, "Ben":3, "Dav":1, "Jo":3, "Charry":2, "Terry":1, "bob":4}#defining a dictionary and add value

Taylor_guest = { "Dav":4, "Nan":1, "bobert":2, "Ada":1, "Samantha":3, "Chr":5}#defining a dictionary and add value

print(combine_guest(Rory_guest,Taylor_guest))#calling the combine_guest method

Output:

{'Nan': 1, 'Samantha': 3, 'Ada': 2, 'bob': 4, 'Terry': 1, 'Jo': 3, 'Ben': 3, 'Dav': 1, 'Charry': 2, 'bobert': 2, 'Chr': 5}

Explanation:

In the code a method, "combine_guest" is defined, that accepts two dictionaries "guest1, guest2" inside the method, in which the "guest2" dictionary uses the update method to combine the value of the guest1 dictionary and use a return keyword to return guest2 values.

In the next step, two dictionaries are declared, that holds some values and use a print method to call the "combine_guest" method and prints its return values.  

If a variable uses more than one byte of memory, for pointer purposes its address is: Group of answer choices the address of the last byte of storage the average of the addresses used to store the variable the address of the first byte of storage general delivery None of these

Answers

Answer:

the address of the first byte of storage.

Explanation:

If a variable uses more than one byte of memory, for pointer purposes its address is the address of the first byte of storage.

A buffer in computer technology can be defined as a temporary area set aside for data storage. Buffers reside in the random access memory (RAM). In the event that, a system process or program places more data (much more than what was originally or initially intended to be allocated for data storage) in a buffer, the extra data overflows. Consequently, this would result in having some of the data to flow into other buffers and thus, causing the data to be overwritten or corruption of the data being held in that buffer.

For instance, we can liken a buffer-overflow to pouring water (data) into a container (program memory), once it is filled the water begins to overflow as the container has reached its maximum amount.

helppp pleassseeeee thank youuuu​

Answers

Answer:

C

Explanation:

Because You don't need indented letters

If an exception is thrown, it is passed to a block of code that can ____, which means to receive it in a block that can handle the problem.

Answers

Answer:

Catch the exception.

Explanation:

In Computer programming, an exception can be defined as an unprecedented error or event that occurs unexpectedly while a computer software application or program is running. Thus, when this exception occurs while a software program is running, it would affect its flow.

However, if the software program is able to handle and process unprecedented error or event that occured unexpectedly, it would continue to run but if it cannot handle it, the software program will force quit.

In Java programming language, exception class such as IOException, UserException, TimeoutException, and exception subclass such as CharacterCodingException, FileNotFoundException etc may be thrown when a software program encounters an unexpected error or event.

A software program that is properly coded or well-written is able to check for exceptions and appropriately handle the exceptions (unexpected errors) so as to prevent the software program from crashing or forced to quit.

This ultimately implies that, when an exception is thrown using a try clause or throw statement as it occurs, it is caught by a block of code in the software program.

Hence, if an exception is thrown, it is passed to a block of code that can catch the exception, which means to receive it in a block that can handle the problem.

Three PCs are on an Ethernet LAN, connected by a hub. Describe how the Ethernet protocol deals with collisions in this situation. How would the situation change if the hub were replaced by a switch?

Answers

Answer:

All the ports in a hub are in the same collision domain and a hub sends frames from one host to all other hosts in the network. This makes it prone to collision and poor network throughput. Just like a network switch, it uses the CSMA/CD protocol to detect collision in its network.

A network switch reduces its collision domain to just a port and sends frames from one host to another using its mac table as a route. This makes the network very efficient with high throughput. It also uses the CSMA/CD protocol to detect collision

Explanation:

Switches and hubs are used in networking to connect computer devices in a network. A hub is an obsolete device networking that broadcast a frame to all other ports or host in the network except for the send host port. This increases the rate of collision as all the ports in a hub share the same collision domain. A switch is an efficient frame switching device in a network, which uses its MAC table to decide and find a destination host.

CSMA/CD is a collision detection protocol used in a network to detect and prevent a collision. With this protocol, a host is able to listen, wait, send and resend frames to prevent a collision.

Consider the following code segment which makes use of the list deck and the positive integer i: Which of the following could be displayed when this segment of code is executed, assuming that the block will sort the parameter list in alphabetical order from A to Z, and the user responds to each input? Steve Andrew Kevin Alex Joe Matt Sally Heather Barbie Tim Tim Tim

Answers

Answer: A) Steve Andrew Kevin

B) Alex Joe Matt C) Sally Heather Barbie D) Tim Tim Tim

Explanation:

In this exercise we have to use the knowledge of computational language in python to write the following code:

The code can be found in the attached image.

That way, to find it more easily we have the code like:

#Create a list of strings (names).

students = ['Steve" ,"Andrew ","Kevin", "Alex", "Joe ","Matt" , "Sally" ,"Heather ","Barbie" ,"Tim", "Tim", "Tim"]

student_name = "Lupe"

# Add student name to front of the list.

students.insert(0,student_name)

#Show me the new list.

print(students)

See more about python at brainly.com/question/26104476

Once you start designing the processing logic for each function of your software, you might end up throwing out your logical data model design and completely redesigning it.

a
False

b
True

Answers

Answer:

B. True.

Explanation:

Software development life cycle (SDLC) can be defined as a strategic process or methodology that defines the key steps or stages for creating and implementing high quality software applications.

An incremental model refers to the process in which the requirements or criteria of the software development is divided into many standalone modules until the program is completed.

Hence, an incremental method typically involves developing a system through repeated cycles and smaller portions at a time, enhancing and evolving the system over time.

A database schema is a structure which is typically used to represent the logical design of the database and as such represents how data are stored or organized and the relationships existing in a database management system. There are two (2) main categories of a database schema; physical database schema and logical database schema.

Hence, once you start designing the processing logic for each function of your software, you might end up throwing out your logical data model design and completely redesigning it because each function would use a specific processing logic respectively.

Which of the following statements shows the relationship between cellular and wireless technology?
Brainliest to the right answer

Both use radio signals to communicate across distances.

Both were built using telephone infrastructure.

The two can be used together
to help people better communicate.

The two can be used together to drive down cost of service.

Answers

Answer:

The two can be used to help people better communicate.

Explanation:

Wireless technology doesn't use only radio signals, it uses Bluetooth, infrared, satellite signals and others.

They are both expensive.

Not that every wireless technology was built using telephone, like radio waves

Finish the code to search for a 7 in the array.
from array import *
myArr = array('f',[3, 5, 7.3, 10])
location = myArr.
(7)

Answers

Answer:

The complete code is as follows:

from array import *

myArr = array('f',[3, 5, 7,3, 10])

location = myArr.index(7)

print(str("7")+" is at position "+str(location+1))

Explanation:

I made corrections to the third line of the code and I added a line

This line gets the index of 7 from the array myArr using the index keyword

location = myArr.index(7)

This line prints the position of the 7 in the array

print(str("7")+" is at position "+str(location+1))

Assume that x and y are boolean variables and have been properly initialized.(x && y) || !(x && y) The result of evaluating the expression above is best described as (A) always true (B) always false (C) true only when x is true and y is true (D) true only when x and y have the same value (E) true only when x and y have different values

Answers

Answer:

(A) Always true

Explanation:

Given

Boolean variables x and y

Required

What is (x && y) || !(x && y)

Irrespective of what x or y is, the x && y is always true

Take for instance:

x = true;

y = true;

x&&y will also be true because the values of x and y were not altered

And this is true for whatever boolean value x or y assume

Having said that:

x&&y = true

So, the expression is analysed as follows:

(x && y) || !(x && y)

Substitute true for x&&y

(true) || !(true)

!(true) = false

So, the expression becomes:

true || false

|| represents the OR operator; and it returns true if at least one of the conditions is true.

By this:

true || false = true

Option (A) Always true answers the question.

A data structure to store trees with an arbitrary number of children at each node is: public class TreeNode / Integer data, TreeNode firstChild; TreeNode nextSibling / Write a recursive Java method to return the leaf node with minimum value given the root of the tree. All elements are unique and if there are no leaf nodes you should return null. Your method signature should be: _______

Answers

Answer:

TreeNode minimum(TreeNode root) {

   if (root != null) {

       if (firstChild == null && nextSibling == null) {

           return root;

       } else {

           TreeNode begin = minimum(root.firstChild);

           TreeNode last = minimum(root.nextSibling);

           if (begin == false && (last == false || begin.data < last.data)) {

               return begin;

           } else {

               return last;

           }

   } else {

       return null;

   }

}

Explanation:

The Java program defines a recursive method called minimum that calls itself twice with the first and last leaf of the treenode as the respective arguments. and returns the minimum value of the treenode if the root argument is not undefined.

which driver must be running and configured to enable a PC to communicate with a CompactLogix PLC on an Ethernet network

Answers

Answer:

EtherNet/Ip

Explanation:

This IP called the EtherNet/IP is an industrial communication network protocol which adapts the CIP fully known as Common Industrial Protocol to standard Ethernet. This is one of the leading industrial protocols in some areas of the world like the US. It is used in industries such as factory, hybrid.

The mode used by this driver is the

Explicitt Messaging of the EtherNet/IP protocol.

When writing code, how can printing be useful?

Answers

Answer:

See Explanation

Explanation:

Printing while writing code can be useful in several ways.

One of which is to determine the progress of your code. Many a times when you write a code and some parts of your codes are not working as expected, you can use the print statement to track where the program stopped working properly.

Take for instance, you write a program of 50 lines of code and you suspect that the program stops working at line 30, you can use the print statement to track this program.

Please note that: the statement to be printed is not specific but you should make use of something unique that you can easily spot.

E.g

print("It worked up till this point")

A feedback loop is:
A. a hyperlink to another part of a story.
B. an endless cycle of creation and response.
C. the excitement people feel about networking.
D. the best method for creating a story.

Answers

Answer:

c

Explanation:

A feedback loop is the excitement people feel about networking

What is feedback loop?

A feedback loop can be used in learning process, where the output or results is used as again as data for another process.

Therefore, A feedback loop is the excitement people feel about networking

Lear more on feedback loop below

https://brainly.com/question/13809355

#SPJ9

+
Which of the following telecommunications careers requires the completion of a master's degree?

line installer

network risk analyst

computer administrator

network administrator

Answers

Answer:

Network administrator

Answer:

Network Risk Analyst

Explanation:

Edg2021

Its in the AV Tech Notes

The following program is suppose to use the sin() function in the math library and write out an input's absolute value over an interval. So for example if sine(0.6) is 0.564 then its absolute value is the same (0.564). But if sine(2.4) is -0.675 then its absolute value is 0.675. #include #include /* has sin(), abs(), and fabs() */ int main(void) { double interval; int i; for(i = 0; i <30; i++) { interval = i/10.0; printf("sin( %lf ) = %lf \t", interval, abs(sin(interval))); } printf("\n+++++++\n"); return 0; }

Answers

Answer:

#include <stdio.h>

#include <math.h> /* has sin(), abs(), and fabs() */

int main(void) {

   double interval;

   int i;

   for(i = 0; i <30; i++) {

       interval = i/10.0;

       printf("sin( %.1lf ) = %.3lf \t", interval, abs(sin(interval)));

   }

   printf("\n+++++++\n");

   return 0;

}

Explanation:

The C source code defines a void main program that outputs the absolute value of the sine() function of numbers 0.1 to 3.0.

The program is an illustration of loops.

Loops are used to perform repetitive and iterative operations.

The program statements in C language that completes the program are as follows:

interval = i/10.0;

printf("sin( %.1lf ) = %.3lf \t", interval, abs(sin(interval)));

The flow of the above statements is as follows

The first line determines the intervalThe second line prints the required output

Read more about similar programs at:

https://brainly.com/question/14575844

Your company is designing a multi-tenant application that will use elastic pools and Azure SQL databases. The application will be used by 30 customers.
You need to design a storage solution for the application. The solution must meet the following requirements:
✑ Operational costs must be minimized.
✑ All customers must have their own database.
✑ The customer databases will be in one of the following three Azure regions: East US, North Europe, or South Africa North.
What is the minimum number of elastic pools and Azure SQL Database servers required?

Answers

Answer:

The minimum number of elastic pools and Azure SQL Database servers required is:

three elastic pools and one Azure SQL Database server.

Explanation:

The above will ensure that the Azure regions of East US, North Europe, or South Africa North are grouped into their three elastic pools.  Since cost minimization must be achieved, at the same time, one Azure SQL Database server will be enough to manage the 30 databases required, with one for each customer.  Creating more than one Database server will increase the operational costs.

Define persuasion. What would you like to persuade your parents to do or think? Explain which of the three goals of persuasive speech you would need to accomplish to achieve this.

Answers

Answer:

Persuasive communication is a form of interpersonal communication that aims to influence the communication partner. The primary goal of persuasive communication is to achieve changes in attitudes, but not understanding or exchanging information. Thus, basically, persuasion seeks to convince the receiver of the message of the idea emitted by the sender of the same.

In my particular case, I would like to persuade my parents to let me drive my father's car, which because it is a new car and of a quality model is restricted to me. To do this, I should use the argumentative and probative method, showing his false mistrust of me and proving that I can drive the car without problems.

Answer:

Answers will vary. Persuasion: – The act of convincing or influencing someone to act or think in a particular way. Answers will vary regarding what students would like to persuade their parent to do or think. An action or some change to beliefs, attitudes, values should be discussed. One of the three goals should be listed.

Explanation:

edge21

In this exercise, first run the code as it is given to see the intended output. Then trace through each of the 3 variables to see what is actually going on in memory. Show the values of str1, str2, and str3 and the output after each line of code on a piece of paper.

Answers

Answer:

The memory with variable names str1, str2, and str3 all have equal and the same value after the first if-statement.

Explanation:

The str1 was first assigned a null value while the str2 and str3 were assigned the string value "Karen" with the String class and directly respectively. On the first if-statement, the condition checks if the str1 is null and assigns the value of the variable str2 to str1, then the other conditional statement compares the values of all the string variables.

Consider the code block below. What is the value of amount when this method is called twice, the first time using cookieJar(7) and then using cookieJar(22)?

public static int cookieJar(int addCookies) {

int amount = 0;
amount += addCookies;
return amount;

}
A. 7
B. 15
C. 22
D. 29
E. An error occurs

Answers

Answer:

C. 22

Explanation:

Given that the argument is being passed by value, there is no memory to consider.  So cookieJar(7) returns 7 and cookieJar(22) returns 22.

If the argument parameter was passed by reference or pointer, then perhaps the value from cookieJar(7) would be considered with cookieJar(22).

Note, this code block really isn't doing anything other than returning the value passed into it.  The "amount" variable is immediately set to 0, and then the value passed in is added to amount (which is 0), and returns.  The following code could replace this function:

public static int cookieJar(int addCookies){

return addCookies;

}

The above code will return an equivalent output to the given code.

Notice, the function is not dependent on any previous call, so the value for each is unique to the call itself, i.e., cookieJar(22) returns 22 and cookieJar(7) returns 7.

So, C. 22 would be correct.

What technique is used when setup times at a workstation are sequence dependent?

Answers

Answer:

johnsons rule minimizes total idle time for both machines or work centers. What technique is used when setup times at a workstation are sequence dependent? determine the total time of each job sequence permutation considering the setup time and choose the best (lowest) time.

Explanation:

please mark me as brainliest thank you

PLZ HELP What will be the output? class num: def init (self.a): self. number = a mul* __(self. b) return self. number + b. number numA = num(5) nunB = num 10 product = numA * numB printiproduct) an error statement 0 50 ( 15​

Answers

Answer:

15

Explanation:

got it right on edge

The output for the program will be 50 with error statement is 0.50.

What is program?

Program is defined as a collection of guidelines that a computer follows to carry out a certain task. Low-level access to system memory is made possible by the procedural and general-purpose nature of the C programming language. To create an executable that a computer can run, a C program needs to be run through a C compiler. A computer programmer can write lines of code that the computer can understand by utilizing a programming language to develop a program.

A & B and the variable a & b are distinct. Thus, the #main program is the only program that functions.

As a result, A = 5 and B = 10, and the answer is

A x B, which equals 5 x 10 = 50.

Thus, the output for the program will be 50 with error statement is 0.50.

To learn more about program, refer to the link below:
https://brainly.com/question/11023419

#SPJ2

Which of the following falls under the role of a web designer?
I. Creating the look and feel of a website
II. Writing the HTML and CSS that bring a site to life
III. Figuring out the best way to display information
IV. Thinking about the user experience
V. Building a website based on a given design
or
all of the above

Answers

Answer:

all of the above is the answer

Which of these is a good example of a user persona?

a
"Clippy, the Microsoft Word mascot"

b
"Teenage power-gamer who plays competitively 10+ hours a day"

c
"The U.S. government"

d
"Mom"

Answers

Answer:

The answer is "Option a".

Explanation:

The consumer is a sub-personality based on the real customer (or perfect). The people were created to improve marketing activities, through speaking to consumers and dividing up the different demographic and geographic data. In the creation of the user persona, it uses Clippy as the symbol for Microsoft Word.

Answer:

The answer is B

Explanation:

Write and test a program that accepts the user’s name (as text) and age (as a number) as input.

The program should output a sentence containing the user’s name and age.

Answers

name = input("Enter your name: ")

age = int(input("Enter your age: "))

print("Your name is",name,"and you are",age,"year(s) old.")

I wrote my code in python 3.8. I hope this helps.

Program description:

Defining header file.Defining the main method.In the next step,  the character array as "name" and an integer variable "age" is declared that uses the input method to the input value.After input value, a print method is declared that prints value with the message.

Program:

#include <stdio.h>//header file

int main()//defining main method

{

   char name[50];//defining character array as name

   int age;//defining integer variable

   printf("Enter name: ");//print message

   scanf("%s",name);//input name

   printf("Enter age: ");//print message

   scanf("%d",&age);//input age

   printf("Hi.. \%s",name); //print value with message

   printf(" your age is %d.",age);//print value with message

   return 0;

}

Output:

Please find the attached file.

Learn more:

brainly.com/question/13160158

in spoofing internet attack, the attackers computer assumes false internet address in order to gain access to a network (true or false

Answers

Answer:

True.

Explanation:

Cyber security can be defined as preventive practice of protecting computers, software programs, electronic devices, networks, servers and data from potential theft, attack, damage, or unauthorized access by using a body of technology, frameworks, processes and network engineers.

Some examples of cyber attacks are phishing, zero-day exploits, denial of service, man in the middle, cryptojacking, malware, SQL injection, spoofing etc.

Spoofing can be defined as a type of cyber attack which typically involves the deceptive creation of packets from an unknown or false source (IP address), as though it is from a known and trusted source. Thus, spoofing is mainly used for the impersonation of computer systems on a network.

Hence, in spoofing internet attack, the attacker's computer assumes false internet address in order to gain access to a network.

How do you distinguish between misrepresentation and embellishment of one’s professional accomplishments on a résumé? Provide an example of an embellishment that would not be considered misrepresentation.

Answers

How do you distinguish, well misrepresentation and embellishment of one professional accomplishments

what are the use of computer at office?​

Answers

Answer:

playing games XD

Explanation:

hahahahahahahahhaha

Answer:

Some of the many uses of computers in office work are writing letters, sending emails, scheduling meetings and collaborating with co-workers and clients. This has extended to mobile devices, which professionals now use to read and respond to email, access business files, update social media and more.

Explanation:

What are 5 good movies like The Breakfast Club or 8 Mile?

Answers

Answer:

The Notebook, Beauty and the Beast, Step Brother, The Breakfast Club and The Little Mermaid

Explanation:

Answer:

Avatarlife of piThe Dark knightpirates of Caribbeanbeauty and beast

You are running your warehouse using Autonomous Data Warehouse (ADW) service and you noticed that a newly configured batch job is always running in serial even through nothing else is running in the database. All your jobs are configured to run with parallelism enabled.What could be the reason for this batch job to run in serial?A. The batch job depends on only one table and parallelism cannot be enabled on single-table queries.B. The parallelism of batch job depends on the number of ADW databases involved in the queryC. The new batch job is connected to LOW consumer group.D. The new batch job runs on database tables that are not enable for parallel execution.E. Parallelism on the database is controlled by the application, not the database.

Answers

Answer:

C. The new batch job is connected to the LOW consumer group.

Explanation:

Remember, one of the main characteristics of the LOW consumer group database service is that queries would run serially.

Since in this case, we are told that the newly configured batch job is always running in serial, it most likely would be because the new batch job is connected to the LOW consumer group; as queries are designed to always run serially.

Other Questions
What are the methods of naming hydrocarbons? which function best describes the purpose of scenes in a drama?a. to note when the location changesb. to mark development of the plotc.to change the props on the staged. to introduce the new characters(the answer isnt d) Write the equation in exponential form.Log3 1/9=-2O 3=9-2O 1/9=3^-2O 9=3^2O 3=3^1 Make x the subject of y = 4x + 1You may use the flowchart to help you if you wish.Xy Simplify: 5/4(4x+3) - 3/4(x-2) Jordan is buying plastic plates for a party.The plates usually cost $2.40 per 10 plates,but they are on sale for 30% off usual price.If jordan buys 50 plates,how much will they cost What types of lines create alternate interior angles?a) Parallel lines cut by a transversalb) Three parallel linesc) Any two intersecting linesd) Perpendicular linesBCD 1.The number of girls is/are large.2.Kathmandu is located____ bagmati district . (preposition)3.Where is the stress when we say thirsty?p.s can someone pls help me with eng i hav my orals tomorrow T_Tcomment>> DONT ANSWER IF YOUR NOT GOING TO GIVE ME AN ACTUAL ANSWER!! Translate the following sentences Into French using expressions with avoir. Recordthe sentences.15. They are homesick.16. I intend to travel to France in the summer.17. He needs furniture. fill in the blank correct relative pronoun,please what should i draw for my art class? Mai and Tyler work on the equation 2/5 b + 1 = -11 together. Mais solution is b= -25 and Tylers is b = -28 Here is their work. Do you agree with those solutions? Mai: Tyler:2/5 b + 1 = -11 2/5 b + 1 = -112/5 b = -10 2b + 1 = -55b = -10 5/2 2b = -56b = - 25 b = -28 If the number of candy canes is proportional to the price and 12 candy canes cost $3.00, how much would it cost for 20 candy canes? Definition: This is a large elevated area of mostly level land.OSTerm: Type term here When nucleotides link together in a series spiraling clockwise they form a 1.List any five importance of environment health. Describe any two ofthem briefly PLEASE HELP!!! I WILL MARK BRAINLIEST!! You go out to eat at the Outback Steakhouse. Your meal, drink and desert cost $38.56. You aregoing to leave the waitress at 15% tip. How much money will you leave the waiter and what isthe total cost of the meal?I Which research question would be most effective in adressing the promt Steam Workshop Downloader