Millionaire Mode

technology Online Quiz - 1834

Question 1 of 20

Given: 1. package geometry; 2. public class Hypotenuse { 3. public InnerTriangle it = new InnerTriangle(); 4. class InnerTriangle { 5. public int base; 6. public int height; 7. } Which statement is true about the class of an object that can reference the variable base?

  1. It can be any class
  2. No class has access to base
  3. The class must belong to the geometry package
  4. The class must be a subclass of the class Hypotenuse

Prize Money

15₹7 Crores
14₹1 Crore
13₹50,00,000
12₹25,00,000
11₹12,50,000
10₹6,40,000
9₹3,20,000
8₹1,60,000
7₹80,000
6₹40,000
5₹20,000
4₹10,000
3₹5,000
2₹2,000
1₹1,000