#1) If a function is legally prototyped to return an integer value, it can return a structure member that is an integer data type.
Answer: True. Any method that is not declared void must contain a return statement with a corresponding return value. The data type of the return value must match the method's declared return type; you can't return an integer value from a method declared to return a boolean.
Answer:
Viruses
Explanation:
virusues are designed to infect and cause damage to operating system files, computer registry, and other locations on the motherboard
Answer:
public Clock(int hours) {
this.hours = hours;
}
Explanation:
In Java programming language, Constructors are special methods that are called to initialize the variables of a class when a new object of the class is created with the new keyword. Consider the complete code for the class below;
<em>public class Clock {</em>
<em> private int hours;</em>
<em> public Clock(int hours) {</em>
<em> this.hours = hours;</em>
<em> }</em>
<em>}</em>
In this example above, an object of this class can created with this statement Clock myclock = new Clock(6); This is a call to the constructor and passes a parameter (6) for hours
Answer:
B. The remainder when dividing a whole number by 2
Explanation:
A binary digit can have the values 0 or 1. The remainder from division of an integer by 2 will be 0 or 1. Hence that remainder can be represented by a single binary digit.
__
That fact can be used to do conversion of a number to binary.