Page 86 - Touchcode_C7_Flipbook
P. 86
3. Name the diferent mathematical operations which can be performed on variables in Python.
.............................................................................................................................................................
.............................................................................................................................................................
Experiential Learning
Applied Project
Sort the given array in ascending order by using selection sort algorithm: Array={7, 5, 4, 2}.
Solution:
Step 1: 7 5 4 2 2 5 4 7
min element Sorted Array Unsorted Array
Step 2: 2 5 4 7 2 4 5 7
min element Sorted Array Unsorted Array
Step 3: 2 4 5 7 2 4 5 7
min element Sorted Array Unsorted Array
Step 4: 2 4 5 7 2 4 5 7
min element Sorted Array
Critical Thinking
Higher Order Thinking Skills (HOTS)
Draw a flowchart to explain the flow of selection sort technique in programming.
Teacher’s Corner
1. Explain some examples of machine level languages and high level languages to the students.
2. Do a walkthrough of the selection sort algorithm for the students.
84 Touchcode-VII

