Tamil Nadu Board of Secondary EducationHSC Science Class 11

# Tamil Nadu Board Samacheer Kalvi solutions for Class 11th Computer Science Answers Guide chapter 7 - Composition and Decomposition [Latest edition]

## Solutions for Chapter 7: Composition and Decomposition

Below listed, you can find solutions for Chapter 7 of Tamil Nadu Board of Secondary Education Tamil Nadu Board Samacheer Kalvi for Class 11th Computer Science Answers Guide.

Evaluation - Section - AEvaluation - Section - BEvaluation - Section - CEvaluation - Section - D
Evaluation - Section - A [Pages 98 - 100]

### Tamil Nadu Board Samacheer Kalvi solutions for Class 11th Computer Science Answers Guide Chapter 7 Composition and Decomposition Evaluation - Section - A [Pages 98 - 100]

Evaluation - Section - A | Q 1. | Page 98

Suppose u, v = 10 ,5 before the assignment. What are the values of u and v after the sequence of assignments?

1 u := v

2 v := u

• u, v = 5 ,5

• u, v = 10 ,5

• u, v = 5 ,10

• u, v = 10 ,10

Evaluation - Section - A | Q 2. | Page 99

Which of the following properties is true after the assignment (at line 3)?

1 --i, j = 0, 0

2 i, j := i+1, j-1

3 --?

• i + j > 0

• i + j < 0

• i + j = 0

• i = j

Evaluation - Section - A | Q 3. | Page 99

If C1 is false and C2 is true, the compound statement

1 if C1

2 S1

3 else

4 if C2

5 S2

6 else

7 S3

executes

• S1

• S2

• S3

• none

Evaluation - Section - A | Q 4. | Page 99

If C is false just before the loop, the control flows through

1 S1

2 while C

3 S2

4 S3

• S1 ; S3

• S1 ; S2 ; S3

• S1 ; S2 ; S2 ; S3

• S1 ; S2 ; S2 ; S2 ; S3

Evaluation - Section - A | Q 5. | Page 99

If C is true, S1 is executed in both the flowcharts, but S2 is executed in

(1)

(2)

• (1) only

• (2) only

• both (1) and (2)

• neither (1) nor (2)

Evaluation - Section - A | Q 6. | Page 100

How many times the loop is iterated?

i := 0

while i ≠ 5

i := i + 1

• 4

• 5

• 6

• 0

Evaluation - Section - B [Page 100]

### Tamil Nadu Board Samacheer Kalvi solutions for Class 11th Computer Science Answers Guide Chapter 7 Composition and Decomposition Evaluation - Section - B [Page 100]

Evaluation - Section - B | Q 1. | Page 100

Distinguish between a condition and a statement.

Evaluation - Section - B | Q 2. | Page 100

Draw a flowchart for the conditional statement.

Evaluation - Section - B | Q 3. | Page 100

Both conditional statements and iterative statements have a condition and a statement. How do they differ?

Evaluation - Section - B | Q 4. | Page 100

What is the difference between an algorithm and a program?

Evaluation - Section - B | Q 5. | Page 100

Why is a function an abstraction?

Evaluation - Section - B | Q 6. | Page 100

How do we refine a statement?

Evaluation - Section - C [Pages 100 - 101]

### Tamil Nadu Board Samacheer Kalvi solutions for Class 11th Computer Science Answers Guide Chapter 7 Composition and Decomposition Evaluation - Section - C [Pages 100 - 101]

Evaluation - Section - C | Q 1. | Page 100

For the given flowchart write the pseudo-code.

Evaluation - Section - C | Q 1. | Page 100

For the given flowchart write the pseudo-code.

Evaluation - Section - C | Q 2. | Page 100

If C is false in line 2, trace the control flow in this algorithm.

1 S1

2 -- C is false

3 if C

4 S2

5 else

6 S3

7 S4

Evaluation - Section - C | Q 3. | Page 101

What is case analysis?

Evaluation - Section - C | Q 4. | Page 101

Draw a flowchart for -3 case analysis using alternative statements.

Evaluation - Section - C | Q 5. | Page 101

Define a function to double a number in two different ways:

(1) n + n,

(2) 2 x n

Evaluation - Section - D [Page 101]

### Tamil Nadu Board Samacheer Kalvi solutions for Class 11th Computer Science Answers Guide Chapter 7 Composition and Decomposition Evaluation - Section - D [Page 101]

#### Explain in detail

Evaluation - Section - D | Q 1. | Page 101

Exchange the contents: Given two glasses marked A and B. Glass A is full of apple drink and glass B is full of grape drink. Write the specification for exchanging the contents of glasses A and B, and write a sequence of assignments to satisfy the specification.

Evaluation - Section - D | Q 2. | Page 101

Circulate the contents: Write the specification and construct an algorithm to circulate the contents of the variables A, B, and C as shown below: The arrows indicate that B gets the value of A, C gets the value of B and A gets the value of C.

Evaluation - Section - D | Q 3. | Page 101

Decanting problem. You are given three bottles of capacities 5,8 and 3 litres. The 8L bottle is filled with oil, while the other two are empty. Divide the oil in an 8L bottle into two equal quantities. Represent the state of the process by appropriate variables. What are the initial and final states of the process? Model the decanting of oil from one bottle to another by assignment. Write a sequence of assignments to achieve the final state.

Evaluation - Section - D | Q 4. | Page 101

Trace the step-by-step execution of the algorithm for factorial(4).

factorial(n)

-- inputs : n is an integer , n ≥ 0

-- outputs : f = n!

f, i := 1 ,1

while i ≤ n

f, i := f × i, i+1

## Solutions for Chapter 7: Composition and Decomposition

Evaluation - Section - AEvaluation - Section - BEvaluation - Section - CEvaluation - Section - D

## Tamil Nadu Board Samacheer Kalvi solutions for Class 11th Computer Science Answers Guide chapter 7 - Composition and Decomposition

Shaalaa.com has the Tamil Nadu Board of Secondary Education Mathematics Class 11th Computer Science Answers Guide Tamil Nadu Board of Secondary Education solutions in a manner that help students grasp basic concepts better and faster. The detailed, step-by-step solutions will help you understand the concepts better and clarify any confusion. Tamil Nadu Board Samacheer Kalvi solutions for Mathematics Class 11th Computer Science Answers Guide Tamil Nadu Board of Secondary Education 7 (Composition and Decomposition) include all questions with answers and detailed explanations. This will clear students' doubts about questions and improve their application skills while preparing for board exams.

Further, we at Shaalaa.com provide such solutions so students can prepare for written exams. Tamil Nadu Board Samacheer Kalvi textbook solutions can be a core help for self-study and provide excellent self-help guidance for students.

Concepts covered in Class 11th Computer Science Answers Guide chapter 7 Composition and Decomposition are Composition, Decomposition, Notations for Algorithms.

Using Tamil Nadu Board Samacheer Kalvi Class 11th Computer Science Answers Guide solutions Composition and Decomposition exercise by students is an easy way to prepare for the exams, as they involve solutions arranged chapter-wise and also page-wise. The questions involved in Tamil Nadu Board Samacheer Kalvi Solutions are essential questions that can be asked in the final exam. Maximum Tamil Nadu Board of Secondary Education Class 11th Computer Science Answers Guide students prefer Tamil Nadu Board Samacheer Kalvi Textbook Solutions to score more in exams.

Get the free view of Chapter 7, Composition and Decomposition Class 11th Computer Science Answers Guide additional questions for Mathematics Class 11th Computer Science Answers Guide Tamil Nadu Board of Secondary Education, and you can use Shaalaa.com to keep it handy for your exam preparation.