Showing posts with label BCA-3rd Sem. Show all posts
Showing posts with label BCA-3rd Sem. Show all posts

Thursday, November 15, 2018

Punjabi University Patiala BCA 3rd Semester. Punjabi Question Paper by 124 Study App

PUNJABI QUESTION PAPER 2017-18
Punjabi University Patiala BCA 3rd Semester. c++ Question Paper by 124 Study App 



Punjabi University Patiala BCA 3rd Semester. c++ Question Paper by 124 Study App

Punjabi University Patiala BCA 3rd Semester. c++ Question Paper by 124 Study App



Punjabi University Patiala BCA 3rd Semester. DBMS Question Paper by 124 Study App


Punjabi University Patiala BCA 3rd Semester. DBMS Question Paper by 124 Study App 

ALL BCA 3rd Semester Monthly Test Question paper of Punjabi University Patiala

C++  BCA 3rd Semester Monthly  Test Question paper of Punjabi University Patiala ,Baba Jogi peer Neighborhood campus ,RALLA 

------------------------------------

DBMS, BCA 3rd Semester Monthly  Test Question paper of Punjabi University Patiala ,Baba Jogi peer Neighborhood campus ,RALLA 

DESC.MATHEMATICS   BCA 3rd Semester Monthly  Test Question paper of Punjabi University Patiala ,Baba Jogi peer Neighborhood campus ,RALLA 

Tuesday, November 6, 2018

Question Paper 2017 of BCA 2nd Year of Punjab University Question paper


Punjabi University Question Paper
Course: BCA
OBJECT ORIENTED PROGRAMMING (USING C++)
Time allowed: 3 Hours
Max. Marks: 90

Study Materials Description : 2017 Punjabi University B.C.A Computer Application Object Oriented Programming (Using C++) Question Paper 2017 of BCA 2nd Year of Punjab University Question paper

ATTEMPT FIVE QUESTIONS IN ALL, SELECTING TWO QUESTIONS EACH FROM SECTION - A AND SECTION – B SECTION C IS COMPULSORY.

SECTION - A

1. Differentiate between

(a) Procedural Analysis and Object oriented analysis.

(b) Data encapsulation and Data Inheritance. (9,9)

2.(a) What are pre-processor directives? Explain their use with the help of an example.

(b) Explain the structure of an object oriented C++ program.

(c) Explain the use of function main(). (7,7,4)

3. (a) Define a class "ACCOUNT". Include following members:

Data Members: Name of Depositor, Account No., Type of Account, Balance Amount.

Member Function: To assign initial values, deposit amount, with draw after checking balance, To display name and balance. Write main Program to test the program for 10 customers.

(b) What are array of objects ? Explain with example with detail. (12,6)

4.(a) Differentiate between Pass By Value and Pass By Reference.

(b) What are different types of function declarations? How will you declare a function outside the class?

(c) Explain copy constructor with the help of an example. (6, 6, 6)


SECTION – B

5. (a) What is function overloading? Write a program in c++ which has a Function add that is able to concatenate two strings, if values passed Are strings and can perform addition, if values are numbers.

(b) Explain inline functions and also create one. (12, 6)

6. (a) What are abstract classes? Explain their use.

(b) How can protected members of a class become inheritable?

(c) Explain the concept of nested classes. (6, 6, 6)

7. Differentiate between

(a) Private & Public Inheritance

(b) Stacks and Queues

(c) Multiple and multilevel inheritance

8. (a)What is linked list? What are its advantages and disadvantages ?

(b) Write a program to create a linked list and perform-

(i) Insertion – at the beginning, at the end and in between

(ii) Deletion – at given position

(iii)Display elements.

SECTION – C

9. (a) What is data hiding?

(b) Explain input and output streams.

(c) Explain scope resolution operator.

(d) What are destructors? Give example.

(e) What is operator overloading?

(f) Differentiate between single and multiple inheritances.

(g) What are base and derived classes?

(h) What are various methods to traverse a tree?

(i) Explain the concept of a class. (9*2=18)

Monday, November 5, 2018

Advantages and Disadvantages Of Object Oriented Programming C++ By 124 Study App




Sunday, November 4, 2018

What are variables? List C++ rules for variables naming.


The names of variables in the C++ language are referred to as identifiers.   The best naming convention is to choose a variable name that will tell the reader of the program what the variable represents. Variables that describe the data stored at that particular memory location are called mnemonic variables.
Rules for naming variables:
 Variable names in Visual C++ can range from 1 to 255 characters. To make variable names portable to other environments stay within a 1 to 31 character range.

 All variable names must begin with a letter of the alphabet or an
underscore( _ ).  For beginning programmers, it may be easier to begin all variable names with a letter of the alphabet.

 After the first initial letter, variable names can also contain letters and numbers.  No spaces or special characters, however, are allowed.
 Uppercase characters are distinct from lowercase characters.  Using all uppercase letters is used primarily to identify constant variables. 
 You cannot use a C++ keyword (reserved word) as a variable name.



Difference Between Static and Dynamic Binding in c++ by 124study.blogspot.in

Saturday, November 3, 2018

Operators in C++ by 124study.blogspot.in

Operators in C++ by 124study.blogspot.in

operators in C++

Types of operators

  1. Assignment Operator
  2. Mathematical Operators
  3. Relational Operators
  4. Logical Operators
  5. Bitwise Operators
  6. Shift Operators
  7. Unary Operators
  8. Ternary Operator
  9. Comma Operator

Assignment Operator ( = )


Mathematical Operators

int x=10;
x += 4 // will add 4 to 10, and hence assign 14 to X. 
x -= 5 // will subtract 5 from 10 and assign 5 to x.

Relational Operators

int x = 10;  //assignment operator
x=5;         // again assignment operator 
if(x == 5)   // here we have used equivalent relational operator, for comparison
{
 cout <<"Successfully compared";
}    

Logical Operators


Bitwise Operators


Shift Operators

  1. Left Shift Operator <<
  2. Right Shift Operator >>
  3. Unsigned Right Shift Operator >>>

Unary Operators


Ternary Operator

int a = 10;
a > 5 ? cout << "true" : cout << "false"

Comma Operator

int a,b,c; // variables declaration using comma operatora=b++, c++; // a = c++ will be done.