Get fully solved assignment. Buy online from website
online store
or
plz drop a mail with your sub code
we will revert you within 2-3 hour or immediate
Charges rs 125/subject and rs 625/semester only.
if urgent then call us on 08791490301, 08273413412
Fall
2015
Bca2030
1 What is a
variable? Write a program that accepts two numbers from the user and swaps the
two numbers without using a temporary variable.
Answer: The variable
is a name given to a particular location in the memory and the value stored in
a variable can
2 Differentiate
between While and Do-While loop.
Answer: While loop
Syntax:
while (condition expression)
{
Statement1;
Statement
2;
}
In
the above example, condition expression is evaluated and if the condition is
true, then the statement1 and statement2 are executed. After execution, the
condition is checked again. If true, the
3 Define
Function. Write a program to calculate nCr using function.
Answer: Functions
provide an easy means to organize the programs into smaller modules and use
them again without rewriting all the code. It enables reuse of program code.
Functions enable
4 What are the
advantages of Polymorphism? How it can be implemented?
Answer: Advantages of Polymorphism
1.) Code re-usability: Using the code
written somewhere in program.
Until C, Code re-usability can be
achieved using making it into an function. Then the function would be called
whenever it is needed. But in OOP, function is wrapped up into class. Required
code cannot
5 How do you
define structure in C++. Write a C++ program that implements the structure and
enables to store at least 100 product data.
Answer: Structure is a
feature in C++ that enables you to define a user-defined datatype. Once you
specify the definition of the structure, you can create variables of that
structure. In the above definition, we have defined a structure using the
keyword struct followed by the name of the
6 What is Class
in C++? Write a C++ program to implement class rectangle and find its area.
Answer: Classes provide users a
method to create user defined data types. We have seen two types of user
defined data type structures and enumeration in the previous unit. Both are
primarily used for modeling data only. In several real life situations, you
would require to model
Get fully solved assignment. Buy online from website
online store
or
plz drop a mail with your sub code
we will revert you within 2-3 hour or immediate
Charges rs 125/subject and rs 625/semester only.
if urgent then call us on 08791490301, 08273413412
No comments:
Post a Comment