FREE E LEARNING PLATFORM
HOMEEXCEPTIONSOOPSJVMINTRO
 

I.C.S.E Board Java objective questions practise Paper 1




1. In java a constructor with no parameters or arguments is called _________ constructor.

  1. Default Constructor
  2. User Defined Constructor
  3. Static Constructor
  4. Custom Constructor

Answer: a. Default Constructor

2. In java a constructor with no parameters or arguments and generated by compiler is called _________ constructor.

  1. Default Constructor
  2. User Defined Constructor
  3. Static Constructor
  4. Custom Constructor

Answer: a. Default Constructor

3. Point out the odd one out

  1. Inheritance
  2. Polymorphism
  3. Abstraction
  4. Constructor

Answer : d. Constructor

4. Which is the odd one in the given option

  1. ASCII
  2. UNICODE
  3. ISOLATIN-1
  4. None of the mentioned

Answer : ISOLATIN-1

5. Default constructor requires how many parameters

  1. 3
  2. 2
  3. 0
  4. 1

Answer: a. Default ConstructorAnswer : c. 0

6. How to access the object in the class?

  1. ternary operator
  2. scope resolution operator
  3. direct member access operator
  4. resolution operator

Answer: c

7. Which of these following members are not accessed by using direct member access operator?

  1. Public
  2. Private
  3. Protector
  4. both private & protected

Answer: d

8. Pick out the other definition of objects.

  1. member of the class
  2. associate of the class
  3. attribute of the class
  4. instance of the class

Answer: d Explanation: An Object represents an instance of a class i.e. a variable of that class type having access to its data members and member functions from outside if allowed.

9. How many objects can present in a single class?

  1. 1
  2. 2
  3. 3
  4. as many as possible

Answer: d Explanation: Because a class may contain any number of objects according to its compliance.

10. A function in java is _______ by default .

  1. Public
  2. Private
  3. Protected
  4. None of the Above

Answer: b. Public

You may also Find this interesting

Java Set 1

Java Set 2

JAVA Practise Paper Set 1 Answers

JAVA Practise Paper Set 2 Answers







Leave Comment