Featured Post

15 Python Tips : How to Write Code Effectively

Image
 Here are some Python tips to keep in mind that will help you write clean, efficient, and bug-free code.     Python Tips for Effective Coding 1. Code Readability and PEP 8  Always aim for clean and readable code by following PEP 8 guidelines.  Use meaningful variable names, avoid excessively long lines (stick to 79 characters), and organize imports properly. 2. Use List Comprehensions List comprehensions are concise and often faster than regular for-loops. Example: squares = [x**2 for x in range(10)] instead of creating an empty list and appending each square value. 3. Take Advantage of Python’s Built-in Libraries  Libraries like itertools, collections, math, and datetime provide powerful functions and data structures that can simplify your code.   For example, collections.Counter can quickly count elements in a list, and itertools.chain can flatten nested lists. 4. Use enumerate Instead of Range     When you need both the index ...

10 Tech Mahindra Fresher Interviews Questions

Here're the ten top interview questions asked during fresher interviews. These are general questions and applicable for all B. Tech branches.

10 Interview Questions

These are general interview questions who is looking for job either on/off campus drives.

1. What is Full-Service Web-hosting?

It is a service offered by website hosting companies. So that the site can be accessed via the world wide web.


2. What is meant by Port blocking within LAN?

It restricts the users to access services through various ports. The ports are USB, DVD port, Floppy, Removal device ports.

3. What is IDN?

It enables people to use Domain names in local languages.


4. Can we call one program (not include) from another program?

Yes, you can call. Here not include means external program.


5. How can you sort the elements of an array in descending order?

In C++, you can use Array.Reverse(arr);


10 Top Tech Mahindra Fresher Interviews Questions


6. How do I update my DNS records?

You can update DNS records in CNAME. Here're more options.


7. How do non-root -bridges decide, which port will affect the root port?

In each non-root bridge (CAT2, CAT3, CAT4), Root Port selection is based on the port having the lowest cost to the Root Bridge (CAT1).

8. Difference between response.write() and server.transfer()?

The response.write() - writes a string to the browser.

The server.transfer() - an ASP page transfers the current page request to another ASP page in the same server.


9. What are the top Organization structure attributes?

  • Simplicity
  • A clear line of authority
  • Lesser Managerial Levels
  • Unity of command and Direction
  • Here are more options

10. How does the browser knows to go to a certain IP address when you type google.com?

The router decides when it receives google.com. The router has configuration details such as routing IP address.

Comments

Popular posts from this blog

How to Fix datetime Import Error in Python Quickly

SQL Query: 3 Methods for Calculating Cumulative SUM

Big Data: Top Cloud Computing Interview Questions (1 of 4)