Advertisements
Advertisements
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
Advertisements
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
Write a program to read elements of a list.
The program should ask for the value of the element to be deleted from the list. Write a function to delete the element of this value from the list.
Concept: undefined >> undefined
Sumit got good marks in all the subjects. His father gifted him a laptop. He would like to make Sumit aware of health hazards associated with the inappropriate and excessive use of laptops. Help his father to list the points which he should discuss with Sumit.
Concept: undefined >> undefined
Try the following conversion.
(220)8 = (?)2
Concept: undefined >> undefined
Try the following conversion.
(11001010)2 = (?)10
Concept: undefined >> undefined
Try the following conversion.
(1010111)2 = (?)10
Concept: undefined >> undefined
Write a binary representation of the following hexadecimal number.
4026
Concept: undefined >> undefined
Write a binary representation of the following hexadecimal number.
BCA1
Concept: undefined >> undefined
Write a binary representation of the following hexadecimal number.
98E
Concept: undefined >> undefined
Write a binary representation of the following hexadecimal number.
132.45
Concept: undefined >> undefined
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:
- 16 feet and 75 degrees
- 20 feet and 0 degrees
- 24 feet and 45 degrees
- 24 feet and 80 degrees
Concept: undefined >> undefined
Schools use the “Student Management Information System” (SMIS) to manage student-related data. This system provides facilities for:
- recording and maintaining the personal details of students.
- maintaining marks scored in assessments and computing results of students.
- keeping track of student attendance.
- managing many other student-related data. Let us automate this process 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 the following format.
|
Name of School Student Name: PQR Roll No: 99 |
Concept: undefined >> undefined
