Which of the following statements correctly instantiate the Rectangle object myRectangle? (i) myRectangle Rectangle = new Rectangle(10, 12); (ii) class Rectangle myRectangle = new Rectangle(10, 12); (iii) Rectangle myRectangle = new Rectangle(10, 12);

Answers

Answer 1

Answer:

The answer is "option iii"  .

Explanation:

In the given question it is defined that a class "Rectangle" is defined in the class a parameter constructor is created that accepts two parameters. In this question, we create an instance of the class. In object creation first, we define class name then object name and use new keyword in the Instance of class and pass parameters.

In option i), An object name is used first and then class name. It is not correct. In option ii), In instance creation of the class, we do not use class keyword that's why it is wrong.


Related Questions

To increase Internet transmission speeds and decrease latency (delays), intermediate Internet servers are placed between users and the cloud servers. Portions of the cloud service are downloaded onto the intermediate servers. This is known as ___ computing.

Answers

Answer:

Edge computing

Explanation:

Edge computing -

It is a pattern by which computation and data storage are merged , where they are required which helps to save bandwidth and improve the response times, is referred to as edge computing.

It basically helps to increase the speed of internet transmission and reduces any latency.

This type of computing is used in the 5G wireless networking to increase the speed.

Hence, from the question,

The correct term for the given information of the question, is Edge computing.

In this chapter, we use the metaphor of a blueprint and houses that are createdfrom the blueprint to describe classes and objects. In this metaphor, are classes theblueprint or the houses?

Answers

Answer:

The correct answer to the following question will be Classes.

Explanation:

Class:

Class and objects are the two basic concepts of Object-oriented programming language (Oops). A prototype by which an object can be created.A Class is a collection of data members and member functions.A Class is a user-defined blueprint on an object.Declaration of a class includes: Class names, modifiers, Super class, interfaces and body

Even if you perform regular backups, what must be done to ensure that you are protected against data loss?

Answers

Answer:

Regularly test restoration procedures  is the correct answer.

Explanation:

The following answer is correct because if the user perform the regular test of the system and also perform the restoration procedures of the regular backup then, their data, information and the important files will be protected from loss, by the daily backup we can protect our data against data loss and it is one of a good way to protect the data.

To protect against data loss, keep multiple backups of files, store them in various locations such as flash drives and cloud storage, back up data promptly, and use backup software. Be proactive in planning for data recovery.

Even if you perform regular backups, to ensure that you are protected against data loss, it is important to follow these guidelines:

Keep multiple backups of each of your files.Store backups in different locations, such as a personal laptop, a flash drive, and cloud storage.Back up your data as soon as possible, and never rely on a single copy for too long.Use backup software instead of manual copying methods to avoid user error.Be proactive in considering how to recover data, with questions about data degradation and reliable restoration methods.

By implementing these strategies, you can ensure that your work remains safe even in case of hardware failure, accidental deletion, or other unforeseen problems.

Tracert uses the ___ value and _____ message to provide access times on each segment of the network.

Answers

Tracert uses the "TTL" field value and uses the "INTERNET CONTROL MESSAGE" to provide access times on each segment of the network.

Explanation:

TTL is known as "time to live" and these field values are increased to find the path taken to that destination address."Internet control message protocol" also known as ICMP request messages to the destination.Tracert is mainly used as a command-line tool to trace the internet protocol address's path that  the source takes it to the destination.The network consists of two routers and two sites of the system whereas one site is composed of several servers.

A wiki is best defined as:

A. a web site that typically acts as brokers for advertisers and web sites.
B. a smaller version of the banner that often look like an icon and usually provide a link to an advertiser's landing page.
C. a reverse chronological journaling site. a user-collaborated content site, typically text in nature.
D. a little billboard that spreads across the top or bottom of the web page.

Answers

Answer:

a reverse chronological journaling site. a user-collaborated content site, typically text in nature

Explanation:

It is the website that is based on knowledge. It is the text based site that is also called structure content.

The most common example of Wiki is Wikipedia.

During which development stage would someone consider which platforms an app will be used on and what data the app needs to function 20 points!!

Design
Analysis
Development
Deployment

Answers

Answer:

development because that is the stage where they figure out what platforms and functions the app will need

Answer:

Deployment

Explanation:

Deployment is a stage that make an app ready to use .

5. If a file does not exist and a program attempts to open it in append mode, what happens

Answers

Answer:

It create a new file in which writing of data begins.

Explanation:

A file can be open in the three mode:

-r (Read mode): open an existing file for the purpose of reading data from it.

-w (write mode): Create a new file for the purpose of writing data to it.

-a (append mode): open an existing file for the purpose of appending extra data to it but if the file does not exist, it create a new file and start writing data to it.

An additional factor in how an element is rendered is that properties are passed from a parent element to its children in a process known as ____.

Answers

Answer: Style inheritance

Explanation:

Style inheritance is used to design style sheets. It is a process in which properties are inherited by children from a parent element. For example you wish that all text on a page use same font color i.e. red. You can apply they following style for <body> tag like {body color:red;}. All the elements in the web page will inherit this font color. This is better to use than to create styles for each tag. Every heading and paragraph will be displayed in this font color until you define different color for particular element.

Keyword stuffing is considered to be a black hat technique for SEO and is highly suggested today by Google.

True
False

Answers

Answer:

False

Explanation:

Keyword stuffing is a practice to insert an unusual large number of tag in a website to increase the page ranking in search results. This is considered an unethical Search Engine Optimization (SEO).

Google consider Keyword stuffing as unethical and it doesn't help to boost the rank of a website. More advanced algorithms are being used to filter those of the meta tags which are irrelevant or excessively out of context in a website.

What permissions should you assign a group if you want the group to have the ability to read, add, delete, execute, and modify files, but not to be able to delete subfolders and their file contents, change permissions, or take ownership?

Answers

Answer:

Modify is the correct answer to the following question.

Explanation:

If any person or user wants to read, delete, modify and execute the files then they have required the Modify permission. In other words, Modify permission provides the user to modify and delete the following files but they unable to delete subfolders because of the following permission.  

If they want then they have to change the permission by click right button from the mouse on the file or the folders which they want to change and then click on the properties from there they can change the permission.

What individual is responsible for collecting all available facts concerning a potential Uniform Code of Military Justice offense?

Answers

Answer:

The correct answer to the following question will be a Preliminary Inquiry Officer (PIO).

Explanation:

Purpose of PIO are as follows:

Appoint those assistants who conduct a preliminary inquiry.Collects all the perseverance poofs and conduct an investigation on it.Investigation the claims in a format.Takes proper action on the claims.

and the most important responsibility of PIO it that, it will responsible for collecting and concerning potentially the fact of the Uniform Code of Military Justice Offence.

Mrs. Dunn shows her students a data range, which has been named "Goals,” covering cells A14 to A25. She tells her students that the data range needs to expand to include additional cells. The range should cover A14 to A45. She tells her students to record the steps needed to extend the range, as shown in the chart.

Answers

Answer:

In this case, Riko and hina made the correct steps.

Explanation:

Rin y Sakura made a wrong step because the range A14 to A25 already exist, and they have selected the option Define name, with this option we can make a new range with a new name.

Riko and Hina have selected the option name manager, with this option we can select the range A14 to A25 with the name "Goals", and to expand it to the new range A14 to A45.

Answer:

~A~

Explanation:

What would the proper field type be to allow users to enter multiple paragraphs (Choose 2 answers):A. Text Area (Rich)B. Text AreaC. Text Area (Long)D. Text Area (Super Long)E. TextF. Text (Encrypted)

Answers

Answer:

Option A and C are the correct answer for the above question.

Explanation:

In sales-force language, the Text Area (Long) and Text Area (Rich) is used to take the 131,072 characters in the form of separate lines. This can help to enter multiple paragraphs.

The question scenario also asked that what allows users to write multiple paragraphs, then the answer is Text Area (Long) and Text Area (Rich) as described above. Hence options A and C are the correct answer while the other is not because--

Option B states about 'Text Area', which is used to enter 255 character which is almost one paragraph only.Option D states about 'Text Area (Super Long)', which is not identified by the sales-force language. Option E states about 'Text', which is also not identified by the sales-force language.Option F states about 'Text Area (Encrypted)', which is used to store the written symbol and text in the encrypted form.

Which type of fiber-optic connector, containing one fiber-optic strand per connector, is connected by pushing the connector into a terminating device and can be removed by pulling the connector from the terminating device?

Answers

Answer:

The correct answer to the following question will be Lucent connector (LC).

Explanation:

Lucent Connector (LC): A fiber-optic connector that is used to join and connection between network devices, the fibers where the disconnection or the connection is required, known as Lucent Connector (LC).

There are mainly two versions of Lucent connectors, such as:

BTW Connector (a very shortest type of connector used for calculating mounting)Jumper Connector (Simplex and duplex can be terminated by jumper connector).

help me please and thanks

Answers

Answer:

Inverter

Explanation:

Answer:

Inverter

Explanation:

In Laptop computer a battery is charged at DC voltage with the help of DC Adapter. The battery provides DC supply to all the components of the laptop. LCD requires AC voltage to continuously Switch ON and OFF the Fluorescent Bulb. These Lights will control the Pixels with the help of Liquid crystal inside the LCD.

To convert DC supply into AC Inverter is used. Inverter is an electronic circuit that is is used to convert DC voltage into AC voltage. It is placed behind the LCD of Laptop to provide a required current to the LCD.

Which is not a key factor a programmer uses in selecting the language for a project?

Answers

Answer:

Number of Inputs needed by a project

Explanation:

There are various factors to be kept in mind while choosing a language to code a project like -

The resources available are compatible with the language or not.Lines of codeResponse time requirement of projectPortability of languageWeb integration of project ,etc.

But the thing which does not affect the selection of a language is how many inputs are needed by the project as almost every language can accept numerous inputs where type of input can affect selection but the number cannot.

Janet manages the security of the database servers at the mortgage company where she works. The servers are Windows Server 2016; she’s concerned about file system security. Which Microsoft feature would be most helpful to implement security to the file systems?

Answers

Answer:

encrypted file system (EFS)

Explanation:

The Encrypting File System (EFS) on windows is a Microsoft feature that help store sensitive file or information on a hard disk in an encrypted format so as to protect it from attackers or any other unauthorize individual. The EFS uses a combination symmetric key encryption and public key technology to protect the files, it is then encrypted with a symmetric algorithm known as DESX.

Which of the following is true? a. The ListIterator interface is a subinterface of the Iterator interface b. The ListIterator interface is a superinterface of the Iterator interface c. The ListIterator interface extends the List interface d. None of the above

Answers

Answer:

Option (A) is the correct answer.

Explanation:

Iterator’ is an interface that allows to give access to the data member, traverse any collection and remove the data member from the collection. ListIterator interface is used to extend the Iterator interface before it has been used by the user because it is an interface defined in the "Iterator" interface. This line is also said by the option "a" in the question. hence option a is the right answer. Another option is not valid because-

Option b says that the Iterator interface is defined in the ListIterator interface which is wrong.Option c suggests that the ListIterator interface is defined in the List interface which is also wrong.Option d suggests that the given option is not correct but the option "a" is correct.

A computer ________ is two or more computers connected using software and hardware so that they can communicate with each other.

A. network
B. switch
C. broadband
D. node

Answers

Answer:

Option A is the correct answer for the above question.

Explanation:

A network is said to the group of the connected computer used for the communication purpose in which information is transferring from one computer to another and vice versa. The computer is connected to a network with the help of some software or some hardware or both.

The question scenario also asked about that thing which is made for communication and being connected with the help of some software or hardware. Then the answer is a computer network that is described in the above paragraph. Hence the answer is option A  while the other option is not correct because--

Option B states about switch which is used to connect the network, not for the communication.Option C states about broadband which is also used to connect the network, not for the communication.Option D states about node which is called for the computer system when it is on the network.

// In this exercise, you will be given a variable, it will be called: value
// You will also be given a variable named: greaterThanFive // Using an 'if' statement check to see if the value is greater than 5. If it is, re-assign greaterThanFive the boolean true.

Answers

Answer:

import java.util.Scanner;

public class Solution {

   public static void main(String args[]) {      

     Scanner scan = new Scanner(System.in);

     System.out.println("Enter your value");

     int value = scan.nextInt();      

     greaterThanFive(value);

   }  

   public static void greaterThanFive(int userInput){

       System.out.println(userInput > 5);

   }

}

Explanation:

The first line import the Scanner which is use to enable to accept user input.

The class is defined as Solution in the next line. The main method is declared in the next line which signify the beginning of the program.

Then, a scanner object is declared called scan in the next line. Then a prompt is display to the user to input a value. The user input is stored in the variable value. The value is then passed to the method greaterThanFive.

The method greaterThanFive is declared and have just one parameter, the userInput. Inside the method, we output if the userInput is greater than 5 using the logical operator (>).

Which VPN protocol does not support using Password Authentication Protocol (PAP), Challenge Handshake Authentication Protocol (CHAP), and Microsoft Challenge Handshake Authentication Protocol Version 2 (MSCHAPv2), and instead can only use EAP-MSCHAPv2 or a certificate for authentication?

Answers

Answer:

Internet Key Exchange, Version 2 ( IKE v 2 )

Explanation:

Internet Key Exchange, Version 2 is a request/response encryption tool it provides security and manages security association (SA) properties, it uses only EAP-MSCHAPv2 (another authentication mechanism) or a certificate for authentication.

Which type of NAC agent will be used during the posture assessment before allowing access to the VPN users?

Answers

Answer:

Dissolvable NAC agent.

Explanation:

Dissolvable NAC agent is a part of the NAC(Network Admission Control) agent. The main advantage of dissolvable NAC agent does not need any installation of the device. In the dissolvable NAC agent, the login process is started by downloading the part of the agent on the website during the run time. The Dissolvable NAC agent is used in the posture assessment before allowing access permission to the VPN users.

Q. Which protocol would best serve to authorize users to access directory services?

Answers

Answer:

Lightweight directory access protocol (LDAP)

Explanation:

Lightweight directory access protocol is a protocol that provides a common open protocol for interfacing and querying a directory service information given by a network operating system. LDAP is an application layer protocol that uses port number 389 via tcp and udp. LDAP queries are transmitted in text and allows for all or some data be queried anonymously.

Lightweight directory access protocol, ordinarily does not require user authentication connection, but this can be configured to ask for user credentials.

What do 3-D game programs use to send standard video commands to the device driver?

Answers

Answer:

The answer is "APIs".

Explanation:

APIs stands for application programming interface. It provides an interface between client and server. Several types of APIs are used web-based systems, databases, hardware, and software libraries.  

It is also known as an in-built program.  APIs interact in the most commonly used shares and embedded game content, libraries, operational systems, applications, etc.

What is the printout of the following switch statement?
char ch = 'a';
switch (ch) {
case 'a': case 'A': cout << ch << endl; break;
case 'b': case 'B': cout << ch << endl; break;
case 'c': case 'C': cout << ch << endl; break;
case 'd': case 'D': cout << ch << endl;
}

Answers

Answer:

a

Explanation:

The switch statement in the question above is written in C++ programming language. Firstly a variable of type char is declared and assigned a value of a. The switch statement then checks this value and executes the statement that follows, observe that in all cases, it checkes both the upper and lower case letters, also the value that is printed is the value stored in the variable ch and not the string ch. The code has also been to print the same output when any of the values a,b,c or d are entered.

Use the ____ statement to execute one set of instructions if the condition is true, and another set of instructions if the condition is false.

Answers

Final answer:

The statement to execute one set of instructions if a condition is true and another if it is false is the 'if-else' statement. This statement is foundational in programming for controlling the flow based on conditions, representing the logical construct known as a conditional statement.

Explanation:

Use the if-else statement to execute one set of instructions if the condition is true, and another set of instructions if the condition is false. In programming, a conditional is used to direct the flow of execution based on whether a condition is true or not. An example in a pseudocode format could be:

IF (condition is true) THEN
   execute these instructions
ELSE
   execute these other instructions
END IF

This structure allows you to perform different actions within a program based on whether a certain condition, such as "if the user is logged in" or "if the temperature is above 30 degrees Celsius", is met. In logical terms, the if-then construct represents a conditional statement that links a hypothesis with a conclusion. If the hypothesis is true (the condition), then the conclusion (the following set of instructions) follows. For example, translating the conditional 'If an animal is a dog, then it is a mammal' into pseudocode might look something like:

IF animal is 'dog' THEN

   animal is a mammal
ELSE

   animal is not a mammal (or the condition doesn't apply)
END IF

A disaster recovery plan is a plan:
a. That describes how a businesses operates continuously at all times
b. To restore an organization's IT capability in the event that it's IT infrastructure is damaged or destroyed
c. That specifies how to resume not only IT operations but all business processes in the event of a major calamity
d. To restore an organization's IT capability in the event that files and data get corrupted through human error

Answers

The answer to your question would be B.

A disaster would usually cuase damage or destroy something. A recovery would be in this case in computer speech would be restore.

Final answer:

The correct answer is b, which defines a disaster recovery plan as a plan to restore an organization's IT capability if its IT infrastructure is compromised.

Explanation:

A disaster recovery plan is a comprehensive set of strategies and procedures to restore an organization's IT capabilities and business operations after a disaster. The correct answer to the student's question is option b, which states that a disaster recovery plan is 'To restore an organization's IT capability in the event that it's IT infrastructure is damaged or destroyed.'

This plan specifically focuses on IT systems and data, ensuring that they can be recovered or reconstructed to support business continuity. It may include steps such as data backups, recovery sites, and various IT infrastructure resiliency methods.

Describe the conventional criteria used in assessing risk in the software-development process.

Answers

Answer:

Like conventional criteria we have

cost

budget and schedule

Explanation:

The conventional criteria regularly are cost, budget and schedule, because these three factors are so important in a company, but we can add other criteria like social, political, and ethical issue.

For example

We create a new social media, all the information about our users, we share or sell this data or if we video content, but this content doesn't have any filter for children, we must evaluate social criteria and ethical criteria.

The conventional criteria used in assessing risk in the software-development process includes the software requirement review and Audits  of the actions performed in the software development process.

Other normal criteria used in assessing risk in the software-development process are:

By Identify the issue associated with software development process.Find out the likelihood of damage and its severity. Know and list out  actions needed to eliminate the issue/problem or control the risk using different risk control methods.

Why is risk assessment important in software development?

It is very vital to carry out a risk assessment as it is very important step in the preparation  against potential problems that may take place in software project.

Conclusively, In the risk assessment, when a notable risk is found, a solution or plan of action is said to be developed and analysis and plan is also done.

learn more about software development from

https://brainly.com/question/26135704

In a natural-language processing (NLP) system, the__________activity involves using the computer to read large amounts of text and understanding the information well enough to summarize important points and store information so that the system can respond to inquiries about the content.

Answers

Final answer:

In a natural-language processing (NLP) system, the synthesis activity involves using the computer to read and understand large amounts of text, summarize important points, and store information to respond to inquiries about the content.

Explanation:

In a natural-language processing (NLP) system, the synthesis activity involves using the computer to read large amounts of text and understanding the information well enough to summarize important points and store information so that the system can respond to inquiries about the content.

This process requires complex reading and thinking skills, and it involves interpreting key points, making connections between texts, and combining pieces of information from different sources. It is similar to summarizing a text in your own words, but it goes beyond just condensing the main points and involves the creation of new meaning.

For example, a NLP system may read a news article and extract important details about an event or topic discussed in the article. It will then store this information in a way that allows the system to provide relevant responses when asked questions about the content of the article.

The exercise instructions here are LONG -- please read them all carefully. If you see an internal scrollbar to the right of these instructions, be sure to scroll down to read everything.
Given that an integer variable i and a floating-point variable f have already been declared and given values:
Write a statement in C that displays the values of i and f to standard output in the following format:
i = value -of - i f = value - of - f
Two Examples:
Example 1: if the values of i and f were 25 and 12.34 respectively, the output would be:
i = 25 f = 12.34
Example 2: if the values of i and f's value were 703 and 3.14159, (respectively) the output would be:
i = 703 f = 3.14159
Remember: you are GIVEN i and f-- that means they are already declared and they already have values ! Don't change their values by assigning or initializing them! Just print them out the way we have shown above. Just write one statement to produce the output.
Remember: you don't know what the actual values of i and f are-- they are unlikely to be the values used in the examples above! Remember: in your output you must be displaying both the name of the variable (like i) and its value.

Answers

Answer:

The C statement is given below with appropriate comments

Explanation:

printf("i=%d f=%f", i, f);

// printf is used to write a values to standard output. In c++, we use cout.

// %d is a control string to display integer value and %f is a control string to display floating point value.

// i represents the integer value, corresponding to %d

// f represents the float value, corresponding to %f

Other Questions
I need help please and thank you If a premium on a bonds payable transaction is not amortized, what are the effects on interest expense and total stockholders' equity? State weather the equation represents exponential growth, exponential decay or neither, 30 POINTS EASY A group of friends bought 7 tickets to a dog show for $30 each. How much did they spend on the tickets? Do SAT coaching classes work? Do they help students to improve their test scores? Four students were selected randomly from all of the students that completed an SAT coaching class. For each student, we recorded their first SAT score (before the coaching class) and their second SAT score (after the coaching class).Student1234First SAT score920830960910Second SAT score10108001000980To analyze these data, we should useA.the one-sample t test., one answer Yahoo,B.the matched pairs t test.C.the two-sample t test.D.) Any of the above are valid. It just needs to be a t since ? is unknown. On which tab would you find Access's features for formatting text? A. File B. Home C. Create D. Format You want to test your newly created Web site, so you have 250 people access it from random locations at random times. Of the people accessing the site, 75 of them experience computer crashes. You want to estimate the proportion of crashes within a margin of error of 4% at a 95% confidence interval. What sample size do you need? The following information was obtained from matched samples. Individual Method 1 Method 2 1 7 5 2 5 9 3 6 8 4 7 7 5 5 6 Refer to Exhibit 10-5. If the null hypothesis is tested at the 5% level, the null hypothesis _____. a. should be rejected b. should be revised c. should not be rejected d. None of these answers are correct Which graph represents the solution to the given system ? Y=- 6X - 2Y +2=- 6X The successful conveyance of real estate depends on a well-formed contract for sale since the contract dictates the rights and type of deed involved, as well as choreographs the entire transaction. Which of the following features of the contract for sale refers to the arrangements agreed to by the parties, such as price and date of closing?A. Contract termsB. Contract conditionsC. Equitable titleD. Contingency clause One important unintended consequence of the Smoot-Hawley Tariff Act was to: a.lessen the severity of the Great Depression by increasing exports.b.provide the federal government with an effective tool for exercising monetary policy.c.increase the efficiency of domestic automobile production.d.increase the severity of the Great Depression by causing other countries to retaliate, and thus leading to a decline in exports.e.increase the U.S. government budget deficit by $15 million What attracted France and England to the North Atlantic region? A.fishing industry B.Native Americans C.possibility for gold D.the glory of conquest Given an int variable datum that has already been declared, write a few statements that read an integer value from standard input into this variable. A sound system is being set up in a gazebo in a park. It needs to produce music so that everyone can hear it. How much power would the speakers need to produce in order for the intensity at 5 meters away to be 1 x 10^-8 W/m^2? (assume the shape of the propagation of the sound wave is a hemisphere)1.87 x 10^-7 W1.57 x 10^-6 W1.14 x 10^-6 W2.46 x 10^-7 W The _______ form is used by non-institutional providers and suppliers to bill Medicare, Part B covered services. Benito, a psychology student, has had an overall negative impression of his psychology professor. As a consequence, during the end-of-term appraisal, he rates his professor low on all performance criteria. Which of the following rater errors has Benito committed?A) HornsB) LeniencyC) Central tendencyD) ContrastE) Strictness Suppose a 52 N sled runs on packed snow. The coefficient of friction is only 0.11. If a person weighing 700 N sits on the sled, what force is needed to pull the sled across the snow at constant speed? Acetylene torches are used for welding. These torches use a mixture of acetylene gas, C2H2, and oxygen gas, O2 to produce the following combustion reaction: 2C2H2(g)+5O2(g)4CO2(g)+2H2O(g) Imagine that you have a 6.50 L gas tank and a 4.00 L gas tank. You need to fill one tank with oxygen and the other with acetylene to use in conjunction with your welding torch. If you fill the larger tank with oxygen to a pressure of 115 atm , to what pressure should you fill the acetylene tank to ensure that you run out of each gas at the same time? Assume ideal behavior for all gases. _____ are created so that tests are applicable to individuals from diverse groups. What is the kinetic energy of a 50-kg child running to catch the school bus at2 m/s?O A. JO B. 25 JO C. 100JO D. 200 Steam Workshop Downloader