Please select a subject first
Advertisements
Advertisements
Consider the following string myAddress:
myAddress = "WZ-1, New Ganga Nagar, New Delhi"
What will be the output of the following string operation:
print(myAddress.count('New'))
Concept: undefined >> undefined
Consider the following string myAddress:
myAddress = "WZ-1, New Ganga Nagar, New Delhi"
What will be the output of the following string operation:
print(myAddress.find('New'))
Concept: undefined >> undefined
Advertisements
Consider the following string myAddress:
myAddress = "WZ-1, New Ganga Nagar, New Delhi"
What will be the output of the following string operation:
print(myAddress.rfind('New'))
Concept: undefined >> undefined
Consider the following string myAddress:
myAddress = "WZ-1, New Ganga Nagar, New Delhi"
What will be the output of the following string operation:
print(myAddress.split(','))
Concept: undefined >> undefined
Consider the following string myAddress:
myAddress = "WZ-1, New Ganga Nagar, New Delhi"
What will be the output of the following string operation:
print(myAddress.split(' '))
Concept: undefined >> undefined
Consider the following string myAddress:
myAddress = "WZ-1, New Ganga Nagar, New Delhi"
What will be the output of the following string operation:
print(myAddress.partition(','))
Concept: undefined >> undefined
Write a user-defined function to convert a string with more than one word into a title case string where the string is passed as a parameter. (Title case means that the first letter of each word is capitalized).
Concept: undefined >> undefined
After a fight with your friend, you did the following activities. Which of these activities is not an example of cyber bullying?
Concept: undefined >> undefined
After practicals, Atharv left the computer laboratory but forgot to sign off from his email account. Later, his classmate Revaan started using the same computer. He is now logged in as Atharv. He sends inflammatory email messages to few of his classmates using Atharvs email account. Revaans activity is an example of which of the following cybercrime? Justify your answer.
Concept: undefined >> undefined
What is the primary role of the system bus?
Concept: undefined >> undefined
Why is the data bus bidirectional while the address bus is unidirectional?
Concept: undefined >> undefined
Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operation:
print(mySubject.startswith('Comp'))
Concept: undefined >> undefined
Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operation:
print(mySubject.swapcase())
Concept: undefined >> undefined
Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operation:
print(mySubject[len(mySubject) -1])
Concept: undefined >> undefined
Consider the following string myAddress:
myAddress = "WZ-1, New Ganga Nagar, New Delhi"
What will be the output of the following string operation:
print(myAddress.lower())
Concept: undefined >> undefined
Consider the following string myAddress:
myAddress = "WZ-1, New Ganga Nagar, New Delhi"
What will be the output of the following string operation:
print(myAddress.upper())
Concept: undefined >> undefined
Consider the following string myAddress:
myAddress = "WZ-1, New Ganga Nagar, New Delhi"
What will be the output of the following string operation:
print(myAddress.replace('New', 'Old'))
Concept: undefined >> undefined
Consider the following string myAddress:
myAddress = "WZ-1, New Ganga Nagar, New Delhi"
What will be the output of the following string operation:
print(myAddress.index('Agra'))
Concept: undefined >> undefined
Write a program to input line(s) of text from the user until enter is pressed. Count the total number of characters in the text (including white spaces), the total number of alphabets, the total number of digits, the total number of special symbols, and the total number of words in the given text. (Assume that each word is separated by one space).
Concept: undefined >> undefined
Write a function deleteChar() which takes two parameters one is a string and the other is a character. The function should create a new string after deleting all occurrences of the character from the string and return the new string.
Concept: undefined >> undefined
