Advertisements
Advertisements
Explore and list the steps required to type in an Indian language using UNICODE.
Concept: undefined >> undefined
Which of the following identifier name are invalid and why?
Serial_no
Concept: undefined >> undefined
Advertisements
Which of the following identifier name are invalid and why?
1st_Room
Concept: undefined >> undefined
Which of the following identifier name are invalid and why?
Hundred$
Concept: undefined >> undefined
Which of the following identifier name are invalid and why?
Total Marks
Concept: undefined >> undefined
Which of the following identifier name are invalid and why?
Total_Marks
Concept: undefined >> undefined
Which of the following identifier name are invalid and why?
total-Marks
Concept: undefined >> undefined
Which of the following identifier name are invalid and why?
_Percentage
Concept: undefined >> undefined
Which of the following identifier name are invalid and why?
True
Concept: undefined >> undefined
Observe the following program carefully, and identify the error:
def findValue( vall = 1.1, val2, val3):
final = (val2 + val3)/ vall
print(final)
findvalue() #function callConcept: undefined >> undefined
Differentiate between the following with the help of an example:
Argument and Parameter
Concept: undefined >> undefined
Consider the following list myList. What will be the elements of myList after the following operation:
myList = [10,20,30,40]
myList.append([50,60])Concept: undefined >> undefined
Consider the following list myList. What will be the elements of myList after the following operation:
myList = [10,20,30,40]
myList.extend([80,90])Concept: undefined >> undefined
What will be the output of the following code segment:
myList = [1,2,3,4,5,6,7,8,9,10]
for i in range(0,len(myList)):
if i%2 == 0:
print(myList[i])Concept: undefined >> undefined
Differentiate between append() and extend() functions of list.
Concept: undefined >> undefined
Write a function that returns the largest element of the list passed as a parameter.
Concept: undefined >> undefined
Write a function to return the second largest number from a list of numbers.
Concept: undefined >> undefined
Write a program to read a list of n integers and find their median.
Note: The median value of a list of values is the middle one when they are arranged in order. If there are two middle values then take their average.
Hint: You can use a built-in function to sort the list.
Concept: undefined >> undefined
Write a program to read a list of elements. Input an element from the user that has to be inserted in the list. Also, input the position at which it is to be inserted. Write a user-defined function to insert the element at the desired position in the list.
Concept: undefined >> undefined
Read a list of n elements. Pass this list to a function that reverses this list in place without creating a new list.
Concept: undefined >> undefined
