Advertisements
Advertisements
Input a string having some digits. Write a function to return the sum of digits present in this string.
Concept: undefined > undefined
Consider a list:
list1 = [6, 7, 8, 9]
What is the difference between the following operation on the list1:
list1 * 2
Concept: undefined > undefined
Advertisements
Consider a list:
list1 = [6, 7, 8, 9]
What is the difference between the following operation on the list1:
list1 *= 2
Concept: undefined > undefined
Consider a list:
list1 = [6, 7, 8, 9]
What is the difference between the following operation on the list1:
list1 = list1 * 2
Concept: undefined > undefined
Consider the following tuples, tuple1 and tuple2:
tuple1 = (23,1,45,67,45,9,55,45)
tuple2 = (100,200)
Find the output of the following statement:
print(tuple1 + tuple2)
Concept: undefined > undefined
Consider the following dictionary stateCapital:
stateCapital = {"AndhraPradesh":"Hyderabad",
"Bihar":"Patna","Maharashtra":"Mumbai",
"Rajasthan":"Jaipur"}
Find the output of the following statement:
print("Maharashtra" in stateCapital)
Concept: undefined > undefined
You are planning to go on a vacation. You surfed the Internet to get answers to the following queries:
- Weather conditions
- Availability of air tickets and fares
- Places to visit
- Best hotel deals
Concept: undefined > undefined
Write the difference between the following -
Active and Passive footprints
Concept: undefined > undefined
What is the need for RAM?
Concept: undefined > undefined
What is the need for secondary memory?
Concept: undefined > undefined
How does RAM differ from ROM?
Concept: undefined > undefined
Check the size of the RAM and HDD of a computer in your school. Make a table and write their size in Bytes, Kilobytes, Megabytes, and Gigabytes.
Concept: undefined > undefined
List all secondary storage devices available at your school or home.
Concept: undefined > undefined
Give full form of ISCII.
Concept: undefined > undefined
Explain the following along with their applications.
Machine Learning
Concept: undefined > undefined
Two friends decide who gets the last slice of a cake by flipping a coin five times. The first person to win three flips wins the cake. An input of 1 means player 1 wins a flip, and a 2 means player 2 wins a flip. Design an algorithm to determine who takes the cake.
Concept: undefined > undefined
Suppose you are collecting money for something. You need ₹ 200 in all. You ask your parents, uncles, and aunts as well as grandparents. Different people may give either ₹ 10, ₹ 20, or even ₹ 50. You will collect till the total becomes 200. Write the algorithm.
Concept: undefined > undefined
Write an algorithm to find the greatest among two different numbers entered by the user.
Concept: undefined > undefined
Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operation:
print(mySubject[:3] + mySubject[3:])
Concept: undefined > undefined
Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operation:
print(mySubject[:: -2])
Concept: undefined > undefined