Ticker

6/recent/ticker-posts

BCA 2nd Year 2017 C++ PROGRAMMING Question Paper

BCA 2nd Year C++ PROGRAMMING Previous Question Paper

C++ PROGRAMMING Question Paper

C++ PROGRAMMING Question Paper

2017

BCA 2nd Year 2017 C++ PROGRAMMING Here I am going to provide you Question Paper of BCA 2nd year DBMS Papers for exams absolutely Free.

Part-A 10 x 1/5 = 15

Q.1 The && and operator operate on the value type?
Q.2 What is the purpose of the default case in the switch statement?
Q.3 Which type of function call can be used in an expression?
Q.4 What is the difference between C & C++ arrays?
Q.5 When a member function can be declared static?
Q.6 How a base-class pointer can be converted to a driven class member?
Q.7 What is the purpose of the scope resolution operator?
Q.8 Consider the following code –
if (number > = 0)
      if (number > 0)
      cout << "number is positive\n";
else
      cout << "number is negative\n'';
what will the output if number = 0?

Q.9 In the following code find error containing lines.
int j = 0;
while (j < 10) }
j++;
if (j == 5) continue loop;
cout <<“ jis " << j; }

Q.10 What would be the output of the following:
int main ()
{
      int x, y = 10, z = 10 ;
      X = (y == z);
      cout << x;
      return 0;
}

Part-B 5 x 3 = 15

Q.11 Given the array declaration
    int x [10];    
    what does * (x + 3) mean?

Q.12 In which order the operator will evaluate in the following:
    y = a* ++b + m/z;

Q.13 Differentiate the following statements:
    const int M = 100;
    # define M 100

Q.14 A character array name is defined as follows:
    Char name [30] = “Programming”;    
    what will the value of m and n?
    int m = size of (name);
    int n = strlen (name);

Q.15 Give the output of the following:
    int n = 0;
    for (int i = 1; i< = n; i++)
        cout <<1;

Part-C 7,7,6 = 20

UNIT – I
Q.16 Write a function that creates a vector of user-given size M using a new operator.

OR

Q.16 Can we have more than one construction in a class? If yes, explain the need for such a situation with an example.

UNIT – II
Q.17 Explain Ambiguity Resolution in Inheritance with a suitable example.

OR

Q.17 When do we make a virtual function “Pure”? What are the implications of making a function a pure virtual function?

UNIT – III
Q.18 What is the difference between opening a file with a constructor function and opening a file with an open () function? When is one method preferred over the other?

OR

Q.18 Write short note on:
(a) Containership
(b) Inheritance
(c) Conceptual framework