Chapter 7 : Functions | class 11th | Ncert solution for computer

Class 11 Computer Science Ch 7 Functions in Python NCERT Book Exercise Solution

Chapter – 7 : Functions in Python



• In programming, functions are used to achieve modularity and reusability.

• Function can be defined as a named group of instructions that are executed when the function is invoked or called by its name. Programmers
can write their own functions known as user defined functions.

• The Python interpreter has a number of functions built into it. These are the functions that are frequently used in a Python program. Such functions are known as built-in functions.

• An argument is a value passed to the function during function call which is received in a parameter defined in function header.

• Python allows assigning a default value to the parameter.

• A function returns value(s) to the calling function using return statement.

• Multiple values in Python are returned through a Tuple.

• Flow of execution can be defined as the order in which the statements in a program are executed.

• The part of the program where a variable is accessible is defined as the scope of the variable.

• A variable that is defined outside any particular function or block is known as a global variable. It can be accessed anywhere in the program.

• A variable that is defined inside any function or block is known as a local variable. It can be accessed only in the function or block where it is defined. It exists only till the function executes or remains active.

• The Python standard library is an extensive collection of functions and modules that help the programmer in the faster development of programs.

• A module is a Python file that contains definitions of multiple functions.

• A module can be imported in a program using import statement.

• Irrespective of the number of times a module is imported, it is loaded only once.

• To import specific functions in a program from a module, from statement can be used.


NCERT Book Exercise Solution – Ch 7 : Functions

1. Observe the following programs carefully, and identify the error:

a) Identify the error

def create (text, freq):
    for i in range (1, freq):
        print text
create(5) #function call

Answer: – Error 1 : print text :- in this statement () is missing. Correct statement is print(text)

Error 2 : create(5) in this statement missing of one argument.

Correct statement is

create(5, ‘mycstutorial.in’)


b) Identify the error:

from math import sqrt,ceil
def calc():
    print cos(0)
calc() #function call

Answer: – Missing of parentheses () in print statement.

Invalid call of cos() function. Function cos() not imported.

print(sqrt(4))

print(ceil(234.876))


c) Identify the error

12345mynum =9defadd9():    mynum =mynum +9    printmynumadd9() #function call 

Answer: – Missing of parentheses () in print statement.

Correct Statement is

print(mynum)


d) Identify the error

def findValue( vall = 1.1, val2, val3):
    final = (val2 + val3)/ vall
    print(final)
findvalue() #function call  

Answer: – In function header def findValue(), non-default argument can not be allowed after the default argument.


e) Identify the error

def greet():
    return("Good morning")
greet() = message #function call  

Answer: – Function call statement is written wrong.

It should be

message = greet()


2. How is math.ceil(89.7) different from math.floor(89.7)?

Answer: – math.ceil(x) vs math.floor(x)

math.ceil(x) : Return the ceiling of x, the smallest integer greater than or equal to x.

math.floor(x) : Return the floor of x, the largest integer less than or equal to x.

math.ceil() vs math.floor()

3. Out of random() and randint(), which function should we use to generate random numbers between 1 and 5. Justify.

Answer: – randint() function of random module returns the number between start to end.

Example :


4. How is built-in function pow() function different from function math.pow() ? Explain with an example.

Answer: – pow() is an built-in function while math.pow() function defined under the math module. Both function is used to calculate x**y i.e. x raised to power y.

When x and y are integer and given as argument to pow() and math.pow() :

pow( x, y) function returns the value as integer type, while math.pow(x, y) function returns float type value.

pow() vs math.pow()

5. Using an example show how a function in Python can return multiple values.

Answer: – A function in python can return multiple values in the form of tuple.

123456789defcalcsquare(x, y, z):    t =x**2, y**2, z**2    returntsq =calcsquare(3,4,5)print(sq)a, b, c =calcsquare(3,4,5)print(a, b, c)

6. Differentiate between following with the help of an example:

a) Argument and Parameter

Answer: – Argument : Variable / Value / Expression which is written inside the parenthesis at the time of function call to passed to the function is called Argument.

Parameter: Variable written inside the parenthesis in the function header is called parameter.

An argument is a value passed to the function during the function call which is received in corresponding parameter defined in function header.

0102030405060708091011#function headerdefsumSquares(n): #n is the parameter    sum=0    fori inrange(1,n+1):        sum=sum+i    print("The sum of first",n,"natural numbers is: ",sum)num =int(input("Enter the value for n: "))#num is an argument referring to the value input by the usersumSquares(num) #function call

b) Global and Local variable.

Answer: – A variable that has global scope is known as a global variable and a variable that has a local scope is known as a local variable.

Global Variable : In Python, a variable that is defined outside any function or any block is known as a global variable. It can be accessed in any functions defined onwards. Any change made to the global variable will impact all the functions in the program where that variable can be accessed.

Local Variable : A variable that is defined inside any function or a block is known as a local variable. It can be accessed only in the function or a block where it is defined. It exists only till the function executes.

Output:

Accessing num = 5
num reassigned = 10
Accessing num outside myfunc1 10

Read More

Chapter 6 : Flow of Control | class 11th | Ncert solution for computer

NCERT Solutions Class 11 Computer Science Chapter 6 – Flow of Control

Question1. What is the difference between else and elif construct of if statement?

Answer:

Elseelif
Else is a part of if statement.The elif is short for else if.
Else statement is executed whenever the if statement is getting false.Elif executed block of code whenever one of the condition evaluate true.
Example:If(a<b)Print “a less than b”ElsePrint “ a is not less than b” Example:If num> 0;Print “positive number”Elifnum == 0;Print “zero”Else:Print “negative number”  

Question 2. What is the purpose of range() function? Give one example.

Answer:

Function range() is used for creating a list containing the integer values in sequence from start value to stop value. Sometimes it is used for generating the number sequentially in for loop.

Example:

Question 3. Differentiate between break and continue statements using examples.

Answer:

Break StatementContinue Statement
Break statement is to break the loop.Continue statement is used to to continue the loop
Break statement is used with switch statementContinue statement is not used with switch statements
Keyword: breakKeyword: continue

Question 4. What is an infinite loop? Give one example.

Answer:

  • Infinite loop execute when while condition never become false
  • If condition remain true. the loop will never get terminated.
  • The control enters in loop and keeps repeating the same block code and loop never end.

Example:

a = 1

while a==1:

b = input(“what’s your birthdate?”)

print(“your birthdate is ”, b)

Output:

What’s your birthdate?

13

your birthdate is 13

What’s your birthdate?

14

your birthdate is 14

What’s your birthdate?

15

your birthdate is 15

What’s your birthdate?

16

your birthdate is 16

:

:

:

Question 5. Find the output of the following program segments:

(i) a = 110

while a > 100:

print(a)

a  -= 2

Output: 110

108

106

104

(ii) for i in range(20,30,2):

print(i)

Output: 20
22
24
26
28

(iii) country = ‘INDIA’

for i in country:

print (i)

Output:

I
N
D
I
A

(iv) i = 0; sum = 0

while i < 9:

if i % 4 == 0:

sum = sum + i

i = i + 2

print (sum)

Output: 12

  1. v) for x in range(1,4):

for y in range(2,5):

if x * y > 10:

break

print (x * y)

Output:

2
3
4
4
6
8
6
9

(v) var = 7

whilevar> 0:

print (‘Current variable value: ‘, var)

var = var -1

if var == 3:

break

else:

if var == 6:

var = var -1

continue

print (“Good bye!”)

Output:

Current variable value:  7
Current variable value:  5
Good bye!
Current variable value:  4

Programming Exercises

Question 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).

Answer:

Question 2. Write a function to print the table of a given number. The number has to be entered by the user.

Answer:

Question 3. Write a program that prints minimum and maximum of five numbers entered by the user.

Answer:

Question 4. Write a program to check if the year entered by the user is a leap year or not.

Question 5. Write a program to generate the sequence: –5, 10, –15, 20, –25….. upto n, where n is an integer input by the user.

Question 6. Write a program to find the sum of 1+ 1/8 + 1/27.

Answer:

Question 7.Write a program to find the sum of digits of an integer number, input by the user.

Answer:

Question 8. Write a function that checks whether an input number is a palindrome or not. [Note: A number or a string is called palindrome if it appears same when written in reverse order also. For example, 12321 is a palindrome while 123421 is not a palindrome]

Program:

rev = 0
n = int(input(“Enter the number: “))
temp = n

while temp > 0:
digit = (temp % 10)
rev = (rev * 10) + digit
temp = temp // 10

if(n == rev):
print(“The number is a palindrome.”)
else:
print(“The  number is not a palindrome.”)

output:

Enter the number: 5665

The number is a palindrome.

Question 9. Write a program to print the following patterns

Answer:

(i)

(ii)

(iii)

(iv)

Question 10:Write a program to find the grade of a student when grades are allocated as given in the table below. Percentage of the marks obtained by the student is input to the program.

Percentage of Marks Grade
Above 90%A
80% to 90%B
70% to 80%C
60% to 70%D
Below 60%E

Answer:

Program:

OUTPUT:

n = float(input(‘Enter the percentage of the student: ‘))

if(n > 90):
print(“Grade A”)
elif(n > 80):
print(“Grade B”)
elif(n > 70):
print(“Grade C”)
elif(n >= 60):
print(“Grade D”)
else:
print(“Grade E”)

OUTPUT:

Enter the percentage of the number: 91

Grade A

Read More

Chapter 5 Getting Started with Python | class 11th | Ncert solution for computer

NCERT Solutions Class 11 Computer Science Chapter 5 Getting Started with Python

Question 1. Which of the following identifier names are invalid and why?

i Serial_no.                     v Total_Marks

ii 1st_Room                   vi total-Marks

iii Hundred$                   vii _Percentage

iv Total Marks                viii True

Answer:

i) Serial_no. :- Invalid

Reason- (.) is not allowed in identifier

ii) 1st_Room :- Invalid

Reason- identifier can’t start with number

iii) Hundred$ :-  Invalid

Reason- We can’t use special symbol $ in identifier

iv) Total Marks :- Invalid

Reason- We can’t use space between in identifier

v) Total_Marks :- Valid

Reason- We can use underscore between in identifier

vi) total-Marks :- Invalid

Reason- We can’t use hyphen between in identifier

vii) _Percentage:- Invalid

Reason- Identifier can’t begin with underscore

viii) True :- Invalid

Reason- We can’t use keyword as a identifier

Question 2. Write the corresponding Python assignment statements:

a) Assign 10 to variable length and 20 to variable breadth.

b) Assign the average of values of variables length and breadth to a variable sum.

c) Assign a list containing strings ‘Paper’, ‘Gel Pen’, and ‘Eraser’ to a variable stationery.

d) Assign the strings ‘Mohandas’, ‘Karamchand’, and ‘Gandhi’ to variables first, middle and last.

e) Assign the concatenated value of string variables first, middle and last to variable fullname. Make sure to incorporate blank spaces appropriately between different parts of names.

Answer:

a) Assign 10 to variable length and 20 to variable breadth.

length = 10

breadth = 20

b) Assign the average of values of variables length and breadth to a variable sum.

Sum = (length + breadth)/2

c) Assign a list containing strings ‘Paper’, ‘Gel Pen’, and ‘Eraser’ to a variable stationery.

Stationary=[‘Paper’ ,  ‘Gel Pen’ , ‘Eraser’

d) Assign the strings ‘Mohandas’, ‘Karamchand’, and ‘Gandhi’ to variables first, middle and last.

first = ‘Mohandas’

middle= ‘Karamchand’

last= ‘Gandhi’

e) Assign the concatenated value of string variables first, middle and last to variable fullname. Make sure to incorporate blank spaces appropriately between different parts of names.

fullname = first +” “+ middle +” “+ last

Question 3. Write logical expressions corresponding to the following statements in Python and evaluate the expressions (assuming variables num1, num2, num3, first, middle, last are already having meaningful values):

a) The sum of 20 and –10 is less than 12.

b) num3 is not more than 24.

c) 6.75 is between the values of integers num1 and num2.

d) The string ‘middle’ is larger than the string ‘first’ and smaller than the string ‘last’.

e) List Stationery is empty.

Answer:

STATEMENTLOGICAL EXPRESSIONS
The sum of 20 and –10 is less than 12.(20 + (-10)) < 12
num3 is not more than 24.num3 <= 24   or not(num3 > 24)
6.75 is between the values of integers num1 and num2.(6.75 >= num1) and (6.75 <= num2)
The string ‘middle’ is larger than the string ‘first’ and smaller than the string ‘last’.(middle > first) and (middle < last)
List Stationery is empty.len(Stationery) == 0

Question 4. Add a pair of parentheses to each expression so that it evaluates to True.

a) 0 == 1 == 2

b) 2 + 3 == 4 + 5 == 7

c) 1 < -1 == 3 > 4

Answer:

EXPRESSIONEXPRESSION WITH PARENTHESIS
0 == 1 == 2(0 == (1 == 2))
2 + 3 == 4 + 5 == 7(2 + (3 == 4 )+ 5) == 7
1 < -1 == 3 > 4(1 < -1 ) == (3 > 4)

Question 5. Write the output of the following:

a) num1 = 4

num2 = num1 + 1

num1 = 2

print (num1, num2)

b) num1, num2 = 2, 6

num1, num2 = num2, num1 + 2

print (num1, num2)

c) num1, num2 = 2, 3

num3, num2 = num1, num3 + 1

print (num1, num2, num3)

Answer:

a) num1 = 4

num2 = num1 + 1

num1 = 2

Output: 2,5

b) num1, num2 = 2, 6

num1, num2 = num2, num1 + 2

print (num1, num2)

Output: 6,4

c) num1, num2 = 2, 3

num3, num2 = num1, num3 + 1

print (num1, num2, num3)

Output: error

Question 6. Which data type will be used to represent the following data values and why?

a) Number of months in a year

b) Resident of Delhi or not

c) Mobile number

d) Pocket money

e) Volume of a sphere

f) Perimeter of a square

g) Name of the student

h) Address of the student

Answer:

DATA VALUESDATA TYPESREASON
Number of months in a yearIntegerNumber of months contain only number values (integer).
Resident of Delhi or notBooleanIt gives the answer in the form of true and false
Mobile numberIntegerMobile number only contain integer number value
Pocket moneyFloatMoney can be count as 100rs 50 paisa(100.50)
Volume of a sphereFloatThe volume can be calculated in the decimal point
Perimeter of a squareFloatThe perimeter can be calculated in the decimal point
Name of the studentStringName is a set of character, hence data type of name of student is string
Address of the studentStringAddress is a set of character, hence data type of address of student is string

Question 7. Give the output of the following when num1 = 4, num2 = 3, num3 = 2

a) num1 += num2 + num3

print (num1)

b) num1 = num1 ** (num2 + num3)

print (num1)

c) num1 **= num2 + num3

d) num1 = ‘5’ + ‘5’

print(num1)

e) print(4.00/(2.0+2.0))

f) num1 = 2+9*((3*12)-8)/10

print(num1)

g) num1 = 24 // 4 // 2

print(num1)

h) num1 = float(10)

print (num1)

i) num1 = int(‘3.14’)

print (num1)

j) print(‘Bye’ == ‘BYE’)

k) print(10 != 9 and 20 >= 20)

l) print(10 + 6 * 2 ** 2 != 9//4 -3 and 29

>= 29/9)

m) print(5 % 10 + 10 < 50 and 29 <= 29)

n) print((0 < 6) or (not(10 == 6) and

(10<0)))

Answer:

a) num1 += num2 + num3

print (num1)

Output:9

b) num1 = num1 ** (num2 + num3)

print (num1)

Output:1024

c) num1 **= num2 + num3

Output:1024

d) num1 = ‘5’ + ‘5’

print(num1)

Output:55

e) print(4.00/(2.0+2.0))

Output:1.0

f) num1 = 2+9*((3*12)-8)/10

print (num1)

Output:27.2

g) num1 = 24 // 4 // 2

print(num1)

Output:3

h) num1 = float(10)

print (num1)

Output:10.0

i) num1 = int(‘3.14’)

print (num1)

Output: error

j) print(‘Bye’ == ‘BYE’)

Output: False

k) print(10 != 9 and 20 >= 20)

Output:True

l) print(10 + 6 * 2 ** 2 != 9//4 -3 and 29

>= 29/9)

Output: True

m) print(5 % 10 + 10 < 50 and 29 <= 29)

Output: True

n) print((0 < 6) or (not(10 == 6) and

(10<0)))

Output: True

Question 8. Categorise the following as syntax error, logical error or runtime error:

a) 25 / 0

b) num1 = 25; num2 = 0; num1/num2

Answer:

a) 25 / 0 :- Runtime Error, because of divisible by zero

b) num1 = 25; num2 = 0; num1/num2 :- Runtime Error, because of divisible by zero

Question 9. A dartboard of radius 10 units and the wall it is hanging on are represented using a two-dimensional coordinate system, with the board’s center at coordinate (0,0). Variables x and y store the x-coordinate and the y-coordinate of a dart that hits the dartboard. Write a Python expression using variables x and y that evaluates to True if the dart hits (is within) the dartboard, and then evaluate the expression for these dart coordinates:

a) (0,0)

b) (10,10)

c) (6, 6)

d) (7,8)

Question 10. Write a Python program to convert temperature in degree Celsius to degree Fahrenheit. If water boils at 100 degree C and freezes as 0 degree C, use the program to find out what is the boiling point and freezing point of water on the Fahrenheit scale. (Hint: T(°F) = T(°C) × 9/5 + 32)

Answer:

deffar_conv(t):

x=t*9/5 + 32

return x

print(far_conv(100))

Question 11. Write a Python program to calculate the amount payable if money has been lent on simple interest. Notes Ch 5.indd 117 08-Apr-19 12:35:13 PM 2020-21 118 Computer Science – Class xi Principal or money lent = P, Rate of interest = R% per annum and Time = T years. Then Simple Interest (SI) = (P x R x T)/ 100. Amount payable = Principal + SI. P, R and T are given as input to the program.

Answer:

principal=int(input(“P=”))

rate=int(input(“I=”))

time=int(input(“T=”))

defamount_pay(principal,rate,time):

simple_intrest=(principal*rate*time)/100

TOTAL_amount=Print+simple_intrest

returnTOTAL_amount

print(“Total Payble amount”)

print(amount_pay(principal,rate,time))

Question 12.Write a program to calculate in how many days a work will be completed by three persons A, B and C together. A, B, C take x days, y days and z days respectively to do the job alone. The formula to calculate the number of days if they work together is xyz/(xy + yz + xz) days where x, y, and z are given as input to the program.

Answer:

x=int(input(“x=”))

y=int(input(“Y=”))

z=int(input(“Y=”))

defwork_days(x,y,z):

days=x*y*z/(x*y+y*z+z*x)

return days

print(“Work will complet(in days)”)

print(work_days(x,y,z))

Question 13. Write a program to enter two integers and perform all arithmetic operations on them.

Answer:

a=int(input(“Enter First Number: “))

b=int(input(“Enter Second Number: “))

defAddtion(a,b):

returna+b

def subtraction(a,b):

return a-b

def multiplication(a,b):

return a*b

def division(a,b):

return a/b

print(“Addtion of {0} & {1} is : “.format(a,b))

print(Addtion(a,b))

print(“subtraction of {0} & {1} is : “.format(a,b))

print(subtraction(a,b))

print(“multiplicationof {0} & {1} is : “.format(a,b))

print(multiplication(a,b))

print(“division of {0} & {1} is : “.format(a,b))

print(division(a,b))

Question14. Write a program to swap two numbers using a third variable.

Answer:

first_number=int(input(“Enter First Number: “))

second_number=int(input(“Enter Second Number: “))

def swap(first_number,second_number):

third_variable=first_number

first_number=second_number

second_number=third_variable

returnfirst_number,second_number

print(swap(first_number,second_number))

Question 15. Write a program to swap two numbers without using a third variable.

Answer:

first_number=int(input(“Enter First Number: “))

second_number=int(input(“Enter Second Number: “))

def swap(first_number,second_number):

first_number,second_number=second_number,first_number

returnfirst_number,second_number

print(swap(first_number,second_number))

Question 16. Write a program to repeat the string ‘‘GOOD MORNING” n times. Here ‘n’ is an integer entered by the user.

Answer:

n=int(input(“Enter Number: “))

fori in range(n):

print(“GOOD MORINING “)

Question 17. Write a program to find average of three numbers.

Answer:

x=int(input(“Enter First Number: “))

y=int(input(“Enter Second Number: “))

z=int(input(“Enter Third Number: “))

def  average(x,y,z):

avg=x+y+z/3

returnavg

print(“Average : “)

print(average(x,y,z))

Question 18. The volume of a sphere with radius r is 4/3πr3. Write a Python program to find the volume of spheres with radius 7cm, 12cm, 16cm, respectively.

Answer:

defvolume_sphere(r):

pi=3.1415926535897931

volume=4.0/3.0*pi* r**3

return volume

print(“volume of spheres with radius 7cm”)

print(volume_sphere(7))

print(“volume of spheres with radius 12cm”)

print(volume_sphere(12))

print(“volume of spheres with radius 16cm”)

print(volume_sphere(16))

Question 19. Write a program that asks the user to enter their name and age. Print a message addressed to the user that tells the user the year in which they will turn 100 years old.

Answer:

fromdatetime import datetime

name = input(‘Name \n’)

age = int(input(‘Age  \n’))

defhundred_year(age):

hundred = int((100-age) + datetime.now().year)

return hundred

x=hundred_year(age)

print (‘Hello %s.  You will turn 100 years old in %s.’ % (name,x))

Question 20. The formula E = mc2 states that the equivalent energy (E) can be calculated as the mass (m) multiplied by the speed of light (c = about 3×108 m/s) squared. Write a program that accepts the mass of an object and determines its energy.

Answer:

m=int(input(“Enter Mass in Kg: “))

def Einstein(m):

c=299792458

e= m*c**2

return e

print(“Equivalent energy (E): “)

print(Einstein(m))

Question 21. Presume that a ladder is put upright against a wall. Let variables length and angle store the length of the ladder and the angle that it forms with the ground as it leans against the wall. Write a Python program to compute the height reached by the ladder on the wall for the following values of length and angle:

a)16 feet and 75 degrees

b)20 feet and 0 degrees

c)24 feet and 45 degrees

d)24 feet and 80 degrees

Answer:

import math

defheight_reched(length,degrees):

radian=math.radians(degrees)

sin=math.sin(radian)

height=round(length*sin,2)

return height

print(” height reached by the ladder on the wall for the  length is 16 feet and 75 degrees “)

print(height_reched(16,75))

print(” height reached by the ladder on the wall for the  length is 20 feet and 0 degrees “)

print(height_reched(20,0))

print(” height reached by the ladder on the wall for the  length is 24 feet and 45 degrees “)

print(height_reched(24,45))

print(” height reached by the ladder on the wall for the  length is 24 feet and 80 degrees “)

print(height_reched(24,80))

Read More

Chapter 4 : Introduction to Problem Solving | class 11th | Ncert solution for computer

NCERT Class 11 Computer Science Solution

Chapter 4 Introduction to Problem Solving

1. Write pseudocode that reads two numbers and divide one by another and display the quotient.

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 an algorithm to determine who takes the cake?

3. Write the pseudocode to print all multiples of 5 between 10 and 25 (including both 10 and 25).

4. Give an example of a loop that is to be executed a certain number of times.

5. Suppose you are collecting money for something. You need 200 in all. You ask your parents, uncles and aunts as well as grandparents. Different people may give either 10, 20 or even 50. You will collect till the total becomes 200. Write the algorithm.

6. Write the pseudocode to print the bill depending upon the price and quantity of an item. Also print Bill GST, which is the bill after adding 5% of tax in the total bill.

7. Write pseudocode that will perform the following:
a) Read the marks of three subjects: Computer Science, Mathematics and Physics, out of 100
b) Calculate the aggregate marks
c) Calculate the percentage of marks

8. Write an algorithm to find the greatest among two different numbers entered by the user.

9. Write an algorithm that performs the following:
Ask a user to enter a number. If the number is between 5 and 15, write the word GREEN. If the number is between 15 and 25, write the word BLUE. if the number is between 25 and 35, write the word ORANGE. If it is any other number, write that ALL COLOURS ARE BEAUTIFUL.

10. Write an algorithm that accepts four numbers as input and find the largest and smallest of them.

11. Write an algorithm to display the total water bill charges of the month depending upon the number of units
consumed by the customer as per the following criteria:
• for the first 100 units @ 5 per unit
• for next 150 units @ 10 per unit
• more than 250 units @ 20 per unit
Also add meter charges of 75 per month to calculate the total water bill .

12. What are conditionals? When they are required in a program?

13. Match the pairs

Answer:

14. Following is an algorithm for going to school or college. Can you suggest improvements in this to include other options?
Reach_School_Algorithm
a) Wake up
b) Get ready
c) Take lunch box
d) Take bus
e) Get off the bus
f) Reach school or college

15. Write a pseudocode to calculate the factorial of a number ( Hint: Factorial of 5, written as 5! =5 × 4× 3× 2×1) .

16. Draw a flowchart to check whether a given number is an Armstrong number. An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. For example, 371 is an Armstrong number since 33 + 73 + 1**3 = 371.

17. Following is an algorithm to classify numbers as “Single Digit”, “Double Digit” or “Big”.
Classify_Numbers_Algo
INPUT Number
IF Number < 9
“Single Digit”
Else If Number < 99
“Double Digit”
Else
“Big”

Verify for (5, 9, 47, 99, 100 200) and correct the algorithm if required

18. For some calculations, we want an algorithm that accepts only positive integers upto 100.

Accept_1to100_Algo
INPUT Number
IF (0<= Number) AND (Number <= 100)
ACCEPT
Else
REJECT

a) On what values will this algorithm fail?
b) Can you improve the algorithm?

Read More

Chapter 3 Emerging Trends | class 11th | Ncert solution for computer

NCERT Solutions Class 11 Computer Science Chapter 3 Emerging Trends

Question 1: List some of the cloud-based services that you are using at present.

Answer:

  • Platform as a Service (PaaS) –

It is use for performing Online Coding.

  • Infrastructure as a Service (IaaS) –

It is a web services. Ex. Amazon web service

  • Software as a Service (SaaS) –

SaaS is web based software. Ex . Google map

Question 2: What do you understand by the Internet of Things? List some of its potential applications.

Answer:

Internet of things are related with the human, object, things, animals, car, door, etc. The all things, objects, or living things are immerse with sensor, software, hardware or network for exchanging a data between other devices via same network. With the help of IOT now we can convert our all daily appliances to smart appliances.

List some of its potential applications:

  • Health care (patient monitoring system, hand sanitizations)
  • Industry (Facility management, quality control)
  • Domestic appliances (Automatic power off/on control , door locker)
  • Agriculture (smart farm by using IOT sensor)
  • Transportation (Vehicle tracking)

Question3. Write short notes on the following:

a) Cloud Computing

b) Big data and its Characteristics

Answer:

a) Cloud computing:

Cloud computing is a service which is used to send data over the internet or cloud.

Simply, cloud is a service provider. There are so many Cloud Service Provider Companies are    there. Some of them provide free service and some are paid. We can also stored the the data in our cloud.

Basically, internet and cloud is somewhat same. There are three types of cloud services are there:

  • SaaS: Software as a service provides services via internet for distribution. With the help of Saas an independent one can interacts with the other clients for administrate the application.
  • Paas: With the help of Platform as a service we can able to perform developing running, debugging like coding operation. Paas is generally used for online coding.
  • Iaas: Infrastructure as service provide a web service throughout the internet . Example: Amazon web service

b) Big data and its Characteristics:
As a name suggest it is about huge data manipulation including both structured and unstructured. By using big data we can increase the quality of a data, optimize the data, and manipulate data easily. We know that, in todays, we are all exchanging a data through mobile via internet. In result, the large volume of data is generated and it may be critical also. This data is known as big data. The unstructured data like social media post, chat massages, images, etc. with big volume are very fluently managed by the specialized tools of big data.
Following are the characteristics of big data:

1) Volume:
We know that the big data itself is huge in size. Volume of a big data is related with the size of data
2) Velocity:
The velocity of big data is directly related with how much data is created And getting structured in a stroke from different sources.
3) Verity:
When we browsing, searching or do internet surfing. At that we are dealing with different types of data like music, images, text, videos etc.  Some of them are structured, semi structured or unstructured. Big data can daily with different type of verities of data.
4) Veracity:

It is defined a correctness of data. The data which will be stored, it must be meaningful. Because interpreting incorrect data may cause wrong result.

Question 4. Explain the following along with their applications.

a) Artificial Intelligence

b) Machine Learning

Answer:

a) Artificial Intelligence:

In general term, AI is defined as to make a machine smart as it can do the task better than human. AI means to put a human intelligent into machine. Ai works like a human being. We have to trained our machine with information and knowledge. And machine also learnt from them. As well as from its past experience. As named suggest, we have to put intelligent artificially into the machine
Here are the some example of AI:

  • Siri
  • Google voice
  • Alexa,Etc

b) Machine Learning

Machine learning is a part or application of artificial intelligence. Machine learning provide ability to teach, learn, expertise the machine without any human efforts. Four basic steps are there for building a machine learning application:

  1. Select and prepare :

Firstly, we have to prepare a training dataset with respective data for particular machine learning model.

  1. Choose an algorithm:

Then we have to choose a appropriate algorithm. It tells as how our machine learning model processes our model flow. There are two types of algorithms: Labeled and unlabeled

  1. Training:

It is all about the checking, running, comparing and adjusting a result with the required output.

  1. Improving the model:

The last step is improving quality, correctness, efficiency of a model with respect to time and size.

Question 5. Differentiate between cloud computing and grid computing with suitable examples.

Answer:

Cloud computingGrid computing
Cloud computing is client server architectureGrid  computing is distributed server architecture
 In cloud computing, resources are used in centralized patternIn grid computing, resources are used in collaborative pattern
Cloud service is a paid servicegrid service is a free service
It is more flexibleIt is less flexible
Example: Salesforce, hubspotExample: Bluegrid, DISCOM

Question 6. Justify the following statement: “Storage of data is cost-effective and time saving in cloud computing.”

Answer:

While working on internet or  any system,  we create different types of files and folders, etc.  This data is stored in our local hard disk. But now a days the volume of data are increased  day by day. At the time our local hard disks and a primary storage is not sufficient for storage. And when you go for purchasing external memory or external disk for storing a data, it requires lot of money. When this type of situation occurs, to overcome the situation we can use cloud computing.  In cloud computing we have to just purchase a service not storage. So it will be effective than previous. In cloud computing we just need internet service and revenant data. Hence storage data is cost effective and time saving in cloud computing.

Question 7. What is on-demand service? How it is provided in cloud computing?

Answer:

On-demand service is like a gate and drop service.  Whenever the customer required cloud service for particular time he or she can purchase it and whenever the task is completed, he or she can drop the service. On demand service provides services to the customer or client according to their needs. Example: If a company XYZ want a service for a particular project and for a particular time only. At that time they would be purchase  this service and dropout after the completion of project.

Question8. Write examples of the following:

  1. a) Government provided cloud computing platform
  2. b) Large scale private cloud service providers and the services they provide

Answer:

  1. a) Government provided cloud computing platform : MeghRaj is cloud service which is provided by government.
  2. b) Large scale private cloud service providers and the services they provide : the most commonly large scale private cloud platform is AWS. Amazon Web Service is Iaas (Infrastructure as a service) cloud platform

Question9. A company interested in cloud computing is looking for a provider who offers a set of basic services, such as virtual server provisioning and on demand storage that can be combined into a platform for deploying and running customized applications. What type of cloud computing model fits these requirements?

  1. a) Platform as a Service
  2. b) Software as a Service
  3. c) Application as a Service
  4. d) Infrastructure as a Service

Answer: “Infrastructure as a service” provides a platform for deploying and running customized application.

Question10. If the government plans to make a smart school by applying IoT concepts, how can each of the following be implemented in order to transform a school into IoT-enabled smart school?

  1. a) e-textbooks
  2. b) Smart boards
  3. c) Online Tests
  4. d) Wifi sensors on classrooms doors
  5. e) Sensors in buses to monitor their location
  6. f) Wearables (watches or smart belts) for attendance monitoring.

Answer:

e-textbooks : By using IOT we can available digital book to student for get access from anytime and anywhere.

Smart boards: With the help of IOT we can make a school board work like a tablet. Instead of chalk we can use wireless pen and our hand as a duster.

Online Tests: We can take test virtually. And observe the student via camera and facial       We can also check the answer digitally.

Wifi sensors on classrooms doors: With the help of IOT we can make our door smart. For example, whenever the student enters in classroom, automatically his/her attendance noted.

Sensors in buses to monitor their location: for the safety purpose of student w can track the student via GPS sensor which is monitarized by their parents.

Wearables (watches or smart belts) for attendance monitoring: with the help of wireless sensor, we can track the attendance of students through their watches. Whenever the student enters in classroom the attendance will get marked.

Question 11. Five friends plan to try a startup. However, they have a limited budget and limited computer infrastructure. How can they avail the benefits of cloud services to launch their startup?

Answer:

Cloud service applies charges only for service no for storage and resource. Once we purchase any service, it will be for a lifetime. And we can store a large amount of data into it. Infrastructure as a service is a best service for a startup plans

Question 12. Governments provide various scholarships to students of different classes. Prepare a report on how blockchain technology can be used to promote accountability, transparency and efficiency in distribution of scholarships?

Answer:

Question 13. How are IoT and WoT related?

Answer:

IOT is a internet of thing which is related with things like object which we will use daily. And WoT is web of things which is responsible to connect those IOT things to the web and communicate with the help of various devices like sensor.

Question 14. Match the columns:

Column AColumn B
1. You got a reminder to take medicationA. Smart Parking
2. You got an SMS alert that you forgot to lock the doorB. Smart wearable
3. You got an SMS alert that parking space is available near your blockC. Home Automation
4. You turned off your LED TV from your wrist watchD. Smart Health

Answer:

1. You got a reminder to take medicationD. Smart Health
2. You got an SMS alert that you forgot to lock the doorC. Home Automation
3. You got an SMS alert that parking space is available near your blockA. Smart Parking
4. You turned off your LED TV from your wrist watchB. Smart wearable
Read More

Chapter 2 : Encoding Schemes and Number System | class 11th | Ncert solution for computer

NCERT Solutions Class 11 Computer Science Chapter 2 Encoding Schemes and Number System

Question 1:  Write base values of binary, octal and hexadecimal number system.

Answer:

NUMBER SYSTEMBASE VALUE
Binary number system2
Octal number system8
hexadecimal number system16

Question 2:  Give full form of ASCII and ISCII.

Answer:

  • The full form of ASCII is American Standard Code for Information
  • The full form of ISCII is Indian Script Code for Information Interchange.

Question 3:   Try the following conversions.

(i) (514)8 = (?)10         (iv) (4D9)16 = (?)10

(ii) (220)8 = (?)2          (v) (11001010)2 = (?)10

(iii) (76F)16 = (?)10    (vi) (1010111)2 = (?)10

Answer:

  • (514)8 = (?)10
Digits51   4
Position21   0
Weight828180

Therefore,

                  Decimal number = 5×82 + 1×8+ 4×8

                                      = 5×64 + 1×8 + 4× 1

                                      = 320 + 8 + 4

= (332)10

  • (220)8 = (?)2
Octal Digits22   0
Binary value    (3 bits)010010   000

Therefore,

                  Binary number = (010010000)2

  • (76F)16 = (?)10
Digits76  F(15)
Position21   0
Weight162161160

Therefore,

Decimal number = 7×162 + 6×16+ F×16

                         = 7×256 + 6×16 + F× 1

                                      = 1792 + 96 + 15

                                         = (1903)10

  • (4D9)16 = (?)10
Digits4D  9
Position21   0
Weight162161160

Therefore,

Decimal number = 4×162 + 13×16+ 9×16

                         = 4×256 + 13×16 + 9× 1

                                      = 1024 + 208 + 9

                                         = (1241)10

  • (11001010)2 = (?)10
Digits11001010
Position76543210
Weight2726252423222120

 Therefore,

Decimal number = 1×27+ 1×26+0×25 +0×24 +1×23 +0×22 +1×21 +0×20

                         = 128+64 +8 + 2

                                      = (202)10

  • (1010111)2 = (?)10
Digits1010111
Position6543210
Weight26252423222120

Therefore,

Decimal number = 1×26+ 0×25+1×24 +0×23 +1×22 +1×21 +1×20

                         = 64 +16 + 4+ 2 +1

                                      = (87)10

Question 4: Do the following conversions from decimal number to other number systems.

(i) (54)10 = (?)2          (iv) (889)10 = (?)8

(ii) (120)10 = (?)2        (v) (789)10 = (?)16

(iii) (76)10 = (?)8        (vi) (108)10 = (?)16

Answer:

Question 5: Express the following octal numbers into their equivalent decimal numbers.

(i) 145

(ii) 6760

(iii) 455

(iv) 10.75

Answer:

(i) 145

Digits14   5
Position21   0
Weight828180

Therefore,

 Decimal number = 1×82 +4×8+ 5×8

                                      =1×64 + 4×8 + 5× 1

                                      =64 + 32 + 5

= (101)10

(ii) 6760

Digits676  0
Position321  0
Weight838281    80

Therefore,

Decimal number = 6×83 +7×82 +6×8+ 0×8

                                      =6×512 + 7×64 +6×8 + 0× 1

                                      =3072 + 448 + 48+0

= (3568)10

(i) 455

Digits45   5
Position21   0
Weight828180

Therefore,

Decimal number = 4×82 +5×8+ 5×8

                                      =4×64 + 5×8 + 5× 1

                                      =256 + 40 + 5

= (301)10

(iv) 10.75

Digits10   75
Position10   -1-2
Weight81808-18-2

 Therefore,

Decimal number = 1×81+0×80+7×8-1+5×8-2 

                                        =1×8+0×1+7×0.125+5×0.015625

                                        =8+0+0.875+0.078125

= (8.953125)10

Question 6:  Express the following decimal numbers into hexadecimal numbers. (i) 548 (ii) 4052 (iii) 58 (iv) 100.25

Read More

Chapter 1 : Computer System | class 11th | Ncert solution for computer

NCERT Solution Class 11 Computer Science Chapter 1 – Computer System

1.) Name the software required to make a computer functional. Write down its two primary services?

Ans: To make a computer functional operating system is required. The two services of primary services:

1) Operating system provides services for building and running the application.

2) Operating system provide user interface to the user for enable interaction between computer and  user.

2.) How does the computer understand a program written in high level language?

Ans: Computer understands only machine level language (0 and 1). High level language is a simple English type language written in some symmetric format. To convert high level language into machine language there is need of compiler which can be understood by computer.

3.) Why is the execution time of the machine code less than that of source code?

Ans: We know that computer readable language is machine language. So there is no need to convert machine language whereas Source codes are written in high level language. So there is need to convert it into machine language first. Hence, the execution time of machine language is less than source code.

4.) What is the need of RAM? How does it differ from ROM?

Ans:  RAM (random access memory) is used for quickly accessing a data. RAM is a temporary storage memory and it stores the active using data. Whereas ROM is a read only memory and it is a permanent storage device. Data in RAM is erased when power goes off whereas in ROM data remain as it is.

5.) What is the need for secondary memory?

Ans:  Secondary memory provides a large storage facility as well as it is very cheap .There is a need of secondary storage because it is a permanent storage device. Unlike ROM and RAM secondary memory doesn’t have limited storage.

6.) How do different components of the computer communicate with each other?

Ans: Component of a computer communicate with each other with the help of system bus. System bus provides the facility to transfer the data as well as memory address between one component to another.

7.) Draw the block diagram of a computer system. Briefly write about the functionality of each component.

Ans:

INPUT UNIT :

Input unit has following function:

  • Input unit takes a data instruction from the user for further processing.
  • We know that computer understand machine language. Input unit converts the data to the machine language (machine readable form)

They are various types of input devices are available like keyboard, scanner, mouse, touch screen devices, etc.

CENTRAL PROCESSING UNIT:

CPU i.e.  Central processing unit is responsible for performing all tasks of computer. CPU is like a heart of computer.CPU consists of 3 units:

  • Primary memory
  • Control unit
  • Arithmetic logic unit

ALU:

Arithmetic and logical unit responsible for performing all arithmetic operation like addition, subtraction, multiplication and division .It also responsible for conduct merging, sorting like all sorting techniques .All the calculations of the data perform by ALU.

Control unit:

Control unit is used to control the signals. Control unit receives the instruction, data, and information from input devices and converts it into control signals.

Primary memory:

There are two types of primary memory

  • RAM
  • ROM

RAM:

  • RAM means random access memory.
  • It is a volatile storage.
  • The data stored in RAM temporary.
  • RAM stores the data of active task.

 ROM :

  • ROM mans read only memory.
  • The data stored in ROM is permanent.
  • It cannot be erased during the power cut off.
  • It is a non volatile memory.

OUTPUT UNIT:

An output device is one of the components of computer. output devices is responsible to convert machine code into the human readable form. Monitor, printer etc. are output devices.  The output given by the computer can be in any type like text, graphics, audio, video etc

8.) What is the primary role of system bus? Why data bus is is bidirectional while address bus is unidirectional?

Ans :  To transfer the data, address, control signal between the computer there is a need of system bus. With the help of system bus components of a computer can communicate with each other. Data bus is bidirectional because of two-way transfer process. IT transfers the data among CPU,memory and other peripheral devices. Address bus is unidirectional because whenever the data written in the memory, CPU placed the data on data bus. After that address bus provide specific address to   write the data.

9.) Differentiate between proprietary software and freeware software. Name two software for each type.

Ans:

Proprietary softwareFreeware software
Proprietary software is software which is not available freely or publically.Freeware software are available anywhere publically.
To get Proprietary software there is a need of authenticate licenseTo get freeware software there is no need of authenticate license
To get Proprietary software we must have to pay for itfree software are free of charge
Example: adobe flash player, winRARExample: Linux, vlc player

10.) Write the main difference between microcontroller Notes and microprocessor. Why do smart home appliances have a microcontroller instead of microprocessor embedded in them?

Ans:

MICRO CONTROLLERMICRO PROCESSOR
Micro controller used for perform particular taskMicro processor used for intensive processing
Micro controller does not  have capacity to perform multiple  taskMicro processor have capacity to perform multiple  task
Size of micro controller: 8bit,16 bit,32 bitSize of micro processor: 64 bit,32 bit
Micro controller is cheaper in costMicro processor is expensive
MICRO CONTROLLER consumed less powerMICRO processor consumed more power
Application: microwave ovenApplication: computer, laptop

Smart home appliances have a micro controller because it consumed less electricity. As well as it is very low in cost. Microcontroller requires very less space, it does not require CPU and other peripheral devices.

11.) Mention the different types of data that you deal with while browsing the Internet.

Ans:

Different types of data while browsing the Internet:

Structured: the data which is stored in most organized way is known as structured data

Unstructured: the data which is not stored in organized way is known as unstructured data

Semi structured: the data lies in between the structured and unstructured data is known as semi structured data

12.) Categories the following data as structured, semi structured and unstructured:

  • Newspaper
  • Cricket Match Score
  • HTML Page
  • Patient records in a hospital

Ans:

STRUCTUREDSEMI STRUCTUREDUNSTRUCTURED
Patient record in hospitalCricket match scoreHtml pagenewspaper

13.) Name the input or output device used to do the following:

a) To output audio

b) To enter textual data

c) To make hard copy of a text file

d) To display the data or information

e) To enter audio-based command

f) To build 3D models

g) To assist a visually-impaired individual in entering data

Ans:

a) To output audio – Speaker

b) To enter textual data – Keyboard

c) To make hard copy of a text file – Printer

d) To display the data or information – Monitor

e) To enter audio-based command – Mic

f) To build 3D models – 3D Printer

g) To assist a visually-impaired individual in entering data – Braille keyboards

14.) Identify the category (system, application, programming tool) of the following software:

a) Compiler

b) Assembler

c) Ubuntu

d) Text editor

Ans:

a) Compiler – Programming tool

b) Assembler – Programming tool

c) Ubuntu – System

d) Text editor – Application

Read More

Chapter 3 आवारा मसीहा | class 11th | Ncert solution Hindi Antral

NCERT Solutions for Class XI Antaral Hindi Chapter 3 -Awara Maseeha

अंतराल भाग -1 आवारा मसीहा (निम्नलिखित प्रश्नों के उत्तर एक या दो पंक्तियों में दीजिए )


प्रश्न 1:”उस समय वह सोच भी नहीं सकता था कि मनुष्य को दुख पहुँचाने के अलावा भी साहित्य का कोई उद्देश्य हो सकता है।” लेखक ने ऐसा क्यों कहा? आपके विचार से साहित्य के कौन-कौन से उद्देश्य हो सकते हैं?
उत्तर :  शरतचंद्र के बचपन में उन्हें साहित्य दुखदायी लगता था। विद्यालय में उन्हें सीता-वनवास, चारू-पाठ, सद्भाव-सद्गुण तथा प्रकांड व्याकरण जैसी साहित्यिक रचनाएँ पढ़नी पड़ती थी। शरतचंद्र को ये अच्छी नहीं लगती थीं। पंडित जी द्वारा रोज़ परीक्षा लिए जाने पर उन्हें मार भी खानी पड़ती थी। अतः अपने बचपन में साहित्य उन्हें दुखदायी लगा। यही कारण है कि लेखक ने ऐसा कहा। हमारे विचार से साहित्य के बहुत से उद्देश्य हो सकते हैं। वे इस प्रकार हैं-
• साहित्य मनुष्य के मनोरंजन का बहुत उत्तम साधन है। इसको पढ़ने से समय अच्छा व्यतीत होता है।
• यदि मनुष्य अच्छा साहित्य पढ़ता है, तो मनुष्य का ज्ञान बढ़ाता है। उसकी सोच को नई दिशा मिलती है।
• साहित्य में इतिहास संबंधी बहुत से तथ्य विद्यमान होते हैं। साहित्य के माध्यम से इतिहास की सही जानकारी मिलती है।
• साहित्य के माध्यम से मनुष्य अपने देश, गाँव, समाज इत्यादि के समीप आ जाता है। उसमें विद्यमान सामाजिक मान्यताओं, विषमताओं, कमियों, खुबियों इत्यादि को जाना जा सकता है।


प्रश्न 2:पाठ के आधार पर बताइए कि उस समय के और वर्तमान समय के पढ़ने-पढ़ाने के तौर-तरीकों में क्या अंतर और समानताएँ हैं? आप पढ़ने-पढ़ाने के कौन से तौर-तरीकों के पक्ष में हैं और क्यों?
उत्तर :  उस समय और आज के समय में पढ़ाई के तरीकों में समानताएँ इस प्रकार हैं ।-
(क) पहले और आज के समय में अनुशासन का कढ़ाई से पालन करवाया जाता है। बच्चों को ज्ञान देने के स्थान पर जीविका के साधन उपलब्ध करवाने पर अधिक ध्यान दिया जाता है। यही कारण है कि उसे रटाया जाता है।
(ख) पहले बच्चों की प्रतिदिन परीक्षा लेने का  प्रावधान था। वह आज भी देखने को मिलता है। क्लास टेस्ट, एफ.ए.-1, एफ.ए.-2, एफ.ए.-3, एफ.ए.-4, एस.ए.-1 और एस.ए.-2 इत्यादि टेस्ट बच्चों को देने पड़ते हैं। इस तरह का दबाव बच्चों को पढ़ाई से दूर करता है और पढ़ाई का डर उनके मन में भर देता है।
(ग) उस समय विद्यालय में पढ़ाई को महत्व दिया जाता था। खेलकूद आदि महत्वपूर्ण नहीं थे।
पहले के समय और आज के समय में पढ़ाई के तरीकों में अंतर इस प्रकार हैं-
(क) पहले बच्चों की प्रतिभा और रुचि पर ध्यान नहीं दिया जाता था। सबको सम्मान रूप से एक ही चीज़ पढ़ाई जाती थी। परन्तु आज ऐसा नहीं है। बच्चों की रुचि तथा योग्यता को देखकर उसे आगे बढ़ाया जाता है। आरंभिक शिक्षा बेशक एक-सी हो लेकिन आगे चलकर बच्चे के पास अपना मनपसंद विषय लेने का अधिकार होता है।
(ख) पहले के समान आज शारीरिक दंड नहीं दिया जाता है। अब बच्चों को प्रेम से समझाया जाता है।
(ग) अब खेलकूद, कला आदि को भी शिक्षा के समान प्राथमिकता दी जाती है।


प्रश्न 3:पाठ में अनेक अंश बाल सुलभ चंचलताओं, शरारतों को बहुत रोचक ढंग से उजागर करते हैं। आपको कौन सा अंश अच्छा लगा और क्यों? वर्तमान समय में इन बाल सुलभ क्रियाओं में क्या परिवर्तन आए हैं?
उत्तर :   पाठ शरतचंद्र की बहुत-सी बाल सुलभ चंचलताओं और शरारतों से भरा पड़ा है। उनका तितली पकड़ना, तालाब में नहाना, उपवन लगाना, पशु-पक्षी पालना, पिता के पुस्तकालय से पुस्तकें पढ़ना और पुस्तकों में दी गई जानकारी का प्रयोग करना। एक बार तो उन्होंने पुस्तक में साँप के वश में करने का मंत्र तक पढ़कर उसका प्रयोग कर डाला। शरतचंद्र द्वारा उपवन लगाना और पशु-पक्षी पालने वाला अंश अच्छा लगा। यह ऐसा अंश है, जो आज के बच्चों में दिखाई नहीं देता है। शरतचंद्र जैसे कार्यों को करके हम प्रकृति के समीप आते हैं। इससे हमारा पशु-पक्षियों के प्रति प्रेमभाव बढ़ता है। आज इमारतों के जंगल में बच्चों को ऐसे कार्य करने के लिए ही नहीं मिलते हैं। आज के समय में बाल सुलभ क्रियाओं में बहुत परिवर्तन आएँ हैं। बच्चे प्रकृति के समीप कम और गेजेट्स के समीप पहुँच गए हैं। उनके हाथ में बचपन से ही ये आ जाते हैं। इनमें वे विभिन्न प्रकार की शरारतें करते दिख जाते हैं। वे इसका दुरुप्रयोग कर रहे हैं। यह उनके सही नहीं है। समय बदल रहा है और आधुनिकता का ये जहर बच्चों के बचपन को निगल रहा है।


प्रश्न 4:नाना के घर किन-किन बातों का निषेध था? शरत् को उन निषिद्ध कार्यों को करना क्यों प्रिय था?
उत्तर :  शरद के नाना बहुत सख्त थे। उनका मानना था कि बच्चों कार्य बस पढ़ना होना चाहिए। अतः उन्होंने बच्चों को बहुत-सी बातें करने से साफ़ मना किया हुआ था। उसमें तालाब में नहाना, पशु तथा पक्षियों को पालना, बाहर जाकर खेलना, उपवन लगाना, घूमना, पतंग, लट्टू, गिल्ली-डंडा तथा गोली इत्यादि खेल खेलना तक निषिद्ध था। जो उनकी बातें नहीं मानता था, उसे बहुत कठोर दंड दिया जाता था। शरत् स्वभाव से स्वतंत्रतापूर्वक जीने का इच्छुक था। नाना की सख्ती और रोक उसे बंधन लगती थी। वह एक विद्रोही के समान सब बंधनों को तोड़ता था। इसके लिए हिम्मत की आवश्यकता होती है और जो उसमें बहुत थी।


प्रश्न 5:आपको शरत् और उसके पिता मोतीलाल के स्वभाव में क्या समानताएँ नज़र आती हैं? उदाहरण सहित स्पष्ट कीजिए।
उत्तर : शरत् के अंदर अपने पिता मोतीलाल के स्वभाव की बहुत समानताएँ विद्यमान थीं। वे इस प्रकार हैं-
• शरत् पिता के समान साहित्य पढ़ने और लिखने का शौकीन था। उसने अपने पिता के पुस्तकालय की सभी पुस्तकें पढ़ ली थीं।
• उनके पिता स्वभाव से स्वतंत्र व्यक्ति थे, शरत् भी ऐसा ही था। उसने कभी बंधकर रहना नहीं सीखा था। अतः नाना के हज़ार बंधन उसे रोक नहीं पाए।
• शरत् तथा उसके पिता सभी लोगों को समान दृष्टि से देखते थे। उनके लिए कोई बड़ा-छोटा नहीं था।
• उसका सौंदर्य बोध पिता के समान ही था। जो उनके लेखन में स्पष्ट रूप से झलकता है।
• वह पिता के समान यायावार प्रकृति के व्यक्ति था। एक स्थान पर टिकना उसके लिए संभव नहीं था।


प्रश्न 6:शरत् की रचनाओं में उनके जीवन की अनेक घटनाएँ और पात्र सजीव हो उठे हैं। पाठ के आधार पर विवेचना कीजिए।
उत्तर :  शरत् की रचनाओं में जिन घटनाओं का उल्लेख हुआ है, वे सच में उनके जीवन की अनेक घटनाएँ और पात्र हैं। उन्होंने अपने जीवन में जो भोगा, जिन लोगों को पाया, जो अनुभव प्राप्त किया उसे अपनी रचनाओं में उतार डाला। ये ऐसा विवरण है, जिनसे हमें शरत् के जीवन का परिचय मिल जाता है। उसके मन तथा जीवन की थाह मिल जाती है। नीचे दी जानकारी से वह स्पष्ट हो जाएगा-
(क) शरत् ने बचपन में बाग से बहुत आम चुराकर खाए थे। यदि कभी पकड़े जाते, तो मिलने वाली सज़ा से भागे नहीं बल्कि किसी वीर के समान उसे भोगा था। उनके पात्र देवदास, श्रीकांत, दर्दांतराम और सव्यसाची शरत के जीवन की झलक देते हैं।
(ख) शरत् स्वभाव से अपरिग्रही था। उसे जो मिलता था, वह दूसरों में बाँट देता था। इस कारण शरतचंद्र की पात्र ‘बड़ी बहू’ बहुत परेशान थी।
(ग) साँप को वश में करने की कला को उन्होंने अपने पिता के पुस्तकालय में एक पुस्तक से सीखा था। वैसे तो यह बात सत्य नहीं थी परन्तु अपनी रचना ‘श्रीकांत’ तथा ‘विलासी’ रचना में इस विद्या के विषय में उन्होंने बताया है।
(घ) उनके पिता घर-जँवाई बनकर रहे थे। अतः ‘काशीनाथ’ का पात्र काशीनाथ ऐसा ही व्यक्ति था, जो घर-जँवाई बनकर रहता है।
(ङ) उनकी माता द्वारा अपने पति को काम न किए जाने पर ठेस पहुँचाना और पिता मोतीलाल का इस बात पर घर से निकल जाना। इसी घटना का वर्णन उन्होंने ‘शुभदा’ के हारान बाबू के रूप में किया है।
(च) शरत की मित्र धीरू थी। दोनों में बहुत गहरी मित्रता था। धीरू के चरित्र को उन्होंने ‘पारो’ (देवदास), ‘माधवी’ (बड़ी दीदी) तथा ‘राजलक्ष्मी’ (श्रीकांत) के रूप में चित्रण किया है।
(छ) उनकी रचना में एक विधवा स्त्री का उल्लेख मिलता है।  उसके  बहनोई तथा देवर की उस पर बुरी दृष्टि है। उसने एक बार बीमार शरत् की सहायता की थी। वह इन दो राक्षसों से स्वयं को बचाना चाहती थी। अतः जब ठीक होकर शरत् घर को जाने लगे, तो वह उनके पीछे चल पड़ी। उसे खोजते हुए दोनों राक्षस आ गए और शरत् को मारकर उसे बलपूर्वक अपने साथ ले गए। ‘चरित्रहीन’ रचना में इसी घटना का उल्लेख मिलता है।
(ज) ‘शुभदा’  में उन्होंने अपनी गरीबी का भयानक और मार्मिक चित्रण किया है।
इस आधार पर हम कह सकते हैं कि शरत् की रचनाओं में उनके जीवन की अनेक घटनाएँ और पात्र सजीव हो उठे हैं।


प्रश्न 7:  ”जो रुदन के विभिन्न रूपों को पहचानता है वह साधारण बालक नहीं है। बड़ा होकर वह निश्चय ही मनस्तत्व के व्यापार में प्रसिद्ध होगा।” अघोर बाबू के मित्र की इस टिप्पणी पर अपनी टिप्पणी कीजिए।
उत्तर :   अघोर बाबू के मित्र ने जो टिप्पणी की वह बालक के भाव व्यापार को समझने की क्षमता के आधार पर की थी। अघोर बाबू के मित्र जानते थे कि साहित्य सृजन के लिए मनुष्य का अति संवेदनशील होना आवश्यक है। शरत् में यह गुण विद्यमान था। छोटे से ही उनमें संवेदनशीलता का गुण आ गया था। वह अपने आस-पास के वातावरण तथा परिवेश का सूक्ष्म निरीक्षण करने में दक्ष थे। अतः अघोर बाबू जानते थे कि जिस बालक में इस प्रकार की क्षमता इस समय मौजूद है, तो आगे चलकर यह बालक मनस्तत्व के व्यापार में प्रसिद्ध होगा। ऐसा बालक उस संवेदना को पूर्णरूप से कागज़ में पात्रों के माध्यम से उकेर पाएगा। उनका यह कथन आगे चलकर सत्य भी सिद्ध हुआ। उनकी प्रत्येक रचना इस बात का प्रमाण है।

Read More

Chapter 2 हुसैन की कहानी अपनी ज़बानी | class 11th | Ncert solution Hindi Antral

NCERT Solutions for Class 11th: पाठ 2 – हुसैन की कहानी अपनी ज़बानी

1. लेखक ने अपने पाँच मित्रों के जो शब्द-चित्र प्रस्तुत किए हैं, उनसे उनके अलग-अलग व्यक्तित्व की झलक मिलती है। फिर भी वे घनिष्ठ मित्र हैं, कैसे?

उत्तर

लेखक ने अपने पाँच मित्रों के जो शब्द-चित्र प्रस्तुत किए हैं, उसके अनुसार पाँचों के स्वभाव अलग-अलग हैं, किंतु इससे उनकी मित्रता पर कभी फर्क नहीं पड़ा क्योंकि उन सब में कलाकार की सोच विद्यमान थी| पाँचों की मित्रता स्वार्थ पर आधारित नहीं थी इसलिए वे घनिष्ठ मित्र थे।

2. ‘प्रतिभा छुपाये नहीं छुपती’ कथन के आधार पर मकबूल फिदा हुसैन के व्यक्तित्व पर प्रकाश डालिए।

उत्तर

लेखक को अपने दादा से विशेष लगाव था जिसका प्रमाण इस घटना से मिलता है कि जब लेखक के दादाजी की मृत्यु हुई तो वह अपने दादाजी के कमरे में ही बंद रहने लगा। वह अपने दादाजी के बिस्तर पर उनकी भूरी अचकन ओढ़कर – इस प्रकार सोता था मानो वह अपने दादाजी से लिपटकर सोया हुआ है।

3. ‘लेखक जन्मजात कलाकार है।’-इस आत्मकथा में सबसे पहले यह कहाँ उद्घाटित होता है?

उत्तर

“लेखक जन्मजात कलाकार है,” ‘इस बात का पता इस पाठ में उस समय चलता है जब बड़ौदा के बोर्डिंग स्कूल में जथा उस समय उसके ड्राइंग के शिक्षक मास्टर मोहम्मद अतहर ने ब्लैक बोर्ड पर सफेद चॉक से एक बड़ी-सी चिड़िया बनाई और लड़कों से कहा कि ‘अपनी-अपनी स्लेट पर इस चिड़िया की नकल करो।’ मकबूल फिदा हुसैन ने उस चिड़िया को बिल्कुल उसी तरह से बना दिया जैसे मास्टर मोहम्मद अतहर ने ब्लैक बोर्ड पर बनाई थी।

4. दुकान पर बैठे-बैठे भी मकबूल के भीतर का कलाकार उसके किन कार्यकलापों से अभिव्यक्त होता है?

उत्तर

मकबूल फिदा हुसैन को पेंटिंग से बहुत लगाव था। जब कभी वह दुकान पर बैठते तो वहाँ भी कुछ-न-कुछ ड्राइंग बनाते रहते थे। पेंटिंग से उसका प्यार इतना अधिक था कि हिसाब की किताब में दस रुपये लिखता था तो ड्राइंग की कॉपी में बीस चित्र बना देता था।  कान के सामने से अकसर चूँघट ताने गुजरने वाली एक मेहतरानी का स्केच, गेहूँ की बोरी उठाए मजदूर की पेंचवाली पगड़ी का स्केच, पठान की दाढ़ी और माथे पर सिजदे के निशान, बुरका पहने औरत और बकरी के बच्चे का वह स्केच बनाया करता था। अपनी पहली ऑयल पेंटिंग भी उसने दुकान पर रहकर ही बनायी थी।

5. प्रचार-प्रसार के पुराने तरीकों और वर्तमान तरीकों में क्या फ़र्क आया है? पाठ के आधार पर बताएँ।

उत्तर

प्रचार-प्रसार के पुराने तरीकों और वर्तमान तरीकों में बहुत अंतर आया है। किसी वस्तु का प्रचार के लिए ढोल-नगाड़े आदि बजाकर उसके विषय में घोषणा की जाती थी। एक व्यक्ति रिक्शा, ताँगे आदि में बैठ जाता था और उस वस्तु का पोस्टर लगाकार ढोल बजाते हुए जोर-जोर से उसके विषय में बताता था। कुछ लोग घर-घर जाकर अपनी वस्तु का विज्ञापन किया करते थे। कई बार नुक्कड़ों पर नाटक आदि के माध्यम से भी वस्तु का विज्ञापन किया जाता था। अब किसी भी वस्तु का प्रसार-प्रचार अखबार, मैगजीन, रेडियो, टेलीविज़न, इंटरनेट और मोबाइल फोन ने विज्ञापन को कई गुना तीव्र एवं प्रभावशाली बना दिया है।

6. कला के प्रति लोगों का नजरिया पहले कैसा था? उसमें अब क्या बदलाव आया है?

उत्तर

पहले लोग कला को राजे-महाराजे और अमीरों का शौक मानते थे। गरीब व्यक्ति तो इस विषय में सोच भी नहीं सकता था। उस समय कला आम आदमी का पेट नहीं भर सकती थी। यह केवल समय काटने का साधन थी।लेकिन समय बदला है। आज कला तथा कलाकार का सम्मान किया जाता है। अब तो शिक्षा में भी इसे अभिन्न बना दिया गया है। आज यह जीविका का मज़बूत साधन है। अब कलाकृतियाँ बड़े घरों की ही नहीं, आम घरों के दीवारों की शोभा बनने लगी हैं।

7. मकबूल के पिता के व्यक्तित्व की तुलना अपने पिता के व्यक्तित्व से कीजिए?

उत्तर

विद्यार्थी स्वयं करें|

Read More

Chapter 1 अंडे के छिलके | class 11th | Ncert solution Hindi Antral

NCERT Solutions for Class 11th: पाठ 1 – अंडे के छिलके

1. अंडे के छिलके को जुराब में, कोट की जेब में या नाली में फेंकना बिल्कुल ठीक नहीं! इस पर अपनी राय लिखिए।

उत्तर

अंडे के छिलके को जुराब में, कोट की जेब में या नाली में फेंकना बिल्कुल ठीक नहीं है| मेरे अनुसार अंडे के छिलके को कई ओर प्रयोग में भी लाया जा सकता है जैसे हम अंडे के छिलकों को अच्छे से साफ करके धो उन्हें पिस कर उनको त्वचा को साफ़ रखने लिए उपयोग कर सकते हैं| अंडे के छिलके से हम अपने पीले दांतों को चमका सकते है| अंडे के छिलके की हम खाद बना सकते है|

2. ‘अण्डा खाना क्या कोई अपराध है?’ इस विषय पर निबंध लिखिये।

उत्तर

नहीं, अंडा खाना कोई अपराध की श्रेणी में नहीं आता| यह तो किसी के स्वाद के ऊपर निर्भर करता है कि वह क्या खाए| अंडा खाने से कई तरह के स्वास्थ्य लाभ भी हैं| अंडे में भरपूर मात्रा में कैरोटिनायड्स पाया जाता है जो आंखों के सेहत के लिए बेहद जरूरी है| अंडा खाने से मोतियाबिंद का खतरा नहीं रहता| अंडे में कोलीन पाया जाता है, जिससे याद्दाश्त तेज होती है और दिमाग एक्टिव रहता है| इसके अलावा अंडे में मौजूद विटामिन B-12 टेंशन को दूर करने में मदद करता है| इसमें कुछ ऐसे तत्व भी पाए जाते हैं जो डिप्रेशन दूर कर मूड अच्‍छा बनाते हैं|

अंडे के पीले वाले हिस्‍से में कॉलेस्‍ट्रोल काफी ज्‍यादा होता है| जिन लोगों को वजन बढ़ाना है उन्‍हें अंडे का पीला वाला हिस्‍सा खासतौर पर खाना चाहिए| उपवास के दौरान हमें इसे परहेज करना चाहिए और सात्विक भोजन को ही ग्रहण करना चाहिए| भगवद्गीता के अनुसार मांस, अंडे, खट्टे और तले हुए, मसालेदार और बासी या संरक्षित व ठंडे पदार्थ राजसी-तामसी प्रवृतियों को बढ़ावा देते हैं। इसलिए उपवास के दौरान इनका सेवन नहीं किया जाना चाहिए।

3. “पराया घर तो लगता ही है, भाभी” अपनी भाभी-भाई के कमरे में श्याम को पराएपन का अहसास क्यों होता है?

उत्तर

जब से श्याम की भाभी वीना आई है उसने कमरे का नक्शा ही बदल दिया है। पहले कमरे में सारी चीजें इधर-से उधर फैली रहती थीं, परंतु अब हर चीज व्यवस्थित ढंग से रखी रहती है। यही नहीं, अब इस कमरे में उसकी भाभी-भाई का अधिकार हो गया है। इसलिए श्याम को अब इस कमरे में पराएपन का अहसास होता है।

4. एकांकी में अम्माँ की जो तसवीर उभरती है, अंत में वह बिलकुल बदल जाती है-टिप्पणी कीजिए।

उत्तर

एकांकी में अम्माँ जी की तसवीर रूढ़िवादी विचारोंवाली महिला के रूप में उभरती है। घर में परिवार के सभी सदस्यों में कुछ ऐसी आदतें हैं जो उनके अनुसार अम्माँ जी को बुरी लगती हैं, जैसे घर में अंडे खाना, चंद्रकांता जैसी पुस्तकें पढ़ना तथा सिगरेट पीना इत्यादि| इसलिए परिवार के सब सदस्य ये कार्य छिपकर करते हैं। एकांकी के अंत में माधव सबको यह बात बता देता है कि अम्मा को सब कुछ पहले से ही पता है-वीना और राधा का छुप-छुपकर चंद्रकांता संतति पढ़ना, श्याम का अपने कमरे में दूध में कच्चा अंडा डालकर पीना, गोपाल के कमरे में अंडे का आमलेट और हलवा बनना आदि-आदि। इससे अम्मा की वह छवि जो एकांकी के आरंभ में बनी हुई थी, अंत में पूरी तरह बदल जाती है। वह बहुत सुलझी हुई स्त्री लगती हैं|

5. अंडे खाना, ‘चंद्रकांता संतति’ पढ़ना आदि किन्हीं संदर्भो में गलत नहीं है, फिर भी नाटक के पात्र इन्हें छिपकर करते हैं। क्यों? आप उनकी जगह होते तो क्या करते?

उत्तर

अंडे खाना, ‘चंद्रकांता संतति’ पढ़ना आदि पूरी तरह से गलत नहीं है, फिर भी नाटक के पात्र इन्हें छिपकर करते हैं। इसका कारण यह है कि आज भी मध्यमवर्गीय परिवारों की सोच काफी रूढ़िवादी है जिसके कारण ये सब चीज़ें आज भी उचित नहीं मानी जातीं और परिवार के सदस्य इसे छुप कर करते हैं| अंडा खाने में कोई बुराई नहीं बल्कि इससे कई तरह के स्वास्थ्य लाभ भी हैं परन्तु आज भी कई रूढ़िवादी परिवारों में यह मना है इसलिए कोई भी इन्हें परिवार के अन्य सदस्यों से छिपकर तथा अलग कमरों में बनाकर खाता है ताकि घर के बाकी सदस्यों को पता न चल सके। इसी तरह ‘चंद्रकांता संतति’ पढ़ने में कोई बुराई नहीं है। यह एक तिलस्म कथा है। चूँकि मध्यम परिवारों में पढ़ाई को ज्यादा महत्व दिया जाता है इसलिए ऐसी पुस्तकों को पढ़ने के लिए मना किया जाता है| परिवारों में बच्चों पर इस बात के लिए जोर दिया जाता है कि वे अपने कोर्स की पुस्तकें पढ़ें, न कि तिलस्मी कथाएँ।

यदि हम नाटक के पात्रों की जगह पर होते तो शायद हम भी कभी-कभी ऐसी पुस्तक पढ़ते, क्योंकि बचपन में ऐसी पुस्तकें काफी आकर्षक लगती हैं। हम ऐसी किताब को अपने कोर्स की पुस्तकों के बीच रखकर पढ़ते|

6. राधा के चरित्र की ऐसी कौन सी विशेषताएँ हैं जिन्हें आप अपनाना चाहेंगे?

उत्तर

• राधा कम पढ़ी-लिखी थी परन्तु उसे पढ़ना अच्छा लगता है इसलिए वह पढ़ती रहती है। वह किताबें मँगवा कर रखती थी और रात में जब सब सो जाते हैं, तो वह अपनी इस इच्छा को पूरा करती है।
• वह तेज दिमाग और हाजिर-जवाब है। वह बात को सँभालना जानती है। इसका पता तब चलता है जब अचानक ही अम्मा कमरे में उस समय आ जाती हैं, जब अंडे का हलवा बन रहा था। वह अपनी हाजिर जवाबी से अम्मा के शक को कुछ हद तक दूर करने में सफल हो पाती है।
• राधा अपने बड़ों का सम्मान करती है। वह अपनी सास से विनम्रतापूर्वक कहती है कि उस कमरे में कोई गलत काम नहीं हो रहा।

7. अण्डे का छिलका अनुपयोगी या कूड़ा समझा जाता है तो फिर इसे कहाँ रखा जाना चाहिए? क्या स्वच्छता अभियान मिशन का इस पाठ से कोई संबंध है?

उत्तर

अण्डे का छिलके को हमें सूखे कूड़ेदान में डालना चाहिए| स्वच्छता अभियान के तहत जब सफाईवाला कचरा लेने आये तो गिला और सूखा कचरा अलग अलग डालना चाहिए|

8. स्वच्छता अभियान मिशन पर विद्यार्थी-अध्यापक-अभिभावकों की उपस्थिति में बालसभा का आयोजन कीजिए।

उत्तर

स्वयं करें|

9. कमरे में कौन सी चीज कहाँ रखनी चाहिए? जैसे जंपर, कोट, कपड़ा, जूता, कापी-किताब, कूड़ा-करकट (अण्डे के छिलके) आदि।

उत्तर

जंपर, कोट, कपड़ा, जूता, कापी-किताब जैसी चीज़ों को हमें कमरें में रखनी चाहिए|

Read More