What are advantages of cout and cin over printf and scanf


[A] State True or False:

a. Object oriented programming languages permit reusability of the existing code.

b. Objects are to classes as variables are to data types.

c. Structured programming languages permit functional abstraction as well as data abstraction.

d. Data is given a second class status in procedural programming languages.

e. Languages earlier than procedural programming languages made use of only global variables.

[B] Fill in the blanks: 

a. The two major components of an object are ____________ & ________________.

b. The ability of a function or operator to act in different ways on different data types is called __________.

c. The process of building new classes fron existing ones is called ____________.

d. If a class A inherits its properties from class B, then A and B are known as ____________ class and _____________, respectively.

e. Pascal and C are __________ languages , whereas , C++ is _________ language.

[C] Answer the following:

a. What are advantages of cout and cin over printf() and scanf() ?

b. Write the program to enter the name of student, his three subject marks using cout and cin and display the student name and marks?

c. What is the advantages of referencing?

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: What are advantages of cout and cin over printf and scanf
Reference No:- TGS01261208

Expected delivery within 24 Hours