subject

After the execution of the following code, what will be the value of num if the input values are 0 3? (assume that console is a scanner object initialized to the standard input device.)

int num = console. nextint();
if (num > 0)
num = num + 13;
else
if (num > = 3)
num = num + 15;

a) 0
b) 3
c) 13
d) 15

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:00
Which of the following is a way the operating system prevents unknown or unauthorized users from accessing the system?
Answers: 2
question
Computers and Technology, 22.06.2019 11:30
What do character formats do for your document's message? a.set the tone b.provide organization c.provide clarity d.set how texts align with documents
Answers: 2
question
Computers and Technology, 22.06.2019 17:50
Farah works in an office with two other employees. all three share a printer and an internet connection. the utility that makes this possible is defragger quicktime soho winzip
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
You are consulting for a beverage distributor who is interested in determining the benefits it could achieve from implementing new information systems. what will you advise as the first step?
Answers: 1
You know the right answer?
After the execution of the following code, what will be the value of num if the input values are 0 3...
Questions
question
English, 17.11.2020 03:40
question
Mathematics, 17.11.2020 03:40
question
Mathematics, 17.11.2020 03:40
question
Mathematics, 17.11.2020 03:40
question
Business, 17.11.2020 03:40
question
Biology, 17.11.2020 03:40
question
Mathematics, 17.11.2020 03:50
question
Chemistry, 17.11.2020 03:50
question
Mathematics, 17.11.2020 03:50
question
Arts, 17.11.2020 03:50
Questions on the website: 13722362