Computer Science, asked by deshmukhtanu100, 7 months ago

class entity

{

private: integer a, b public: integer c

function entity( ) { a = 0; b=0} function compare ( )

{ if (a>b) return 1; return 0

}

}

function main ( )

{

entity black

int value, value2 = 5

value = black.compare( ) // Statement 1 black.c = value2 //Statement 2

print black.a //Statement 3

}

Choose the correct answer. A pseudo-code which is similar to that of C++ and self-explanatory. An accessible member function or data member for an object are accessed by the statement objectname.functionname or objectname.datamembername respectively.

(a)Statement 1 (b)Statement 2 (c)Statement 3 (d)None of these

Answers

Answered by kirankaurspireedu
5

Answer:

Statement B

Explanation:

  • a self-explanatory pseudo-code that is identical to that of C++. The statements objectname  functionname either a objectname datamembername, respectively, are used to retrieve an object's accessible member function as well as data member.
  • Pseudocode is a loose way of describing programming that doesn't need to adhere to any particular rules of syntax or underlying technology.
  • It is used to develop a program's rough draught or blueprint.
  • Pseudocode condenses a program's flow but omits supporting information.
  • It is a casual and improvised method of building programmes where you depict the course of events and instructions inside a way that is simple for others to grasp.

#SPJ2

Similar questions