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
ELEN [110]
3 years ago
11

The procedure call mystery(38) will yield which output? __________ a) 0 12 b) 12 0 c) 1 1 0 2 d) 1 1 1 1 e) 2 0 1 1 public void

mystery (int n) { if (n>2) mystery (n % 3); System.out.print( (n / 3) + " " ); }
Computers and Technology
1 answer:
Ivan3 years ago
3 0

Answer:

Option b is the correct answer for the above question.

Explanation:

  • The mystery function is a recursive function that calls for the two times when the user passes 38 on the argument.
  • The first value is 38 and the second value is 2 for which that function is called.
  • When the value 38 is passed, then again 2 is passed because of the "mystery (n % 3);" statement.
  • This statement holds by the if condition which gives the true when the argument value is greater than 2.
  • Hence for the 2 value the if condition will not true and the function is not called again.
  • Then the 38/3 and 2/3 are printed whose value is 12 0, but it will print 0 12 because of the recursive function.
  • Hence option b is the correct answer while the other is not because other options does not states the output of this program.
You might be interested in
Give reasons why you care for your sense organs​
Cerrena [4.2K]

HI!the resaon why should you care for you sense organs is that they help us to contact with our surroundings.

8 0
2 years ago
Read 2 more answers
The area or the window that shows the current folder location​
Alex Ar [27]

Answer:

The focused window

Explanation:

However, please provide some more details about this because the question itself is very vague.

8 0
4 years ago
Sally needs to copy data from the first worksheet to the fifth worksheet in her workbook. Which combination of keys will she use
Gelneren [198K]

The correct answer is A: Ctrl and Page Up or Page Down keys.

Ctrl + Page Down - from left-to-right

Ctr + Page Up - from right-to-left

3 0
3 years ago
Read 2 more answers
If you type too much text on a PowerPoint slide, the additional text is added to a second slide.
Snowcat [4.5K]

Answer:

This is false

The text just goes out of the slide and you can't see it until you lower the font size or until you delete some of it.

Explanation:

5 0
3 years ago
Su prepares a presentation about the industrial revolution. She wants to change the font on the second slide of
tatyana61 [14]

Answer:

The answer to this question with an explanation is given below in the explanation section

Explanation:

Sue prepares a presentation about the industrial revolution. She wants to change the font on the second slide of her presentation. She can accomplish this task with the following option.

By using Font dialog box

Using this option, first, she needs to select the whole second line, as the line gets selected, font dialog box get appear, wherefrom she can change the font to any available font style, size. In this font dialog box, she can also increase and decrease the font, change the font color and can make font bold, italic and underline.

By using the Font drop-down menu

Using this option, first, she needs to select the second line of her slide. Then, go to the Home tab, under Font group section, she can change the font style, size, color and increase spacing, etc.

Why other options are not correct.

<em>By using the mini toolbar</em>

mini toolbar does not have the option that directly allows you to change the font

<em>By using paragraph option</em>

Using this option, you can only modify the paragraph setting, but not the font. Using this option, you can align the text of paragraph to center, left, right and justify, you can do numbering, add or remove the column, and make text direction.

<em>By using WordArt options</em>

Using this option, you can insert WordArt, these styles are predefined and don't allow you to change the font.

6 0
3 years ago
Read 2 more answers
Other questions:
  • Imagine that you are an independent filmmaker making a feature-length narrative film in the United States, with a variety of bot
    11·2 answers
  • What to do when microsoft word is eating your words?
    8·1 answer
  • T F The scope of a parameter is limited to the function which uses it.
    12·1 answer
  • One item you will NOT need to provide when opening up a bank account
    9·2 answers
  • A bug collector collects bugs every day for seven days. Write a program in Python that finds the highest number of bugs collecte
    11·1 answer
  • Nielsen purchases scanner data from retail transactions to track the sales of consumer packaged goods, gathered at the point of
    14·1 answer
  • A Cisco Catalyst switch has been added to support the use of multiple VLANs as part of an enterprise network. The network techni
    5·1 answer
  • Imagine a typical website that works as a storefront for a business, allowing customers to browse goods online, place orders, re
    13·1 answer
  • Both instructions and data in a digital<br>computer are represented as binary<br>digits. True False​
    13·1 answer
  • Explain drawing and painting package.​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!