0% found this document useful (0 votes)
80 views1 page

X X X X X: Q13. When The Expression

This document discusses calculating an alternating series with terms involving x/i and determining the correct operation to insert in a flowchart. The series involves adding terms of the form (-1)^i * x/i to the running sum at each iteration i from 0 to n. The correct operation to insert in the flowchart is "sum + ((-1)^i * x/i) → sum".

Uploaded by

Marvin Marquez
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views1 page

X X X X X: Q13. When The Expression

This document discusses calculating an alternating series with terms involving x/i and determining the correct operation to insert in a flowchart. The series involves adding terms of the form (-1)^i * x/i to the running sum at each iteration i from 0 to n. The correct operation to insert in the flowchart is "sum + ((-1)^i * x/i) → sum".

Uploaded by

Marvin Marquez
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Q13.

When the expression 1

1 1 1 1 1 + 2 3 + 4 ... n x x x x x

is calculated, which of the


A

following should be inserted in the process box below? Start Input n and x 0 sum 0i Operation i: 0, 1, n
A
At the start of the loop, repetition conditions indicate variable name: initial vale, increment, final value.

in the flowchart shown

Operation Output sum End a) sum + (( 1) i x i ) sum c) sum + (( 1) i +1 x i ) sum b) sum + (( 1) i x i ) sum d) sum + (( 1) i +1 x i ) sum

Q14. Which of the following stands for the processor architecture in which a single stream

You might also like