Roll no....................
Total No. of Questions: 07]
MB-541
MBA(Sem.-3rd
& 4th )
PROGRAMMING IN
C/C++
TIME: 03 Hours
Instruction to Candidates:
1)
Section – A is
Compulsory.
2)
Attempt any Four
questions form Section – B.
Section - A
1.
a. What
is a header file?
b. Enlist
various logical operators.
c. Give
the syntax break and continue statement?
d. What
is meant by operator overloading?
e. What
are virtual functions?
f. Find
our error , if any , in the following C program main ()
{ long num;
num=2; printf (“\n%id”, num);
}
g. Enlist
the features of C preprocessor.
h. What
is meant by polymorphism?
i. Give
the maximum length of C constants.
Section
–B
2. A
five digit number is entered through the keyboard. Write a program to obtain
the reversed number and to determine whether the original and reversed numbers
are equal or not.
3. What
will be the output of the following programs:
a. Main() { int
i=4, z=12; if(i=5|| z>50); printf(“\nDean
of students affairs”); else prinf(“\nStudent
leader”) }
b. Main ()
{ int I =4,j=-1, k=0,w,x,y,z; w=i||j||k||; x=I && j&& k;
Y=i||j&&k;
Z=i&&j||k;
Printf(“nw=%dx=%dy%dz%=%d”,w,x,y,z); }
4. Any
character is entered through the keyboard, write a program to determine whether
the character entered is a capital letter, a small case letter, a digit or a
special symbol.
5. What
is an object oriented programming? Explain the terms, object , abstraction and
encapsulation;
6. What
are strings? Write a program that will point out all the rotations of a string
typed into it.
7. Write
a flow chart to print all even and all odd numbers from one to 100
0 comments:
Post a Comment
North India Campus