c. An error that due to wrong input.
=> Bug
<em>Hope </em><em>it</em><em> is</em><em> helpful</em><em> to</em><em> you</em>
Answer:
32
Explanation:
A duck has 2 wings, a spider has no wings and a cat also has no wings. So a cat costs as much as a spider.
Answer:
public static int greaterThanInt(int n){
return n+10;
}
Explanation:
This is a very simple method in Java. it will accept an argument which is an integer n and return n+10 since the question requires that an arbitrary integer greater than n be returned adding any int value to n will make it greater than n.
A complete java program calling the method is given below:
<em>import java.util.Scanner;</em>
<em>public class ANot {</em>
<em> public static void main(String[] args) {</em>
<em> Scanner in = new Scanner(System.in);</em>
<em> System.out.println("Please enter an integer");</em>
<em> int n = in.nextInt();</em>
<em> int greaterInt = greaterThanInt(n);</em>
<em> System.out.println("You entered "+n+", "+greaterInt+" is larger than it");</em>
<em> }</em>
<em> public static int greaterThanInt(int n){</em>
<em> return n+10;</em>
<em> }</em>
<em>}</em>
Answer:
screen resolution
Explanation:
The screen resolution indicates the number of pixels that can be displayed at one time on a given screen. For example, it could be numbers like 1920x1080, 1600x900 and so on.
Viewing angle has nothing with the pixel count, although viewing port would. Color depth concerns the number of colors you can display at one time. Pixel density is the concentration of pixels, like in Apple's retina display, that increases the number of pixels in the screen, but that doesn't give you the information on how many there are.