subject
Computers and Technology, 16.12.2019 20:31 kobz

Consider the class scopetest defined this way:
public class scopetest { public double x; public void method(double newx) { if (newx> 0) { double y = math. sqrt(newx); //line1 } //line2 } //line3 }
in which place(s) can we add y = newx; ?
a. only in line1 in line1, line2, and line3
b. no where in the class;
c. a variable cannot be declared in an if statement
d. in line1 and line2

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 16:30
What type of file does a cookie place on web site visitors' computers so that web site managers can customize their sites to their visitors' preferences?
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
Select the correct answer. andre was recently hired by an organization to check for system vulnerabilities. he is supposed to exploit these vulnerabilities and create a report on the extent of damage to which the system was susceptible. what position does andre hold in this organization? a. information security analyst b. information assurance manager c. penetration tester d. network security engineer e. chief information security officer
Answers: 2
question
Computers and Technology, 24.06.2019 14:00
Text or graphics that print at the bottom of every page are called footings footers headers headings
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
Create a file called favorite_foods, and list your favorite foods, entering five or six or more. press enter after each favorite food so it appears on its own line (make certain you also press enter after the final food item). after the file is created, add two more foods you like that are not on the list (press enter after the final food item). view the list of foods to make certain the two items you added appear at the end of the list
Answers: 2
You know the right answer?
Consider the class scopetest defined this way:
public class scopetest { public double x; pu...
Questions