MTS-4
MTS-4 Interview Questions and Answers
Q1. Py prog to print max and min of values in a dict
Python program to print max and min values in a dictionary
Use the max() and min() functions to find the maximum and minimum values in the dictionary
Pass the dictionary values as arguments to the functions
Print the results
Q2. Py prog to read a file and find word count
Python program to count the number of words in a file.
Open the file using 'with open(file_path, 'r') as file:'
Read the contents of the file using 'file.read()'
Split the contents into words using 'split()'
Count the number of words using 'len()'
Q3. Py inheritance with super keyword
super keyword is used to call a method from a parent class in Python inheritance.
super() returns a temporary object of the superclass, which allows you to call its methods.
It is used to avoid hard-coding the superclass name in the code.
super() can also be used to call methods with arguments.
Example: super().__init__() calls the constructor of the parent class.
Q4. Measure 4lt from 5 and 3lt mug
Use the 5 and 3lt mugs to measure 4lt.
Fill the 5lt mug completely
Pour 3lt from the 5lt mug into the 3lt mug
Empty the 3lt mug
Pour the remaining 2lt from the 5lt mug into the 3lt mug
Fill the 5lt mug again and pour 1lt into the 3lt mug until it's full
Now the 5lt mug has 4lt of water
Q5. Diff bet SAN and NAS
SAN is a block-level storage while NAS is a file-level storage.
SAN is a dedicated network for storage devices while NAS uses existing network infrastructure.
SAN provides faster access to data and is more suitable for high-performance applications.
NAS is easier to manage and is more suitable for file sharing and backup.
SAN requires specialized hardware and software while NAS can be implemented using standard hardware and software.
Examples of SAN include Fibre Channel and iSCSI...read more
MTS-4 Jobs
0Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Reviews
Interviews
Salaries
Users/Month