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 1234Identify 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 671Write a program to read two numbers from the keyboard and display the larger value on the screen
1 334
What is the difference between the functions memmove() and memcpy()?
What is a class and object?
Why do we need c++?
What is a loop? What are different types of loops in c++?
How would you find out if a linked-list is a cycle or not?
write a program that will accept a number and print.its equivalent in words the maximum input number is 9999
What is long in c++?
Why do we need constructors in c++?
What does and I oop and sksksk mean?
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
Is it possible to provide special behavior for one instance of a template but not for other instances?
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?
Is string part of stl?
What is multilevel inheritance?
What are vectors used for in c++?