Brief Overview of Python NCERT Solution || Brief Overview of Python Class 11 Solution || Brief Overview of Python Class 11 IP Solution || Brief Overview of Python Information Practices Solution || NCERT Brief Overview of Python Solution || Brief Overview of Python Class 11 IP || Brief Overview of Python Solution

 

Note :-  Please Click on question to get Answer of that Question !!


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

(a) Serial_no.
(b) 1st_Room
(c) Hundred$
(d) Total Marks
(e) Total_Marks
(f) total-Marks
(g) _Percentage
(h) True




Q2. 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.




Q3. 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




Q4. Give the output of the following when num1 = 4, num2 = 3, num3 = 2
(a) num1 += num2 + num3
(b) print (num1)
(c) num1 = num1 ** (num2 + num3)
(d) print (num1)
(e) num1 **= num2 + c
(f) num1 = '5' + '5'
(g) print(num1)
(h) print(4.00/(2.0+2.0))
(i) num1 = 2+9*((3*12)-8)/10
(j) print(num1)
(k) num1 = float(10)
(l) print (num1)
(m) num1 = int('3.14')
(n) print (num1)
(o) print(10 != 9 and 20 >= 20)
(p) print(5 % 10 + 10 < 50 and 29 <= 29)




Q5. Categorise the following as syntax error, logical error or runtime error:
(a) 25 / 0
(b) num1 = 25; num2 = 0; num1/num2




Q6. Write a Python program to calculate the amount payable if money has been lent on simple interest. Principal or money lent = P, Rate = 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.



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



Q8. Write a program to find the average of 3 numbers.



Q9. Write a program that asks the user to enter one's name and age. Print out a message addressed to the user that tells the user the year in which he/she will turn 100 years old.



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



Q11. Find the output of the following program segments:
(a)
for i in range(20,30,2):
    print(i)
(b)
country = 'INDIA'
for i in country:
    print (i)
(c)
i = 0; sum = 0
while i < 9:
    if i % 4 == 0:
        sum = sum + i
    i = i + 2
print (sum)




Case Study Based Question


Schools use “Student Management Information System” (SMIS) to manage student related data. This system provides
facilities for:

Photo

• Recording and maintaining personal details of students.
• Maintaining marks scored in assessments and computing results of students.
• Keeping track of student attendance, and
• Managing many other student-related data in the school.

Let us automate the same step by step.

Identify the personal details of students from your school identity card and write a program to accept these details for all students of your school and display them in this format.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post