Advertisements
Chapters
2: Number Systems
3: Computer Organization
4: Theoretical Concepts of Operating System
5: Working with Windows Operating System
6: Specification and Abstraction
7: Composition and Decomposition
▶ 8: Iteration and recursion
9: Introduction to C++
10: Flow of Control
11: Functions
12: Arrays and Structures
13: Introducton to Object Oriented Programming Techniques
14: Classes and objects
15: Polymorphism
16: Inheritance
17: Computer Ethics and Cyber Security
18: Tamil Computing
![Samacheer Kalvi solutions for Computer Science [English] Class 11 TN Board chapter 8 - Iteration and recursion Samacheer Kalvi solutions for Computer Science [English] Class 11 TN Board chapter 8 - Iteration and recursion - Shaalaa.com](/images/computer-science-english-class-11-tn-board_6:5f2b1b2038084cf381bfa42c826a928c.jpg)
Advertisements
Solutions for Chapter 8: Iteration and recursion
Below listed, you can find solutions for Chapter 8 of Tamil Nadu Board of Secondary Education Samacheer Kalvi for Computer Science [English] Class 11 TN Board.
Samacheer Kalvi solutions for Computer Science [English] Class 11 TN Board 8 Iteration and recursion Evaluation - Section - A [Page 113]
Choose the correct answer
A loop invariant need not be true ______
at the start of the loop.
at the start of each iteration
at the end of each iteration
at the start of the algorithm
We wish to cover a chessboard with dominoes, `square``square` the number of black squares, and the number of white squares covered by dominoes, respectively, placing a domino can be modeled by ______
b := b + 2
w := w + 2
b, w := b + 1, w + 1
b := w
If m x a + n x b is an invariant for the assignment a, b : = a + 8, b + 7, the values of m and n are ______
m = 8, n = 7
m = 7, n = -8
m = 7, n = 8
m = 8, n = -7
Which of the following is not an invariant of the assignment?
m, n := m + 2, n + 3
m mod 2
n mod 3
3 × m - 2 × n
2 × m - 3 × n
If the Fibonacci number is defined recursively as F(n) = `{(0, "n" = 0), (1, "n" = 1), ("F"("n" - 1),+ "F"("n" - 2) "otherwise"):}`
to evaluate F(4), how many times F() is applied?
3
4
8
9
Using this recursive definition
`"a"^"n" = {(1, "if" "n" = 0), ("a" × "a"^("n" - 1), "otherwise"):}`
how many multiplications are needed to calculate a10?
11
10
9
8
Samacheer Kalvi solutions for Computer Science [English] Class 11 TN Board 8 Iteration and recursion Evaluation - Section - B [Pages 113 - 114]
Very Short Answers
What is an invariant?
Define a loop invariant.
Does testing the loop condition affect the loop invariant? Why?
What is the relationship between loop invariant, loop condition, and the input-output recursively?
What is recursive problem-solving?
Define factorial of a natural number recursively.
Samacheer Kalvi solutions for Computer Science [English] Class 11 TN Board 8 Iteration and recursion Evaluation - Section - C [Page 114]
Short Answers
There are 7 tumblers on a table, all standing upside down. You are allowed to turn any 2 tumblers simultaneously in one move. Is it possible to reach a situation when all the tumblers are right-side-up?
A knockout tournament is a series of games. Two players compete in each game; the loser is knocked out (i.e. does not play anymore), the winner carries on. The winner of the tournament is the player that is left after all other players have been knocked out. Suppose there are 1234 players in a tournament. How many games are played before the tournament winner is decided?
King Vikramaditya has two magic swords. With one, he can cut off 19 heads of a dragon, but after that, the dragon grows 13 heads. With the other sword, he can cut off 7 heads, but 22 new heads grow. If all heads are cut off, the dragon dies. If the dragon has originally 1000 heads, can it ever die?
Samacheer Kalvi solutions for Computer Science [English] Class 11 TN Board 8 Iteration and recursion Evaluation - Section - D [Page 114]
Explain in detail
Assume an 8 × 8 chessboard with the usual coloring. "Recoloring" operation changes the color of all squares of a row or a column. You can recolor repeatedly. The goal is to attain just one black square. Show that you cannot achieve the goal.
Power can also be defined recursively as
`"a"^"n" = {(1, "if" "n" = 0), ("a" × "a"^("n" - 1), "if n is odd"), ("a"^("n""/"2) × "a"^("n""/"2), "if n is even"):}`
Construct a recursive algorithm using this definition. How many multiplications are needed to calculate a10?
A single-square-covered board is a board of 2n x 2n squares in which one square is covered with a single square tile. Show that it is possible to cover this board with triominoes without overlap.
Solutions for 8: Iteration and recursion
![Samacheer Kalvi solutions for Computer Science [English] Class 11 TN Board chapter 8 - Iteration and recursion Samacheer Kalvi solutions for Computer Science [English] Class 11 TN Board chapter 8 - Iteration and recursion - Shaalaa.com](/images/computer-science-english-class-11-tn-board_6:5f2b1b2038084cf381bfa42c826a928c.jpg)
Samacheer Kalvi solutions for Computer Science [English] Class 11 TN Board chapter 8 - Iteration and recursion
Shaalaa.com has the Tamil Nadu Board of Secondary Education Mathematics Computer Science [English] Class 11 TN Board 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. Samacheer Kalvi solutions for Mathematics Computer Science [English] Class 11 TN Board Tamil Nadu Board of Secondary Education 8 (Iteration and recursion) 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. Samacheer Kalvi textbook solutions can be a core help for self-study and provide excellent self-help guidance for students.
Concepts covered in Computer Science [English] Class 11 TN Board chapter 8 Iteration and recursion are Invariants, Loop Invariant, Recursion.
Using Samacheer Kalvi Computer Science [English] Class 11 TN Board solutions Iteration and recursion 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 Samacheer Kalvi Solutions are essential questions that can be asked in the final exam. Maximum Tamil Nadu Board of Secondary Education Computer Science [English] Class 11 TN Board students prefer Samacheer Kalvi Textbook Solutions to score more in exams.
Get the free view of Chapter 8, Iteration and recursion Computer Science [English] Class 11 TN Board additional questions for Mathematics Computer Science [English] Class 11 TN Board Tamil Nadu Board of Secondary Education, and you can use Shaalaa.com to keep it handy for your exam preparation.