6,068 views
11 votes
11 votes

Which one of the following are essential features of an object-oriented programming language?

  1. Abstraction and encapsulation

  2. Strictly-typedness

  3. Type-safe property coupled with sub-type rule

  4. Polymorphism in the presence of inheritance

  1. I and II only
  2. I and IV only
  3. I, II and IV only
  4. I, III and IV only

4 Answers

5 votes
5 votes

B

There have been several attempts at formalizing the concepts used in object-oriented programming. The following concepts and constructs have been used as interpretations of OOP concepts:

2 votes
2 votes
ans should be B

object-oriented programming language is object based programming language +abstration+inheritance.

for any OOP language ABSTRACTION and INHERITANCE are compulsory.
2 votes
2 votes

Type safety is the extent to which a programming language discourages or prevents type errors. A type error is erroneous or undesirable program behaviour caused by a discrepancy between differing data types for the program's constants, variables, and methods (functions), e.g., treating an integer (int) as a floating-point number (float).

https://stackoverflow.com/questions/805168/what-is-a-strictly-typed-language

Hence, II and III are clearly not essentials.

I & IV on the other hand form an OOPs language.

Answer : (B)

Answer:

Related questions

12.6k
views
3 answers
13 votes
Kathleen asked Sep 22, 2014
12,563 views
A common property of logic programming languages and functional languages is:both are procedural languages both are based on $\lambda$-calculusboth are declarativeboth use Horn-clauses
1.3k
views
2 answers
5 votes
makhdoom ghaya asked Oct 26, 2015
1,302 views
Consider the class of object oriented languages. Which of the following is true?Pascal is an object oriented language.Object oriented ... declarative programming languages.Parallelism cannot be realized in object oriented languages.
4.8k
views
2 answers
6 votes
Ishrat Jahan asked Oct 31, 2014
4,770 views
Match the following concepts and their best possible descriptions. Concept Descriptioni.overloadinga.allows to define a class to have properties of another classii.friendb.defining a set of similar ... vi-di-b, ii-e, iii-c, iv-f, v-g, vi-s
990
views
2 answers
0 votes
go_editor asked Mar 26, 2020
990 views
The data hiding is taken care by :AbstractionEncapsulationModularityInheritance