Chapter #6 – Flow of Control Class 11 – Chapter 6 Solutions – PROGRAMMING EXERCISES #1 Write a program that takes the name and age of the user as input and displays a message whether the user is eligible to apply for a driving license or not. (the eligible age is 18 years). Python Program […]
NCERT Computer Science Class #11 – Chapter #6 Solutions – Q #5
Chapter #6 – Flow of Control Class 11 – Chapter 6 Solutions – Q 5 – Find the output of the following program segments: (i) Give output of the following: Explanation of the Code Output (ii) Give output of the following: Explanation of the Code Output When you run this code, the output will be: […]
NCERT Computer Science Class #11 – Chapter #6 Solutions – Q #4
Chapter 6 – Flow of Control Q #4 – What is an infinite loop? Give one example. An infinite loop is a loop that continues to execute indefinitely without terminating. This occurs when the loop’s terminating condition is never met, often due to a logical error in the code or because the loop is intentionally designed to […]
NCERT Computer Science Class #11 – Chapter #6 Solutions – Q #3
Chapter 6 – Flow of Control Q #3 – Differentiate between break and continue statements using examples.. The break and continue statements in Python are control flow tools used to modify the execution of loops. Here’s a detailed differentiation between the two, along with examples for clarity. Break Statement The break statement is used to exit a loop entirely when a specific condition […]
NCERT Computer Science Class #11 – Chapter #6 Solutions – Q #2
Chapter 6 – Flow of Control Q #2: What is the purpose of range() function? Give one example. The range() function in Python is used to generate a sequence of numbers. It is particularly useful for iterating over a sequence in loops, such as for loops. The function can take one to three arguments: start, stop, and step. Purpose of range() Example Here’s […]
NCERT Computer Science Class #11 – Chapter #6 Solutions – Q #1
Chapter 6 – Flow of Control Q #1 – What is the difference between else and elif construct of if statement? The difference between the else and elif constructs in Python’s if statement lies primarily in their functionality and use cases. ‘else’ Statement Example: ‘elif‘ Statement Example Key Differences By understanding these differences, you can effectively control the flow of your Python programs […]
NCERT Computer Science Class #11 – Chapter #2 Solutions
Chapter 2 – Encoding Schemes and Number System Exercise Solutions 1. Write base values of binary, octal and hexadecimal number system. The base values of different number systems are as follows: Binary Number System: Base 2 Octal Number System: Base 8 Hexadecimal Number System: Base 16 These systems use different sets of symbols to represent […]
NCERT Computer Science Class #11 – Chapter #5 Solutions
Chapter 5 – Getting Started with Python i Serial_no. ii 1st_Room iii Hundred$ iv Total Marks v Total_Marks vi total-Marks vii _Percentage viii True Summary of Validity Identifier Name Validity Reason Serial_no. Invalid Ends with a special character (.) 1st_Room Invalid Starts with a digit Hundred$ Invalid Contains an invalid character ($) Total Marks Invalid […]
NCERT Computer Science Class #11 – Chapter #4 Solutions
Chapter 4 – Introduction to Problem Solving 2. Two friends decide who gets the last slice of a cake by flipping a coin five times. The first person to win three flips wins the cake. An input of 1 means player 1 wins a flip, and a 2 means player 2 wins a flip. Design […]
NCERT Computer Science Class #11 – Chapter #3 Solutions
Chapter 3 – EMERGING TRENDS 1. List some of the cloud-based services that you are using at present. 2. What do you understand by the Internet of Things? List some of its potential applications 3. Write short notes on following: (a) Cloud Computing: (b) Big data and its Characteristics 4. Explain the following along with their applications. (a) Artificial Intelligence […]