![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 08.04.2021 21:50 gamerdoesart
Consider the following recursive method, which is intended to display the binary equivalent of a decimal number. For example, toBinary(100) should display 1100100.
public static void toBinary(int num)
{
if (num < 2)
{
System. out. print(num);
}
else
{
/* missing code */
}
}
Which of the following can replace /* missing code */ so that toBinary works as intended?
a. System. out. print(num % 2);
toBinary(num / 2);
b. System. out. print(num / 2);
toBinary(num % 2);
c. toBinary(num % 2);
System. out. print(num / 2);
d. toBinary(num / 2);
System. out. print(num % 2);
e. toBinary(num / 2);
System. out. print(num / 2);
![ansver](/tpl/images/cats/User.png)
Answers: 1
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 15:20
The north and south regions had very diferent economies in the 1800s.
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 16:00
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 16:00
Kenny works with an it company. his company is about to launch new software in the market. he has to ensure that this new software is functional and meets all of the quality standards set up at the planning stage. which job profile is kenny likely to have? kenny is likely to have the job profile of a blank .
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 09:50
Self contained sequences of actions to be performed are? a. expressions b. algorithms c. functions d. formulas
Answers: 1
You know the right answer?
Consider the following recursive method, which is intended to display the binary equivalent of a dec...
Questions
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/geografiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 24.05.2021 15:50
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 24.05.2021 15:50
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 24.05.2021 15:50
![question](/tpl/images/cats/mat.png)
Mathematics, 24.05.2021 15:50
![question](/tpl/images/cats/biologiya.png)
Biology, 24.05.2021 15:50
![question](/tpl/images/cats/mat.png)
Mathematics, 24.05.2021 15:50
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 24.05.2021 15:50
![question](/tpl/images/cats/mat.png)
Mathematics, 24.05.2021 15:50
![question](/tpl/images/cats/fizika.png)