#### Chapters

Chapter 2: Number Systems

Chapter 3: Computer Organization

Chapter 4: Theoretical Concepts of Operating System

Chapter 5: Working with Windows Operating System

Chapter 6: Specification and Abstraction

Chapter 7: Composition and Decomposition

Chapter 8: Iteration and recursion

Chapter 9: Introduction to C++

Chapter 10: Flow of Control

Chapter 11: Functions

Chapter 12: Arrays and Structures

Chapter 13: Introducton to Object Oriented Programming Techniques

Chapter 14: Classes and objects

Chapter 15: Polymorphism

Chapter 16: Inheritance

Chapter 17: Computer Ethics and Cyber Security

Chapter 18: Tamil Computing

## 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.

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

#### Choose the correct answer

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

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

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

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

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)

How many times the loop is iterated?

i := 0

while i ≠ 5

i := i + 1

4

5

6

0

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

#### Very Short Answers

Distinguish between a condition and a statement.

Draw a flowchart for the conditional statement.

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

What is the difference between an algorithm and a program?

Why is a function an abstraction?

How do we refine a statement?

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

#### Short Answers

**For the given flowchart write the pseudo-code.**

**For the given flowchart write the pseudo-code.**

**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

#### Short Answers

What is case analysis?

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

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

(1) n + n,

(2) 2 x n

### 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

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.

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.

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.

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

## 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.