Answer:
Zero(0)
Explanation:
<u>Global Variables
</u>
Variables which are declared outside any function. Any function can use these variables,they are automatically initialized to zero(0).They are generally declared before main() function.
Example- C program for showing global variable is 0.
#include <stdio.h>
int g; // declaring g as global variable
int main()
{
printf("%d",g); //printing global variable
return 0;
}
<u>Output</u>
0
Answer: B) Character
Explanation:
According to the question, character of Greg is depicted through the scenario as he is displaying his moral quality ,honesty and mind integrity through not providing low-quality product to his customers even though he has chance to save company money through buying shape material .
Thus, he has good character to provide quality product and maintaining reputation and company as well as valuing his customers.
Other options are incorrect because fairness, community, expertise and competence are not the quality trait depicted through question's scenario. Thus, the correct option is option(B).
Answer:
public static double areaSum(Circle c1, Circle c2){
double c1Radius = c1.getRadius();
double c2Radius = c2.getRadius();
return Math.PI * (Math.pow(c1Radius, 2) + Math.pow(c2Radius, 2));
public static void main(String[] args){
Circle c1 = new Circle(6.0);
Circle c2 = new Circle(8.0);
areaSum(c1,c2);
}
Explanation:
Answer:
"Computer Based Information system (CBIS)" is the correct answer for the above question.
Explanation:
- CBIS means about that system that is used to produce the information or process the information and it is computer-based because CB stands for computer-based and IS stands for an information system.
- It means that a system that helps by the computer and it is used to process the information then it can be called CBIS.
- To process the information in a computer system there is a need for software, people, database, hardware and processor which is a set of CBIS.
- The above question also wants to ask about the system which is a set of software, people, database, hardware and processor then it is known as CBIS which is described above. Hence the answer is CBIS.
Answer:
public static void printDottedLine(){
System.out.print(".....\n");
}
Explanation:
This method returns nothing so its return type is void
It also accepts no parameters so the argument list is empty
When called it executes the System.out.print(".....\n"); which prints out 5 dots
See a complete program below:
public class TestClock {
public static void main(String[] args) {
printDottedLine();
}
public static void printDottedLine(){
System.out.print(".....\n");
}
}