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


Please Help Members By Posting Answers For Below Questions

Explain the difference between class and struct in c++?

590


Is c++ the hardest programming language?

640


Can we use clrscr in c++?

533


Explain differences between new() and delete()?

617


What's the best free c++ profiler for windows?

618






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

1788


Explain the concept of copy constructor?

619


How one would use switch in a program?

613


If all is successful, what should main return a) 0 b) 1 c) void

558


Why is main function important?

585


Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.

617


Difference between pointer to constant and constant pointer to a constant. Give example.

642


What is scope in c++ with example?

628


What is functions syntax in c++?

617


What is the difference between a definition and a declaration?

578