Question

A computer program is used to read N and print the sum 1² + 2² + 3² +.....+ N². If N = 10, the print out will show the number

a.

100

b.

10

c.

385

d.

285

Answer: (c).385

Interact with the Community - Share Your Thoughts

Uncertain About the Answer? Seek Clarification Here.

Understand the Explanation? Include it Here.

Q. A computer program is used to read N and print the sum 1² + 2² + 3² +.....+ N². If N = 10, the print out will show the number

Similar Questions

Explore Relevant Multiple Choice Questions (MCQs)

Q. Which of the following arithmetic operations requires only one operand in FORTRAN 77?

Q. Which of the following is not a valid variable name in C?

Q. Which of the following array names is invalid in Fortran 77?

Q. LPEPSI = 2
2PEPSI = LPEPSI * LPEPSI + 1
GOT TO (3, 5, 9, 11, 13, 17, 21, 23) LPEPSI

After the execution of above statement the control is transferred to statement number

Q. Which of the following is not an application software?

Q. Which of the following is not a DTP program?

Q. Which of the following array names in Fortran 77 is invalid?

Q. E-mail can be used to send text, graphics, and video.

Q. In 8085, which instructions are useful for writing and using subroutines?

Q. In a RAM chip with a total of 8096 words, the word addresses range from

Q. The loops ' for , 'while' , 'do-while' are used in

Q. Which of the following is not a valid arithmetic statement in C?

Q. The symbol ! in Java means

Q. The signal in 8086 are in minimum mode when

Q. If it is desired to tabulate number of students in a class in Fortran language, a proper variable name is

Q. Let JCOKE = 20 and LPEPSI =15. Consider the statement

IF(2* JCOKE. LE. LPEPSI)
JCOKE = JCOKE + 5
JCOKE = JCOKE + 3

The value of JCOKE after the execution of above statement will be

Q. In Pascal if I = 45, I div 10 * 10 =

Q. X COPY is an internal DOS command.

Q. Consider the following expressions in Java:

int a, b, c,
a = 40;
b = a++ ;
c = ++a ;

Now the values of a, b, c are

Q. Which of the following is not correct in C?

Recommended Subjects

Are you eager to expand your knowledge beyond Electronics and Communication Engineering? We've handpicked a range of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of various subjects. Happy exploring!