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]
Answer Posted / dede
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the difference between class and struct in c++?
Is c++ the hardest programming language?
Can we use clrscr in c++?
Explain differences between new() and delete()?
What's the best free c++ profiler for windows?
Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300
Explain the concept of copy constructor?
How one would use switch in a program?
If all is successful, what should main return a) 0 b) 1 c) void
Why is main function important?
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
Difference between pointer to constant and constant pointer to a constant. Give example.
What is scope in c++ with example?
What is functions syntax in c++?
What is the difference between a definition and a declaration?