I.C.S.E Board Java objective questions practise Paper 1
1. In java a constructor with no parameters or arguments is called _________ constructor.
- Default Constructor
- User Defined Constructor
- Static Constructor
- Custom Constructor
Answer: a. Default Constructor
2. In java a constructor with no parameters or arguments and generated by compiler is called _________ constructor.
- Default Constructor
- User Defined Constructor
- Static Constructor
- Custom Constructor
Answer: a. Default Constructor
3. Point out the odd one out
- Inheritance
- Polymorphism
- Abstraction
- Constructor
Answer : d. Constructor
4. Which is the odd one in the given option
- ASCII
- UNICODE
- ISOLATIN-1
- None of the mentioned
Answer : ISOLATIN-1
5. Default constructor requires how many parameters
- 3
- 2
- 0
- 1
Answer: a. Default ConstructorAnswer : c. 0
6. How to access the object in the class?
- ternary operator
- scope resolution operator
- direct member access operator
- resolution operator
Answer: c
7. Which of these following members are not accessed by using direct member access operator?
- Public
- Private
- Protector
- both private & protected
Answer: d
8. Pick out the other definition of objects.
- member of the class
- associate of the class
- attribute of the class
- 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
- 2
- 3
- 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 .
- Public
- Private
- Protected
- None of the Above
Answer: b. Public
You may also Find this interesting
JAVA Practise Paper Set 1 Answers
JAVA Practise Paper Set 2 Answers
Leave Comment