Sunday 3 July 2016

bca2030 smu bca spring 2016 (jul/aug 2016 exam) IInd sem assignment

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
if urgent then call us on 08791490301, 08273413412

Spring 2016
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 be altered during program execution.

Program to swap two numbers without using a temporary variable
# include


2 Differentiate between While and Do-While loop.

Answer: While loop
Syntax: while (condition expression)
{
Statement1;


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 programmers to group program code under one name and invoke them whenever required

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


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 structure (

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

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
if urgent then call us on 08791490301, 08273413412



No comments:

Post a Comment