Filter interviews by
I applied via Walk-in and was interviewed in Jan 2024. There were 3 interview rounds.
Lists are mutable, ordered collections of items while tuples are immutable, ordered collections of items.
Lists are mutable, meaning their elements can be changed after creation, while tuples are immutable and cannot be changed.
Lists are defined using square brackets [] while tuples are defined using parentheses ().
Lists are typically used for collections of similar items that may need to be modified, while tuples are u...
Python handles conditional statements using if, elif, and else keywords to control the flow of the program.
Python uses if, elif, and else keywords to create conditional statements.
Indentation is crucial in Python to determine the scope of the conditional statements.
Example: if x > 5: print('x is greater than 5')
Example: if x > 5: print('x is greater than 5') elif x == 5: print('x is equal to 5') else: print('x is less
for loop is used for iterating over a sequence while while loop is used for executing a block of code repeatedly as long as a condition is true
For loop is used when the number of iterations is known, while loop is used when the number of iterations is unknown
For loop is more concise and readable for iterating over sequences like lists, while loop is more flexible for complex conditions
Example: for i in range(5): print(...
A function in Python is defined using the 'def' keyword followed by the function name and parameters.
Use the 'def' keyword followed by the function name and parameters enclosed in parentheses.
Indent the function body to define the code block.
Use the 'return' statement to return a value from the function.
Example: def greet(name): print('Hello, ' + name)
Example: def add_numbers(a, b): return a + b
A class is a blueprint for creating objects, while an object is an instance of a class.
A class defines the properties and behaviors that objects of that class will have.
An object is a specific instance of a class, with its own unique data and behavior.
Classes can be thought of as templates, while objects are the actual instances created from those templates.
Example: Class 'Car' defines properties like 'color' and behav...
Reverse a String, Check if a Number is Prime, Find the Factorial of a Number
Closure is a function that retains the bindings of the free variables that exist when the function is defined.
Closure allows a function to access and manipulate variables outside of its scope.
It is commonly used in callback functions, event handlers, and decorators.
Example: defining a function within another function to access the outer function's variables.
I applied via Naukri.com and was interviewed in Dec 2023. There were 2 interview rounds.
Python,django no ashok questions
I applied via Recruitment Consulltant and was interviewed in Jun 2023. There were 2 interview rounds.
I was interviewed in Jan 2023.
Python,Database(mysql),basics of c programming
General topics,one to one rounds and our strengths
I applied via Naukri.com and was interviewed in Sep 2022. There were 2 interview rounds.
Answers to interview questions for a Python developer.
1. Tuples are immutable while lists are mutable.
2. Decorators are functions that modify the behavior of other functions.
3. 'to' object is not a standard term in Python, so it's unclear.
4. Pass does nothing, break exits the loop, and continue skips to the next iteration.
5. Need the given program to identify the error.
6. Explain your projects in detail, highlighting y
I applied via Company Website and was interviewed in Oct 2022. There were 3 interview rounds.
Here we can write programs. Programs are exicuted test cases
The question is about the meaning of some English words.
Provide the meanings of the words asked.
If unsure, ask for clarification.
Use context to determine the meaning if necessary.
I use Git for version control in my projects.
I create a Git repository for the project
I commit changes regularly with descriptive messages
I use branches for new features or bug fixes
I merge branches back into the main branch when ready
I use tags to mark important milestones or releases
Postman is a popular API development tool used for testing, documenting, and sharing APIs.
Postman allows developers to send HTTP requests and receive responses from APIs
It provides a user-friendly interface for creating and managing API requests
Postman also offers features like automated testing, mock servers, and collaboration tools
It supports various authentication methods and formats like JSON and XML
Authentication is the process of verifying the identity of a user or system.
Authentication ensures that only authorized users have access to a system or application.
It involves the use of credentials such as usernames and passwords, or other methods like biometrics.
Examples of authentication include logging into a website or accessing a secure network.
Authentication is often followed by authorization, which determines
Data can be sent to the database using SQL queries or an ORM like Django's ORM.
Use SQL queries to insert, update or delete data in the database.
Use an ORM like Django's ORM to interact with the database using Python code.
Ensure that the data being sent is properly formatted and validated to prevent errors or security issues.
A global variable is a variable that can be accessed from any part of the program.
Global variables are declared outside of any function or class.
They can be accessed and modified from any part of the program.
Using global variables can make the code harder to read and debug.
Example: x = 10 (declared outside of any function or class)
Tuple is an immutable sequence, while list is a mutable sequence in Python.
Tuple elements cannot be modified once assigned, while list elements can be modified.
Tuple uses parentheses () to enclose elements, while list uses square brackets [] to enclose elements.
Tuple is generally used for heterogeneous data types, while list is used for homogeneous data types.
Tuple is faster than list when accessing elements.
Tuple cons
To check if a key exists in a dictionary without raising a KeyError.
Use the 'in' keyword to check if the key exists in the dictionary.
Use the 'get' method to return a default value if the key does not exist.
Use the 'keys' method to get a list of all keys and check if the key is in the list.
Yes, we can create our custom exception in Python.
To create a custom exception, we need to create a class that inherits from the Exception class.
We can define our own message and error code for the custom exception.
We can raise the custom exception using the 'raise' keyword.
Custom exceptions can be used to handle specific errors in our code.
Example: class MyException(Exception): pass
Example: raise MyException('This is
based on 1 review
Rating in categories
Digital Marketing Executive
3
salaries
| ₹1.8 L/yr - ₹2.5 L/yr |
Infosys
TCS
Wipro
HCLTech