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
soldier1979 [14.2K]
3 years ago
8

Consider the method total below: public static int total (int result, int a, int b) {     if (a == 0)    {      if (b == 0)     

 {         return result * 2;      }      return result / 2;       }    else    {      return result * 3;    } }           The assignment statement x = total (6, 0, 0); must result in
x being assigned the value 8

2) 
x being assigned the value 4

3) 
x being assigned the value 5

4) 
x being assigned the value 12

5) 
x being assigned the value 10




Consider the following definitions:
public boolean someMethod (int[] list, int value)
{
   int counter;
   boolean flag = false;
   for (counter = 0; counter < list.length; counter++)
   {
     flag = (list[counter] != value);
   }
   return flag;
}
Under which of the following conditions must the method above return true?

1) 
Under all conditions

2) 
Under the condition that value == list[list.length − 1]

3) 
Under the condition that value != list[list.length − 1]

4) 
Under the condition that value != list[i] for all i such that 0 <= i < list.length

5) 
Under no conditions




What is the output of the program shown below? (1 point)
public class SomeClass
{
   private int x, y;
       public SomeClass (int xValue, int yValue)
   {
     x = xValue;
     y = yValue;
   }            
   public void m1()
   {
     x = 30;
     System.out.print((y + 1) + " ");
   }
   public void m2()
   {
     m1();
     System.out.print(x + " ");
   }
}
public class SomeTester
{
   public static void main (String[] args)
   {
     int x = 20;
     int y = 10;
     SomeClass z = new SomeClass(x, y);
     z.m2();
     z.m1();
   }
}



21 10 21

2) 
21 30 21

3) 
11 30 11

4) 
1 10 11

5) 
11 30 21




​
Computers and Technology
1 answer:
Julli [10]3 years ago
3 0

Answer:

A23 4657

Explanation:

You might be interested in
in which situation, a unicast session or a multicast session, can feedback received from an rtcp packet about the session be han
nikklg [1K]

The Real-time Transport Protocol is a network protocol that enables the Voice Over Internet Protocol by delivering streaming audio and video content over the internet (VoIP).

The datagram-oriented protocol is UDP. It is thus because none of the overhead associated with creating, maintaining, and closing connections exists. A network's ability to send audio and video depends on the RTP internet protocol. Designed for reliable live data delivery, the Real-time Transport Protocol (RTP) is a network standard for sending audio or video data. It is utilized in voice over IP, video telephony, and internet telephony. In the OSI model, RTP belongs to both the Presentation Layer (Layer 6) and the Session Layer (Layer 5).

Learn more about protocol here-

brainly.com/question/27581708

#SPJ4

3 0
1 year ago
What medium allows for electronic delivery of DTP content without the need for any physical media?
Lostsunrise [7]
Email? Dropbox?...Not sure give one of these a try? Hope this helps
0 0
3 years ago
What acronym is used to reference the data link sublayer that identifies the network layer protocol encapsulated in the frame?
juin [17]

Logical Link Control is the data link sublayer that identifies the network layer protocol encapsulated in the frame. The acronym of Logical Link Control is LLC.

Therefore, the answer is LLC.

7 0
4 years ago
Name three situations when a copy constructor executes.
Vesna [10]

Answer:

1. When an object of the class is passed (to a function) by value as an argument.

2.  When an object is constructed based on another object of the same class.

3. When compiler generates a temporary object.

Explanation:

7 0
3 years ago
if ( (ans == 'Y' &amp;&amp; errors &lt; 5) || numTries &lt; 10 ) // note uppercase 'Y' count++; Which combinations of values res
Shkiper50 [21]

The correction options to the case abode are:

Option B. ans = 'Y' (upper case)

errors = 6

numTries = 5

Option C. ans = 'y' (lower case)

errors = 4

numTries = 5

Option D. ans = 'Y' (upper case)

errors = 100

numTries = -1

<h3>What is Coding?</h3>

Computer coding is known to be the act that entails the use of computer programming languages to instruct the computers and machines on a given number of instructions on what need to be  performed.

Note that in the statement above,  the combinations of values results in count being incremented after the statement is complete is option B, C and D.

See full question below

Learn mode about coding from

brainly.com/question/22654163

#SPJ1

3 0
2 years ago
Other questions:
  • In the story, what are the song pauses a metaphor for?
    7·1 answer
  • Write a program that first gets a list of integers from input. Then, get another value from the input, and output all integers l
    8·1 answer
  • Which step can most directly help your team follow up on decisions made during Web development meetings?This task contains the r
    6·1 answer
  • Open a command prompt on PC1. Issue the command to display the IPv6 settings. Based on the output, would you expect PC1 to be ab
    7·1 answer
  • False when you tap or click the ‘decrease font size’ button, excel assigns the next lowest font size in the font size gallery to
    13·1 answer
  • When you’re in the Normal view, what are the visible panes?
    15·2 answers
  • Can someone help me out with this question?​
    9·1 answer
  • Rob is planning his housewarming party. He wants to design an invitation and personalize it for each invitee. He needs to create
    11·1 answer
  • How can computational thinking techniques be applied to software development
    6·1 answer
  • Iris has completed a graphic design project for a client. what should iris obtain from the client in order to display the work i
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!