Odoo Python Developer
Odoo Python Developer Interview Questions and Answers for Freshers

Asked in Bista Solutions

Q. Which tag is used to display the text exactly as written in HTML?
The <pre> tag is used to display text exactly as written in HTML.
The <pre> tag preserves both spaces and line breaks in the text
It is commonly used for displaying code snippets or text that needs to maintain its formatting
Example: <pre>This is some text with spaces and line breaks.</pre>

Asked in Bista Solutions

Q. How can we add an element to a tuple, given that tuples are immutable?
Tuples are immutable in Python, but you can create a new tuple with the desired elements added.
Tuples cannot be modified directly; instead, create a new tuple.
Example: existing_tuple = (1, 2, 3); new_tuple = existing_tuple + (4,); # new_tuple is (1, 2, 3, 4)
You can also convert a tuple to a list, modify it, and convert it back to a tuple.
Example: existing_tuple = (1, 2, 3); temp_list = list(existing_tuple); temp_list.append(4); new_tuple = tuple(temp_list); # new_tuple is (1,...read more

Asked in Bista Solutions

Q. What will be the output of the following code?
The output of the code depends on its specific logic and structure, which needs to be analyzed.
Check for syntax errors that may prevent execution.
Identify variable values and their types before execution.
Consider control flow statements (if, for, while) that affect output.
Look for function definitions and their return values.
Examine any imported modules that may influence the code.

Asked in Bista Solutions

Q. Given a string, select all the names from a given table that contain that string.
Filter names from a table based on a substring match in Python/Odoo.
Use SQL query: SELECT name FROM table WHERE name LIKE '%substring%'.
In Odoo, use ORM: records = model.search([('name', 'ilike', 'substring')]).
Example: If substring is 'John', it retrieves 'John Doe', 'Johnny'.
Ensure case-insensitivity by using 'ilike' in Odoo or lower() in SQL.

Asked in Bista Solutions

Q. How do you add space between rows of a table in HTML?
Use CSS to add space between rows of a table in HTML.
Add 'padding' or 'margin' to the <tr> or <td> elements in the table.
Example: <tr style='padding: 10px;'>...</tr>
Example: <td style='margin-bottom: 20px;'>...</td>

Asked in Bista Solutions

Q. Which tag is used to make a text blink in HTML?
The <blink> tag is used to make a text blink in HTML.
The <blink> tag is a non-standard HTML tag that causes the enclosed text to flash slowly.
It is not recommended to use the <blink> tag as it is deprecated and not supported in modern browsers.
Example: <blink>This text will blink</blink>
Odoo Python Developer Jobs




Asked in Bista Solutions

Q. Given two tuples, combine all their elements into a new list in reverse order.
Create a new list by putting elements of two tuples in reverse order.
Iterate through each tuple and reverse the elements before adding to the new list.
Use list comprehension for a more concise solution.
Example: Tuple 1 = (1, 2, 3), Tuple 2 = (4, 5, 6) -> New list = [6, 5, 4, 3, 2, 1]

Asked in Brainvire

Q. Armstrong number using pallindrome, fibonacci code.
Armstrong number is a number that is equal to the sum of its own digits raised to the power of the number of digits.
Create a function to check if a number is an Armstrong number by calculating the sum of its digits raised to the power of the number of digits.
Implement a function to check if a number is a palindrome by comparing it to its reverse.
Write a function to generate Fibonacci numbers up to a certain limit and check if a number is in the Fibonacci sequence.
Share interview questions and help millions of jobseekers 🌟

Asked in Bista Solutions

Q. What is the difference between override and overwrite?
Override is when a subclass provides a specific implementation for a method in the superclass, while overwrite is when a file or data is replaced with new content.
Override is used in object-oriented programming to change the behavior of a method in a subclass.
Overwrite is used in file systems to replace existing data with new data.
Example of override: class ChildClass(ParentClass): def method(self): # new implementation
Example of overwrite: Writing new content to a file that ...read more

Asked in Bista Solutions

Q. Write a query for Left Join.
A Left Join query combines rows from two tables based on a related column, including all rows from the left table.
Use the LEFT JOIN keyword in the query
Specify the columns to select from both tables
Use ON keyword to specify the join condition
Interview Questions of Similar Designations
Interview Experiences of Popular Companies






Calculate 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

