Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger

Wednesday, February 6, 2008

MCA Important Questions


Unit I
Explain about Object Oriented Programming principles?
What is Object Oriented paradigm?
What is OOPS? What is its need?
Differentiate Object Orientation with Procedure Orientation?
Explain various programming paradigms?


Unit II
Difference between “C structure” and “C++ structure”
Why is it best to use inline functions instead of plain old # define macros?
How to tell the compiler to make a non-member function inline?
How to tell the compiler to make a member function inline?
Comapare C++ with C
What is diff between malloc()/free() and new/delete?
What is passing by reference?
In a printf statement, what are the codes for integer? float? string? How can you choose how many numbers occur before and after the decimal point for a float? How can you pad zeroes to the beginning of an integer to make it a specific length?
What are the two steps that happen with delete p?
What are the advantages of new operator than malloc in C?
Explain about the dynamic memory allocation and de-allocation in C++.



Unit III
What do you mean by Data abstraction?
Diffrence between a “assignment operator” and a “copy constructor”.
What is the difference between overloading and “overridding”?
Explain about the friend function with a suitable example.
What are the access privileges in C++? What is the default access level?
What is destructor?
What is the default data hiding type for a class? Why are data members hidden? How would you access them?
What is common and what is the difference between implementations of the copy constructors, initialization and overloaded assignment operators?
What is a local class? Why can it be useful?
Can a copy constructor accept an object of the same class as parameter, instead of reference of the object?
What is a class? What is an object?
What is encapsulation?
Explain about static inner classes with a program.
What is a class? How do you define class in C++?
Explain about the data members and member functions of a class?
Explain about access control mechanism in C++?
What do you mean by Encapsulation and explain in detail.
Explain about friend and inline functions?



Unit IV
What’s the deal with operator overloading?
What are the benefits of operator overloading?
What are some examples of operator overloading?
What operators can/cannot be overloaded?
What is polymorphism? Explain about different types of polymorphism in C++ with suitable examples.
What is polymorphism? What constructions in C++ allow to say that this language supports polymorphism? What polymorphism is used for?
What is the difference and what is common in specificity of constructors and destructors overloading?
What is template? Explain about function templates and class templates with suitable examples.
What is operator overloading? Explain how to overload the operators in C++ by taking any five operators.



Unit V
What is multilevel inheritance? Write a program to illustrate the concept of Multilevel Inheritance.
What is multiple inheritance? Write a program to illustrate the concept of Multiple Inheritance.
Define Inheritance? How many types of inheritances are there? Explain each with suitable examples.
What do you mean by run time polymorphism and how to implement run time polymorphism using virtual functions in C++?
What is Hybrid inheritance? Write a program to illustrate the concept of Hybrid Inheritance.




Unit VI
Explain the need for “Virtual Destructor”.
Can we have “Virtual Constructors”?
Write a program to illustrate the concept of virtual base class with example program.
How to implement run time polymorphism using virtual functions.
When should my destructor be virtual?
What is a “virtual constructor”?
What’s the difference between how virtual and non-virtual member functions are called?
Explain about the Virtual functions in C++?
Explain about the abstract classes in C++?




Unit VII
Why does input seem to process past the end of file?
Should we end output lines with std::endl or ‘\n'?
How can we provide printing for an entire hierarchy of classes?
How can we open a stream in binary mode?
How can we “reopen” std::cin and std::cout in binary mode?
Explain about console I/O and formatted I/O streams in C++.
How can we write/read objects of my class to/from a data file?
Why should we use iostream instead of the traditional cstdio?
How can we get std::cin to skip invalid input characters?


Programming Questions
Write a program to change the case of each word in a file to initial capitals
Write a program to concatenate the two given strings?
Write a program to count the no of lines in given text file.
Write a program that reverses the order of the characters in a string.
A palindrome is a word or group of words that read the same forward and backward. For example “madam” or “wow.” Write a program that takes a string argument from the command line and prints whether the string was a palindrome or not.
Write a program to merge the contents of two given files ?



Unit VIII
Write a program to illustrate the exception handling mechanism in C++
Explain about try, catch, throw keywords in C++?
What are some ways try / catch / throw can improve software quality?
How can we handle a constructor that fails?
How can we handle a destructor that fails.
What is an Error and Exception?
Explain the exception handling mechanism in C++?
How do I use exceptions?
Can I throw an exception from a constructor? From a destructor?
Why doesn’t C++ provide a “finally” construct?
What is an auto ptr and why isn’t there an auto array?
Why can’t I resume after catching an exception?
What do you mean by Stack unwinding?

Object Oriented Programming through C++

Object Oriented Programming
OOPS Web Course for JNTU MCA Ind Year I Sem
Complete Material (Best of Luck for 2008 Exams)

Wednesday, January 30, 2008

Syllabus for Academic Year 2007-2008 for MBA/MCA

For MCA Syllabus Click Here

For MBA Syllabus Click Here