STL (140)
OOPS (873)
C++ General (2409) 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]
1 2040Identify the error in the following program.
#include
Write a program to display the following output using a single cout statement Maths=90 Physics=77 Chemistry = 69
2 2161Write a program to read two numbers from the keyboard and display the larger value on the screen
1 1145
What is the maximum value of a unsigned char a) 255 b) 256 c) 128
Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).
What is pair in c++?
When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?
Explain the pure virtual functions?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
Is c++ low level?
Explain static and dynamic memory allocation with an example each.
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples
Explain one method to process an entire string as one unit?
What do you mean by funtion prototype?
What is virtual base class uses?
Differentiate between an inspector and a mutator ?
How can you quickly find the number of elements stored in a static array?
How should runtime errors be handled in c++?