How To Exam?

a knowledge trading engine...


Biju Patnaik University of Technology 2006 B.Tech Computer Science and Engineering c - Question Paper

Friday, 24 May 2013 01:25Web

C++-2006
Third semester exam-2006
ques. 1
ans the subsequent question: 2×10
(a)
What is the purpose of the preprocessor directive #include?
(b)
discuss 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 various among public, protected and private members of a class?
(g)
elaborate 2 uses of the & symbol in C++?
(h)
Write a C++ statement to describe a 10 element integer array called MyArray.
(i)
Which operators are used to access memory?



(j)
What is the output produced by the subsequent code?
for (int i=0;i cout<<”Average:”<ques. 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. presume maximum of 200 customers in the bank. (5)
(b)
discuss the typecasting. elaborate explicit and implicit kind conversion? (5)
ques. three
(a)
How are static functions and friend functions invoked in C++ program? (5)
(b)
Write a C++ program to compute the sum of the 1st 7 terms of the series provided 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+……..
ques. 4
(a)
elaborate the various ranging from local object and global object? (5)
(b)
Write a program to compute sum of digits of entered number using indirect recursion. Recursion should be in ranging from main() and member function? (5)
ques. 5
(a)
What is References in C++? discuss 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)
ques. 6
(a)
discuss the use of constructors and destructors function in C++. (5)
(b)
Write a C++ program to compute the power of a provided number. describe userdefine function power(). Mark it inline. (5)
ques. 7
(a)
discuss the dynamic memory allocation mechanism using C++ features. (5)
(b)
Write a C++ program to display the subsequent trend. Your programs should use at lowest 1 for loop. (5)
1 two three four
5 six seven 8
9 10 11 12
ques. 8
(a)
What is the various ranging from a static array and a dynamic array?
(b)
What is the output from the subsequent segment of C++ code
Int x=5, y=7, z=1;
cout<(c)
elaborate the local classes?
(d)
You are provided the subsequent declaration:
Int A[4];
After executing the subsequent 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)








( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Biju Patnaik University of Technology 2006 B.Tech Computer Science and Engineering c - Question Paper