sujeesh


{ City }
< Country > india
* Profession *
User No # 28053
Total Questions Posted # 0
Total Answers Posted # 5

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 33
Users Marked my Answers as Wrong # 52
Questions / { sujeesh }
Questions Answers Category Views Company eMail




Answers / { sujeesh }

Question { IBM, 8879 }

How many sub queries can you combine together ?


Answer

32

Is This Answer Correct ?    4 Yes 4 No

Question { CTS, 67512 }

void main()
{
for(int i=0;i<5;i++);
printf("%d",i);
}

What is the output?..


Answer

We can't declare a variable in any part of the program
rather than the declaration part.
It doesn't matter whether you use a loop to print or not.
When the statements which are to be executed begins(Here the
looping statement)no declaration is possible in C.
You can do it in C++,C#,java etc.

Is This Answer Correct ?    6 Yes 15 No


Question { 27968 }

Given an int variable n that has been initialized to a
positive value and, in addition, int variables k and
total that have already been declared, use a do...while
loop to compute the sum of the cubes of the first n whole
numbers, and store this value in total . Thus if n equals
4, your code should put 1*1*1 + 2*2*2 + 3*3*3 + 4*4*4 into
total . Use no variables other than n , k , and total .


Answer

#include
#include
#include
main()
{
int n=3;
int k=1,total=0;
do
{
total=total+(pow(k,3));
k=k+1;
}
while(k<=n);
printf("%d",total);
getch();
return 0;
}

Is This Answer Correct ?    3 Yes 10 No

Question { 24719 }

Is it possible to update a primary key value? If not, what
is the error code given? If yes, can more than 1 primary
key column be updated at a time?


Answer

Primary key column cannot be updated,because it is used as
the key field to find out a row uniquely.

Is This Answer Correct ?    17 Yes 22 No

Question { 15145 }

main()
{
char c;
for(c='A';c<='Z';c++)
getch();
}


Answer

The initial condition is c='A'.
Here the the statement "getch();" is the body of the loop.
it is executed once and c becomes 'B' and again the loop is
executed.
This is done,I mean the loop is executed 26 times.
when c become 'Z' the loop is executed one more time(because
the condition is c<='Z')and then the program exit.

Is This Answer Correct ?    3 Yes 1 No