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

Here is a Test Code segment:

Computers and Technology
1 answer:
Tju [1.3M]3 years ago
3 0
Here's the best answer I can give you, but bear with me.
The second option is incorrect because a class method must have a class identifier not an object identifier. What makes myObject an object identifier is the fact that it was created as an instance of the class MyClass in the constructor in line 5 (MyClass myObject= new MyClass(12.4,20);
The answer here should be MyClass.method2(20); Methods must have a set of parentheses, even if it has nothing inside. The first answer has a class identifier but the SOME_VALUE acts much like the Integer.MAX_VALUE; code which stores a constant value and does not actually perform tasks like most methods.
In short, the answer should be the last one but I hope my explanation cleared some things up for you, even if it was a bit more concept heavy than the question probably intended.
You might be interested in
What is Scrum?
Wittaler [7]

Answer:

A lightweight process for cross-functional, self-organized teams.

Explanation: The process in which teams are cross functional and self organizing to complete a particular task. This term is used in software development. Progress towards well defined goal with by emphasizing on teamwork and accountability.

5 0
3 years ago
The third assignment involves writing a Python program to compute the cost of carpeting a room. Your program should prompt the u
mojhsa [17]

Answer:

# price of the carpet per square foot for each quality.

carpet_prices=[1,2,4]

def cal_cost(width,height,choice):

 return width*height*carpet_prices[choice-1]  

width=int(input("Enter Width : "))

height=int(input("Enter Height : "))

print("---Select Carpet Quality---")

print("1. Standard Quality")

print("2. Primium Quality")

print("3. Premium Plus Quality")

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

print(f"Carpeting cost = {cal_cost(width,height,choice)}")

Explanation:

The cal_cost function is used to return the cost of carpeting. The function accepts three arguments, width, height, and the choice of carpet quality.

The program gets the values of the width, height and choice, calls the cal_cost function, and prints out the string format of the total carpeting cost.

3 0
3 years ago
What is Communication​
iVinArrow [24]
Computer communications describes a process in which two or more computers or devices transfer data, instructions, and information. ... A sending device that initiates an instruction to transmit data, instructions, or information. A communications device that connects the sending device to a communications channel.
3 0
3 years ago
What does it mean to tweet with Geotagged
lys-0071 [83]
When tweets are geotagged, the exact position of where the person was when they posted the tweet is recorded using longitude and latitude measurements. hope this helped !
4 0
3 years ago
7. Application software is a program or group of programs designed for end-users.<br> True<br> False
Genrish500 [490]

Answer:

True

Explanation:

A software refers to "instructions that tell a computer what to do. Software comprises the entire set of programs, procedures, and routines associated with the operation of a computer system" (Encyclopedia Britannica).

There are two types of software;

i) system software

ii) Application software

An application software helps the user to perform specific tasks on the computer. It was specifically designed for the end user.

A typical example of an application software is the Microsoft office which could be used to prepare documents using the computer.

5 0
3 years ago
Other questions:
  • With a(n) ____ structure, you perform an action or task, and then you perform the next action in order.
    6·1 answer
  • Interior gateway protocols are used by routers in order to share information within a single
    9·1 answer
  • List five things that could cause premature bearing failure
    11·1 answer
  • Which category best represents: a student sends harassing emails to another student. The receiving student retaliates with a "fl
    10·2 answers
  • Check examples of a good work ethic. *
    6·1 answer
  • Consider the language defined by the following regular expression. (x*y | zy*)* Does zyyxz belong to the language? Yes, because
    11·1 answer
  • Explain the different features available in Print command?
    10·1 answer
  • QUESTION 1
    6·1 answer
  • Range paramters - for loop<br> question in picture
    13·1 answer
  • State four input device that are used for playing gaming programs​
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!