My Profile
Active Members
TodayLast 7 Days
more...
Awards & Gifts
Online Exams
Fresher Jobs
Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian
cities including Bangalore, Chennai, Hyderabad, Pune or Kochi
Resources
Find educational articles, blogs, discussion threads and other resources.
Colleges
Find details about any college in India or search for courses.
|
Download Model question papers & previous years question papers
|
Posted Date: 22 Oct 2009 Posted By: Gourav Kumar Satpathy Member Level: Bronze
|
2006 Biju Patnaik University of Technology B.Tech Computer Science & Engineering c++ Question paper
C++-2006 Third semester exam-2006 Question 1 Answer the following question: 2×10 (a) What is the purpose of the preprocessor directive #include? (b) Explain the concept of function overloading. (c) How many parameters can be passed to a function? (d) How is the expression (m>n? m:n) evaluated? (e) What is Inline functions in C++? (f) What is the different among public, protected and private members of a class? (g) What are two uses of the & symbol in C++? (h) Write a C++ statement to define a 10 element integer array called MyArray. (i) Which operators are used to access memory?
(j) What is the output produced by the following code? for (int i=0;i cout<<”Average:”<Question 2 (a) Create a class to specify data of customer in a bank. The data to be stored as: Account No., name, balance in the account. Assume maximum of 200 customers in the bank. (5) (b) Explain the typecasting. What are explicit and implicit type conversion? (5) Question 3 (a) How are static functions and friend functions invoked in C++ program? (5) (b) Write a C++ program to calculate the sum of the first seven terms of the series given below, where the value of X is entered from the keyboard. (5) (x-1/x)+(1/2)(x-1/x)2+(1/2)(x-1/x)3+(1/2)(x-1/x)4+…….. Question 4 (a) What are the different between local object and global object? (5) (b) Write a program to calculate sum of digits of entered number using indirect recursion. Recursion should be in between main() and member function? (5) Question 5 (a) What is References in C++? Explain how the references are used as function parameters, with example. (5) (b) Write a program to round down and round up the floating point number. (5) Question 6 (a) Explain the use of constructors and destructors function in C++. (5) (b) Write a C++ program to calculate the power of a given number. Define userdefine function power(). Mark it inline. (5) Question 7 (a) Explain the dynamic memory allocation mechanism using C++ features. (5) (b) Write a C++ program to display the following pattern. Your programs should use at least one for loop. (5) 1 2 3 4 5 6 7 8 9 10 11 12 Question 8 (a) What is the different between a static array and a dynamic array? (b) What is the output from the following segment of C++ code Int x=5, y=7, z=1; cout<(c) What are the local classes? (d) You are given the following declaration: Int A[4]; After executing the following code, show the state of the array using as many cells as you think you need: [6 points] for (int i=4;i>=0;--)A[i]=2*I; Array A INDEX i ********************************* A[i] ********************************** (2.5×4)
Return to question paper search
|
|
|
Submit Previous Years University Question Papers and make money from adsense revenue sharing program
Are you preparing for a university examination? Download model question papers
and practise before you write the exam.
|
Advertise Here
|