Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

What are manipulators? Write a cout statement using manipulator to print a float number right justified in the width of 10 columns with precision of 2 digits.


“OOP follows the bottom up approach of programming” Explain in short


Can a member function be declared as private member of a class? How can it be accessed?


Write the function for the following operations, using appropriate OOP concept such that the code is minimized.

Find product of two numbers

Find product of three numbers.

Find product of four numbers


Give the syntax for pass by reference? Compare pass by reference and pass by pointer(address), and conclude which one is preferable and why?


What problem may arise with the following functions in a program ? Explain.

int fun();

Int fun(int x=0 ,int y=0);


Choose the correct alternative and justify it.

The advantage of inline function is

A. it takes less memory

B. it takes less time to compile

C. it takes less time to execute

D. It is easy to write.



“Compiler always provides an implicit default constructor for every class”. True or False. Justify your answer


Is it allowed to define constructor in private section of the class?If no, then give explanation for the same. If yes then explain how will it be accessible.



When do need to include the explicit destructor in a class?Explain with example. 

 

Write a program to define a class A with data member x and a parameterised constructor to initialize it. Define a class B with data member y and a parameterised constructor to initialize it. Write a function to calculate and print LCM of x & y.



LATEST TUTORIALS
APPROVED BY CLIENTS