NEC
10+ m.s associates Interview Questions and Answers
Q1. Round 2: capitalize 1st and last character of each word in a given string. Eg: 'hello there' should return 'HellO TherE'
The task is to capitalize the first and last character of each word in a given string.
Split the string into an array of words
Iterate through each word and capitalize the first and last character
Join the modified words back into a string
Q2. Round 1 : What is the difference between list and a tuple?
List is mutable while tuple is immutable.
List can be modified while tuple cannot be modified.
List is defined using square brackets [] while tuple is defined using parentheses ().
List is used for homogenous data while tuple is used for heterogenous data.
List is slower than tuple in terms of performance.
Example of list: [1, 2, 3] and example of tuple: (1, 'hello', 3.14)
Q3. Round -2 : reverse a string using recursion.
Reverse a string using recursion.
Create a function that takes a string as input.
Check if the string is empty or has only one character.
If yes, return the string.
If not, call the function recursively with the substring excluding the first character and concatenate the first character at the end.
Return the reversed string.
Q4. Explain the rj45 connector with its colour specifications
The RJ45 connector is a standardized physical interface for connecting ethernet cables, with color specifications for wiring.
RJ45 connectors have 8 pins and are commonly used for Ethernet connections
The color specifications for wiring in an RJ45 connector are typically T568A or T568B standards
T568A wiring uses green and orange pairs, while T568B uses orange and green pairs
For example, in T568B standard, pin 1 is white/orange, pin 2 is orange, pin 3 is white/green, pin 6 is gr...read more
Q5. Give example of how cloud works
Cloud computing allows users to access and store data and applications over the internet instead of on a physical hard drive.
Data and applications are stored on remote servers and accessed through the internet.
Users can access their data and applications from any device with an internet connection.
Cloud services can include storage, databases, networking, analytics, and more.
Examples of cloud services include Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platfo...read more
Q6. Round 1: What is generator?
A generator is a device that converts mechanical energy into electrical energy.
Generators are commonly used in power plants to produce electricity.
They work on the principle of electromagnetic induction.
The mechanical energy can be provided by various sources such as steam turbines, gas turbines, wind turbines, etc.
Generators can be classified into AC generators and DC generators.
AC generators are used in most power plants while DC generators are used in some specific applica...read more
Q7. Round 1: What is a decorator?
A decorator is a design pattern in object-oriented programming that allows behavior to be added to an individual object, dynamically.
Decorators are used to modify the behavior of a function or class without changing its source code.
They are implemented using the @ symbol in Python.
Decorators can be used for logging, timing, caching, and more.
An example of a decorator is the @staticmethod decorator in Python, which marks a method as static.
Another example is the @property deco...read more
Q8. Round 1: What is .pyc file?
A .pyc file is a compiled Python file that contains bytecode.
It is created by the Python interpreter when a .py file is imported or run.
It is platform-independent and can be executed on any system with the same version of Python.
It speeds up the execution of Python code as the interpreter does not have to compile the code every time it is run.
It can be deleted without affecting the original .py file, as the interpreter will re-create it if necessary.
Q9. Aws cloud vs azure vs gcp
AWS, Azure, and GCP are three major cloud service providers offering a range of services and features for businesses.
AWS (Amazon Web Services) is the oldest and most widely used cloud platform, offering a wide range of services and global data centers.
Azure (Microsoft Azure) is known for its strong integration with Microsoft products and services, as well as its hybrid cloud capabilities.
GCP (Google Cloud Platform) is known for its strong data analytics and machine learning c...read more
Q10. reverse a string remove duplicate elements inheritance question
Answering three technical questions for a software developer interview
To reverse a string, use a loop to iterate through the string and append each character to a new string in reverse order
To remove duplicate elements, use a set data structure to store unique elements and then convert it back to a list
Inheritance allows a subclass to inherit properties and methods from a superclass, allowing for code reuse and organization
Top HR Questions asked in m.s associates
Interview Process at m.s associates
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month