Q5)Choose the odd one:-----
A.i) Encapsulation
ii) Data abstraction
iii) Portable
iv) Polymorphism
B.i)>
ii)==
iii)&&
iv)<
C.i) Return
ii) Break
iii) Continue
iv)System.exit(0)
D.i) Int
ii) Double
iii) Char
iv) String
E.i)+
ii)%
iii)/
iv)II
Answers
Answer:
Choose the odd one *
1. Encapsulation
2. Data abstraction
3. Portable
4. PolymorphismThe default statement is optional in switch- caseChoose the odd one *
1. Encapsulation
2. Data abstraction
3. Portable
4. Polymorphism
The odd one
A. iii) Portable
B. iii)&&
C. iii) Continue
D. iv) String
E. iv)II
Explanation:
A – In this set except for the option ‘iii)Portable’, all the other ones belong to object-oriented design concepts.
B - In this set except for the option ‘iii)&&’ all the other ones belong to comparative operators.
C – In this set except the option ‘iii) Continue’ all the other ones belong to function/program execution keywords.
D – In this set except for the option ‘iv) String’ all the other ones belong to data types.
E – In this set except for the option ‘iv)II’ all the other ones belong to arithmetic operators.