How To Exam?

a knowledge trading engine...


University of Pune 2009 PG Diploma PGDCM-INTRODUCTION TO ‘C’ AND C++ LANGUAGE (2008 Pattern) - Question Paper

Wednesday, 24 April 2013 09:45Web

Total No. of ques. : 8] [Total No. of Printed Pages : three [3689]-103
P. G. D. C. M. (Semester - I) exam - 2009 INTRODUCTION TO 'C' AND C++ LANGUAGE (2008 Pattern)
Time : three Hours] [Max. Marks : 70

Instructions :
(1) ques. No. one is compulsory.
(2) Solve any 5 from the remaining.
(3) State suitable assumptions.

Q.1) What will be output of the subsequent ? provide explanation : [10]
(a) void main( )
{
char S[ ] = "PUNE UNIVERSITY";
char *P;
P = & S[10] – 5;
while(*P)
printf("%C",*P++);
}

(b) main( )
{
int num = 1024, pos = 3, bit;
bit = (num << 2) &1;
bit = bit >> pos;
printf("%d", bit);
}

(c) main( )
{
int a, b, c;
a = b = c = –1;
c = + + a || + + b && ++c;
printf("%d %d %d", a, b, c);
}

(d) main( )
{
int x=1;
switch(x)
{
case two : printf("one");
default : printf("two");
case one : printf("three");
}
}

Q.2)
(A) Write a program using 'C' to obtain out the sum of odd numbers and sum of even numbers in an array of 10 integers. Accept numbers from user. [06]
(B) discuss what is manipulator and scope resolution operator in C++ [06] .

Q.3) Write a program using 'C' to accept 2 numbers and display prime factors of the larger number entered.

Q.4)
discuss with suitable example : [12]
(a) Parameterized Constructor in 'C++'
(b) Storage Classes in 'C'

Q.5) Write a program using 'C' to accept string and display length of string. Also check whether a string is palindrome or not. [12]

Q.6)
(A) discuss various kinds of Inheritance used in C++ [06] .
(B) Static Data Members in C++ [06] .

Q.7)
(A) Write a program using C to accept a number and print its factorial value. [06]
(B) Write a note on friend function in C++[06] .

Q.8) Write a program to accept a number and print whether it is prime or not. [12]


( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER University of Pune 2009 PG Diploma PGDCM-INTRODUCTION TO ‘C’ AND C++ LANGUAGE (2008 Pattern) - Question Paper