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
MrRissso [65]
2 years ago
10

Consider the following recursive method. public static string recur(int val) { string dig = "" + (val % 3); if (val / 3 > 0)

return dig + recur(val / 3); return dig; } what is printed as a result of executing the following statement? system.out.println(recur(32));
Computers and Technology
1 answer:
Oksana_A [137]2 years ago
5 0

The recursive method recur executes itself from within

When the statement System.out.println(recur(32)); is executed, the string value "2101" is printed

<h3>How to determine the output of the statement?</h3>

The flow of the program is as follows:

  • The method keeps updating the string variable dig with the remainder of the val variable divided by 3
  • When the remainder is less than or equal to 0, the method is exited

So, when 32 is divided by 3.

The remainders are 2, 1, 0 and 1

So, the output of the statement is "2101"

Read about java methods at:

brainly.com/question/19271625

You might be interested in
Help it’s an exam brainleist
andreyandreev [35.5K]

Explanation:

Automatic transaction machine

False

True

8 0
3 years ago
Which type of attack is one in which a rogue wireless access point poses as a legitimate wireless service provider to intercept
il63 [147K]
Answer: An evil twin attack poses as a legitimate AP.<span />
7 0
3 years ago
In the dental industry, light-activated adhesives have been used for decades to help adhere braces to teeth as well as being use
Bas_tet [7]

In the dental industry, light-activated adhesives have been used for decades to help adhere braces to teeth as well as being used in other dental procedures. These adhesives are one-part translucent polymers that cure and harden when exposed to specific light spectrum. Many of these took up to 30 seconds to cure. New technology brings LED blue light curing which uses blue LED with UV light to cure and harden a light-activated adhesive in 3-5 seconds. Which result below would NOT be an advantage of this new technology?<u> A)There is a higher up-front expense.</u> B)Could be used in other areas such as sealing cracked pipes. C)No filters or cooling fan required due to quick curing and low heat emission. D)There is a major time savings when using the faster high–intensity curing lights.

7 0
3 years ago
Read 2 more answers
Are used to connect a computer to a telephone line for dial-up internet access
Stella [2.4K]
I mean it typically goes wall jack to filter to line...
5 0
4 years ago
Which of these is NOT an advantage of the impact of computer careers.
nikdorinn [45]
I believe the answer could be the first choice. I'm not quite sure, though
4 0
3 years ago
Read 2 more answers
Other questions:
  • Why should you use a named constant for the size of an array?
    9·1 answer
  • The extension name of a java bytecode file is ________.
    8·1 answer
  • The document theme does not determine the appearance of the style
    6·1 answer
  • Which carrier sense technology is used on wireless networks to reduce collisions?
    7·1 answer
  • Properly worn safety belts help prevent
    7·2 answers
  • How to do “Pseudocode” and “FlowChart” in this question ? <br><br> Please Help mee
    9·1 answer
  • If you selected row 17 and then selected Insert Sheet Rows, row 17 _____.
    13·1 answer
  • &gt;What is the output of the following code:
    5·1 answer
  • Point out the correct statement:_____.
    6·1 answer
  • PLEASE HELP ME FIX THIS CODE.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!