What will be the output of following pseudo code?
1 Integer i, j, sum,
2 Set sum=0,
n=7
B Repeat for i=1to n
4. sum
sum=sum +(i*i) )
5 End loop
6 Print sum
7
Answers
Explanation:
is a newly introduced Round in Capgemini Placement Test. Most websites have uploaded random questions for this section, don’t trust them as PrepInsta provides the latest and actual questions and syllabus.
is a newly introduced Round in Capgemini Placement Test. Most websites have uploaded random questions for this section, don’t trust them as PrepInsta provides the latest and actual questions and syllabus.
Capgemini doesn't care if you're non CS/IT student, they will anyways as you Data Structures. According to them you're applying to an IT company, you must know coding.
Capgemini doesn't care if you're non CS/IT student, they will anyways as you Data Structures. According to them you're applying to an IT company, you must know coding.
is a newly introduced Round in Capgemini Placement Test. Most websites have uploaded random questions for this section, don’t trust them as PrepInsta provides the latest and actual questions and syllabus.
Capgemini doesn't care if you're non CS/IT student, they will anyways as you Data Structures. According to them you're applying to an IT company, you must know coding.
Answer:
56
Explanation:
sum = 0
n=7
I=1 to 7
i j sum
1<=7 1<=0
2<=7 1<=1. 0+1 =1
2<=1