Question

A computer program is used to read M and print the sum 2 + 4 + 6 + 8 +.........+ 2M. If M = 9 , the print out will show the number

a.

9

b.

18

c.

90

d.

100

Answer: (c).90

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 M and print the sum 2 + 4 + 6 + 8 +.........+ 2M. If M = 9 , the print out will show the number

Similar Questions

Explore Relevant Multiple Choice Questions (MCQs)

Q. Read the following rules for scanning Boolean expressions in Pascal

1. The expressions are scanned from left to right.
2. The operations are scanned in the order NOT, AND, OR.
3. All operators (i.e., NOT, AND and OR) are scanned together.
4. In one scanning all the operators of only one type are scanned.

Which of the above are correct?

Q. IC 74181 performs arithmetic operations when M = 1.

Q. Initially the number decimal 8 is stored. If instruction RAL is executed twice, the final number stored will be

Q. In Java 31% gives an answer

Q. Consider the following features of 'structures' in C?

1. The values of a structure variable can be assigned to another structure variable of the same type using the assignment operator.
2. One structure can be nested within another structure.
3. A variable structure can also be passed to a function.

Which of the above are correct?

Q. Assertion (A): In 8085 SP and PC are 8 bit each.

Reason (R): 8085 is an 8 bit microprocessor.

Q. Read the following statements about Java

1. It is well suited to design software which works in conjunction with internet.
2. It is cross platform language.
3. Java is close to programming language C, C ++ etc.
4. It is an object oriented.

Which of the above are correct?

Q. The expression A² + B² - 3 AB when written is Pascal should be written as

Q. Read the following statements about Excel

1. It supports many arithmetic functions like SUM, ABS, EXP, INT, MOD etc.
2. It supports many trigonometric functions.
3. It supports IRR function to calculate interest rate.
4. It supports PV function to calculate the present value of future receipts.

Which of the above are correct?

Q. Which of the following is not a key word in C?

Q. If PRIN = 200.0 and BINT = 0.0525 the result of expression INCOME = PRIN * (1 + BINT) will be

Q. If INT = 50 and LOOT = 30, the result of assignment statement SAL = INT + LOOT is

Q. Consider the following in C

1. Arithmetic operations can be performed on ints.
2. Arithmetic operations can be performed on floats.
3. Arithmetic operation can be performed on chars.

Which of the above are correct?

Q. Which of the following is the software for financial accounting?

Q. 8085 needs + 10 V supply.

Q. Which of the following is not valid integer variable in FORTRAN 77?

Q. Which of the following is not an integer constant?

Q. Assertion (A): To add 8 bit words, two 1C 74181 can be cascaded.

Reason (R): In 1C 74181 a sum greater than 15 leads to high carry out.

Q. Consider the following tasks in a micro computer

1. Receiving data and instruction
2. Performing arithmetic computation
3. Performing logical computations
4. Storing data and instructions

Which of the above are performed by ALU?

Q. Consider the following DO statement in FORTRAN 77

DO 25 J = 1, 7

The number of DO loop executions in the above statement is

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!