Phone:+91-88823 09876

Amity MSC IT Solve Assignment Object Oriented Programming

Body: 

MSC(IT) Second Sem Assignment Questions

Object Oriented Programming

 

 

 

Assignment A

 

 

 

S. No.

Questions

Marks - 10


1 .

 Differentiate between basic data types, derived data types and user defined data types?

 

2 .

Explain mechanism in Object Oriented Programming System?

 

3 .

Explain about passing parameters to as function in Call by Value and Call by Reference and then distinguish between them?

 

4 .

What is Template? Explain the concept of Template in C++?

 

5 .

Write Short notes on:-
a) Friend Function
b) Operator Overloading
c) Inheritance
d) Abstraction
e) Pointer
f) Constructor & Destructor

 

6 .

Explain I-O Stream file?

 

7 .

Write a C++ program to create a data file with following attributes. S.No, name, age. Accept n persons information and display the same.

 

8 .

Write short note on Encapsulation and Data Binding with an Example?

 

 

 

Assignment B Case Study :

 

 

1.

Write a C++ program to find factorial of a given number using functions. 

 

2.

What are access specifier? Explain their purpose and different type of access specifier? 

 

3.

Write a C++ program to transpose a matrix using class concept. 

 

 

Assignment C

 

 

 

 

 

 

 

Question No.  1

Marks - 10


In Late binding the function calls gets resolved during

 

 

Options

 
   

Compile Time

 

Run Time

 

Both A and B

 

None of the Above

 

 

 

 

Question No.  2

Marks - 10


The value of EOF is

 

 

Options

 
   

1

 

0

 

Infinity

 

-1

 

 

 

 

 

Question No.  3

Marks - 10


Using pointers to call a function is called as

 

 

Options

 
   

call by value

 

call by reference

 

call by address

 

All the Above

 

 

 

 

Question No.  4

Marks - 10


The variable that contains address of another variable is called as

 

 

Options

 
   

Pointer

 

Arrays

 

Unions

 

None of the Above

 

 

 

Question No.  5

Marks - 10


Inheritance in C++ have default access specifier as

 

 

Options

 
   

Private

 

Public

 

Protected

 

None of the Above

 

 

Question No.  6

Marks - 10


How many values can be returned by a C++ function?

 

 

Options

 
   

1

 

Infinity

 

0

 

None of the Above

 

 

 

 

Question No.  7

Marks - 10


The array exforsys[10] can be declared using pointers as

 

 

Options

 
   

% exforsys[]

 

& exforsys[]

 

* exforsys[]

 

@ exforsys[]

 

 

 

 

 

 

Question No.  8

Marks - 10


The variables that can be used only within the function in which it is declared is called as

 

 

Options

 
   

Global Variables

 

Local Variables

 

Both A and B

 

None of the Above

 

 

 

Question No.  9

Marks - 10


The class that in C++ for file input is

 

 

Options

 
   

Ifstream

 

Ofstream

 

Both A and B

 

The class that in C++ for file input is

 

 

 

Question No.  10

Marks - 10


Which of the following is an error statement in C++ array declaration?

 

 

Options

 
   

int exforsys(10);

 

float exforsys[5][5];

 

int exforsys[5];

 

None of the Above

 

 

 

 

 

Question No.  11

Marks - 10


The members of a class are by default

 

 

Options

 
   

Private

 

Public

 

Protected

 

None of the Above

 

 

 

 

Question No.  12

Marks - 10


The header that should be included while using manipulators in C++ is iomanip.h

 

 

Options

 
   

manip.h

 

ifstream.h

 

None of the Above

 

,

 

 

 

 

 

Question No.  13

Marks - 10


The header file that must be included while using cout function in a C++ program is

 

 

Options

 
   

conio.h

 

math.h

 

iostream.h

 

None of the Above

 

 

 

 

 

Question No.  14

Marks - 10


The other name for external variables in C++ is

 

 

Options

 
   

static variables

 

register variables

 

global variables

 

None of the Above

 

 

 

 

 

 

 

Question No.  15

Marks - 10


A function in a C++ program can be called

 

 

Options

 
   

Only Once

 

Cannot be called at all

 

Any number of times

 

None of the Above

 

 

 

 

 

 

Question No.  16

Marks - 10


Which of the following denotes feature of OOPS?

 

 

Options

 
   

Inheritance

 

Encapsulation

 

Polymorphism

 

All the Above

 

 

Question No.  17

Marks - 10


What is used to convert C++ source code into object modules?

 

 

Options

 
   

Compiler

 

Linker

 

Both A and B

 

None of the Above

 

 

 

 

 

 

 

 

 

 

 

Question No.  18

Marks - 10


Which of the looping structure in C++ check condition at the beginning of loop?

 

 

Options

 
   

do-while

 

while

 

Both A and B

 

None of the Above

 

 

 

 

Question No.  19

Marks - 10


A condition that must be true on exit from a member function if called as

 

 

Options

 
   

Precondition

 

Post-condition

 

Both A and B

 

None of the Above

 

 

 

 

Question No.  20

Marks - 10


The method that is used for writing characters in C++ program is

 

 

Options

 
   

put

 

get

 

write

 

None of the Above

 

 

 

 

 

Question No.  21

Marks - 10


Which of the following denote incorrect data type in C++?

 

 

Options

 
   

real

 

double

 

float

 

int

 

 

 

Question No.  22

Marks - 10


The isolation of data from direct access by a C+ program is called as

 

 

Options

 
   

Data Hiding

 

Data Isolation

 

Data Encapsulation

 

None of the Above

 

 

Question No.  23

Marks - 10


Reference to its own class can be accepted by

 

 

Options

 
   

simple constructorcopy constructor

 

copy constructor

 

Both A and B

 

None of the Above

 

 

 

 

Question No.  24

Marks - 10


What is the value of variable z when the following program segment ends? int z; for(z=0; z<50; z++) {}

 

 

Options

 
   

51

 

49

 

0

 

50

 

 

Question No.  25

Marks - 10


The actual implementation is present in

 

 

Options

 
   

declaration

 

definition

 

Both A and B

 

None of the Above

 

 

 

 

 

Question No.  26

Marks - 10


Which of the following OOPS concepts are used with cin and cout?

 

 

Options

 
   

Encapsulation

 

Data Hiding

 

Operator Overloading

 

None of the Above

 

 

 

 

Question No.  27

Marks - 10


The friend function of a class in C++ can access

 

 

Options

 
   

Private members of the class

 

protected members of the class

 

Both A and B

 

None of the Above

 

 

 

 

 

Question No.  28

Marks - 10


A function defined within a class is called as

 

 

Options

 
   

Member Function

 

Class Function

 

Object Function

 

None of the Above

 

 

 

 

 

Question No.  29

Marks - 10


The private member in derived class

 

 

Options

 
   

Cannot be inherited

 

Can be inherited at all instances

 

Can be inherited only if the derived class is inheriting from base class with private access level

 

None of the Above

 

 

 

 

 

Question No.  30

Marks - 10


Which of the following denote types of polymorphism in C++?

 

 

Options

 
   

Virtual function

 

Function overloading

 

Operator Overloading

 

All the Above

 

 

 

 

Question No.  31

Marks - 10


An instance of a user-defined type is called

 

 

Options

 
   

Class

 

Object

 

Method

 

None of the Above

 

 

 

 

Question No.  32

Marks - 10


Which of the following can be used to initialize a newly declared variable from an existing variable?

 

 

Options

 
   

Virtual Function

 

Namespaces

 

copy constructor

 

None of the Above

 

 

 

 

Question No.  33

Marks - 10


The member functions of a class can be defined outside the class using

 

 

Options

 
   

Extraction Operator

 

Insertion Operator

 

Scope resolution operator

 

None of the Above

 

 

 

 

Question No.  34

Marks - 10


The output of operation 20%3 is

 

 

Options

 
   

6

 

2

 

1

 

4

 

 

 

 

Question No.  35

Marks - 10


A template can be instantiated by

 

 

Options

 
   

Explicit Instantiation

 

Implicit instantiation

 

Both A and B

 

None of the Above

 

 

Question No.  36

Marks - 10


A function named as exforsys has three implementations associated with it. This means the function exforsys is

 

 

Options

 
   

Overloaded

 

Overriding

 

Both A and B

 

None of the Above

 

 

 

 

Question No.  37

Marks - 10


Which of the following denote bitwise operators of C++?

 

 

Options

 
   

^

 

<<

 

~

 

All the Above

 

 

 

 

Question No.  38

Marks - 10


Virtual functions are defined in

 

 

Options

 
   

Derived class

 

Base class

 

Both A and B

 

None of the Above

 

 

 

 

Question No.  39

Marks - 10


The data members and member functions that are only available to derived classes are

 

 

Options

 
   

private

 

public

 

protected

 

None of the Above

 

 

 

 

Question No.  40

Marks - 10


Which of the following remains static in a C++ program?

 

 

Options

 
   

Class

 

Object

 

Both A and B

 

None of the Above

 

 

 

 

 

 

Title:
Amity MSC IT Solve Assignment Object Oriented Programming (General)
Short Name or Subject Code:  Object Oriented Programming
Short Description:  MCA 3RD SEM
University:  Amity
Select Type: 
Service Type:  Assignments
Select Semester:  Semester- II Semester- III Select Cource:  Msc-IT MCA
commerce line item type: 
Price: 
₹300.00
Product: