Q1
On the screen how do you write the following words?
she sells seashells by the seashore
(a) all in one line
(b) in three lines
Q2
Write a program that asks interactively the user’s name and age and
responds with
Hello name, next year you will be next_age.
where next_age is age + 1
Q3
For the different values of n, what is the output?
printf(“%x %c %o %d”,n,n,n,n);
(a) n = 67
(b) n = 20
(c) n = 128
(d) n = 255
(e) n = 100
Q4
What will be the output of the following program?
int main()
{
char a,b,c;
scanf(“%c %c %c”,&a,&b,&c);
printf(“a=%c b=%c c=%c”,a,b,c);
return 0;
}
[Note: The user input is:ABC DEF GHI]
What is the difference between a baller and a reference in C++?
What is the size of pointer ? Also size of pointer in 64 bit pointer
What is virtual destructors? Why they are used?
What are guid?
When do we run a shell in the unix system? How will you tell which shell you are running?
Define pre-condition and post-condition to a member function in c++?
write a programming using for loop in c++ to generate diamond trangel?
What is an operator function? Describe the function of an operator function?
Explain overriding.
Explain the properties and principles of oop.
What is polymorphism in c++? Explain with an example?
What is the purpose of templates in c++?