Chapter #7 – Functions (a) Observe the following program carefully, and identify the error: Issues in the Code Corrected Code (b) Observe the following program carefully, and identify the error: Issues in the Code: Corrected Code (c) Observe the following program carefully, and identify the error: Issues in the Code: Corrected Code: (d) Observe the […]
NCERT Computer Science Class #11 – Chapter #6 Solutions – Q #15
Chapter #6 – Flow of Control Class 11 – Chapter 6 Solutions – PROGRAMMING EXERCISES #10 Write a program to find the grade of a student when grades are allocated as given in the table below. Percetage of Marks Grade Above 90% A 80% to 90% B 70% to 80% C 60% to 70% D […]
NCERT Computer Science Class #11 – Chapter #6 Solutions – Q #14
Chapter #6 – Flow of Control Class 11 – Chapter 6 Solutions – PROGRAMMING EXERCISES #9 (i) Write a program to print the following patterns: Python Program: (ii) Write a program to generate below pattern: Python Program: (iii) Write a program to generate below pattern: Python Program: NCERT Computer Science Class 11 Chapter 6 Solutions […]
NCERT Computer Science Class #11 – Chapter #6 Solutions – Q #13
Chapter #6 – Flow of Control Class 11 – Chapter 6 Solutions – PROGRAMMING EXERCISES #8 Write a function that checks whether an input number is a palindrome or not. Python Program: You can checkout the code from Github here – Programming Exercises – 8 Explanation of the Code: Example Output: NCERT Computer Science Class […]
NCERT Computer Science Class #11 – Chapter #6 Solutions – Q #12
Chapter #6 – Flow of Control Class 11 – Chapter 6 Solutions – PROGRAMMING EXERCISES #7 Write a program to find the sum of digits of an integer number, input by the user. Python Program: You can checkout the code from Github here – Programming Exercises – 7 Explanation of the Code: Example Output: NCERT […]
NCERT Computer Science Class #11 – Chapter #6 Solutions – Q #11
Chapter #6 – Flow of Control Class 11 – Chapter 6 Solutions – PROGRAMMING EXERCISES #6 Write a program to find the sum of 1+ 1/8 + 1/27……1/n3, where n is the number input by the user. Python Program: You can checkout the code from Github here – Programming Exercises – 6 Explanation of the […]
NCERT Computer Science Class #11 – Chapter #6 Solutions – Q #10
Chapter #6 – Flow of Control Class 11 – Chapter 6 Solutions – PROGRAMMING EXERCISES #5 Write a program to generate the sequence: –5, 10, –15, 20, –25….. upto n, where n is an integer input by the user. Python Program: You can checkout the code from Github here – Programming Exercises – 5 Explanation […]
NCERT Computer Science Class #11 – Chapter #6 Solutions – Q #9
Chapter #6 – Flow of Control Class 11 – Chapter 6 Solutions – PROGRAMMING EXERCISES #4 Write a program to check if the year entered by the user is a leap year or not Python Program: You can checkout this code from Github here – Programming Exercise – 4 Explanation of the Code: Example Output: […]
NCERT Computer Science Class #11 – Chapter #6 Solutions – Q #8
Chapter #6 – Flow of Control Class 11 – Chapter 6 Solutions – PROGRAMMING EXERCISES #3 Write a program that prints minimum and maximum of five numbers entered by the user. Python Program You can checout this code from Github here – Programming Exercise – 3 Explanation of the Code: Example Output: NCERT Computer Science […]
NCERT Computer Science Class #11 – Chapter #6 Solutions – Q #7
Chapter #6 – Flow of Control Class 11 – Chapter 6 Solutions – PROGRAMMING EXERCISES #2 Write a function to print the table of a given number. The number has to be entered by the user. Python Program: You can checkout this code from Github here – Programming Exercises – 2 Explanation of the Code […]