Please select a subject first
Advertisements
Advertisements
For the SMIS System given in Chapter 5, let us do the following: Write a program to take in the roll number, name, and percentage of marks for n students of Class X. Write user-defined functions to
- accept details of the n students (n is the number of students)
- search details of a particular student on the basis of roll number and display the result
- display the result of all the students
- find the topper among them
- find the subject toppers among them
(Hint: use Dictionary, where the key can be roll number and the value is an immutable data type containing the name and percentage).
Let’s peer review the case studies of others based on the parameters given under “DOCUMENTATION TIPS” at the end of Chapter 5 and provide feedback to them.
Concept: undefined >> undefined
How would you recognize if one of your friends is being cyberbullied?
What provisions are in the IT Act 2000, (amended in 2008) to combat such situations?
Concept: undefined >> undefined
Advertisements
Which data type will be used to represent the following data values and why?
Number of months in a year
Concept: undefined >> undefined
Which data type will be used to represent the following data values and why?
A resident of Delhi or not
Concept: undefined >> undefined
Which data type will be used to represent the following data values and why?
Mobile number
Concept: undefined >> undefined
Which data type will be used to represent the following data values and why?
Pocket money
Concept: undefined >> undefined
Which data type will be used to represent the following data values and why?
Volume of a sphere
Concept: undefined >> undefined
Which data type will be used to represent the following data values and why?
Perimeter of a square
Concept: undefined >> undefined
Which data type will be used to represent the following data values and why?
Name of the student
Concept: undefined >> undefined
Which data type will be used to represent the following data values and why?
Address of the student
Concept: undefined >> undefined
Give the output of the following when num1 = 4, num2 = 3, num3 = 2.
num1 += num2 + num3
print (num1)
Concept: undefined >> undefined
Give the output of the following when num1 = 4, num2 = 3, num3 = 2.
num1 = num1 ** (num2 + num3)
print (num1)
Concept: undefined >> undefined
Give the output of the following when num1 = 4, num2 = 3, num3 = 2.
num1 **= num2 + num3
Concept: undefined >> undefined
Give the output of the following when num1 = 4, num2 = 3, num3 = 2.
num1 = '5' + '5'
print(num1)
Concept: undefined >> undefined
Give the output of the following when num1 = 4, num2 = 3, num3 = 2.
print(4.00 / (2.0 + 2.0))
Concept: undefined >> undefined
What will be the output of the following code segment:
myList = [1,2,3,4,5,6,7,8,9,10]
del myList[3:]
print(myList)Concept: undefined >> undefined
What will be the output of the following code segment:
myList = [1,2,3,4,5,6,7,8,9,10]
del myList[:5]
print(myList)Concept: undefined >> undefined
What will be the output of the following code segment:
myList = [1,2,3,4,5,6,7,8,9,10]
del myList[::2]
print(myList)Concept: undefined >> undefined
The record of a student (Name, Roll No., Marks in five subjects and percentage of marks) is stored in the following list: stRecord = ['Raman', 'A-36', [56, 98, 99, 72, 69], 78.8]
Write Python statements to retrieve the following information from the list stRecord.
- Percentage of the student
- Marks in the fifth subject
- Maximum marks of the student
- Roll no. of the student
- Change the name of the student from ‘Raman’ to ‘Raghav’.
Concept: undefined >> undefined
Write a program to read elements of a list.
The program should ask for the position of the element to be deleted from the list. Write a function to delete the element at the desired position in the list.
Concept: undefined >> undefined
