Page 139 - Computer_Genius_v2.1_C7_flipbook
P. 139
2.
Critical Thinking
Competency-based/Application-based questions
Communication
1. Aakash has to write a code in AI connect to take input from the user. Write the code for this.
2. Shikha has to show "Hello" on the output screen. Which function should she use to do so?
Critical Thinking
LAB Activity Interdisciplinary Learning
1. Write the textual code in AI Connect to print the sum of your age and your sibling's age.
2. Write the textual code in AI Connect to ask user “Where you live?” and print the answer.
3. Write the textual code in AI Connect to multiply two number of your choice (use the float conversion).
4. Write the textual code in AI Connect that takes in a student name, class, and section. It should also
take in five subject marks of the students and find the total mark and percentage. Display a result
in such a way that their name, class, section, and percentage are printed.
Hint: Percentage = (Total obtained marks/Total marks) * 100
5. Write the textual code in AI Connect to solve the following equations:
l 4 + (3x2)
l (10 ÷ 2) + 5 + 2
6. Write the textual code in AI Connect to find the perimeter of a circle. Whose radius is 5 centimeters.
Formula of the perimeter of circle = 2πr
Where, r = radius and π = 3.14
Textual Coding 137

