![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 06.04.2021 02:10 asenath6636
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)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 07:30, Morganwing1019
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 2
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
You know the right answer?
Consider the following recursive method, which is intended to display the binary equivalent of a dec...
Questions in other subjects:
![Konu](/tpl/images/cats/fizika.png)
![Konu](/tpl/images/cats/ekonomika.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 16.04.2020 00:35
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/User.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/obshestvoznanie.png)
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/en.png)