CGI Group
10+ Ray Business Technologies Interview Questions and Answers
Q1. What is difference between tuple and list and where did you used it in your project?
Tuple is immutable and ordered, while list is mutable and ordered. Tuples are used for fixed data, lists for dynamic data.
Tuple is created using parentheses (), while list is created using square brackets []
Tuples are immutable, meaning their elements cannot be changed once defined, while lists are mutable and can be modified
Tuples are typically used for fixed data that will not change, while lists are used for dynamic data that may need to be updated or modified
Example: Tupl...read more
Q2. What are different kind of testing frameworks in django?
Different testing frameworks in Django include Django's built-in test framework, pytest, and unittest.
Django's built-in test framework: Provides tools for testing Django applications and is easy to use.
pytest: A popular testing framework that offers more features and flexibility compared to Django's built-in test framework.
unittest: A standard Python testing framework that can also be used for testing Django applications.
Q3. What are different AWS services used in your project?
We use AWS services like EC2, S3, RDS, Lambda, and CloudWatch in our project.
EC2 - for hosting our application servers
S3 - for storing and serving static assets
RDS - for managing our relational database
Lambda - for serverless computing
CloudWatch - for monitoring and logging
Q4. Write a code to find second largest number without using built functions and write one test case for that function
Code to find second largest number in an array without using built-in functions
Iterate through the array to find the largest number
Keep track of the largest number and update it if a larger number is found
Once the largest number is found, iterate again to find the second largest number
Q5. What is difference Between monothic and microservices
Monolithic architecture is a single unified unit while microservices architecture is composed of small, independent services.
Monolithic architecture is a single, indivisible unit where all components are tightly coupled.
Microservices architecture breaks down the application into smaller, independent services that communicate with each other through APIs.
Monolithic applications are easier to develop and deploy but can be harder to scale and maintain.
Microservices allow for bet...read more
Q6. What is difference between django and flask?
Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. Flask is a lightweight WSGI web application framework.
Django is a full-featured framework with built-in ORM, admin panel, and authentication system, while Flask is more lightweight and flexible.
Django follows the 'batteries included' philosophy, providing many built-in features out of the box, whereas Flask is more minimalistic and allows developers to choose their own t...read more
Q7. Write a simple django code to render hello world template
Django code to render hello world template
Create a new Django project
Create a new Django app within the project
Create a template file with 'hello world' content
Update views.py to render the template
Update urls.py to map a URL to the view
Q8. What are mixins in django?
Mixins in Django are a way to reuse code across multiple classes by providing methods and attributes that can be inherited.
Mixins are classes that provide methods and attributes to be inherited by other classes.
They are used to add common functionality to multiple classes without repeating code.
Mixins are not meant to be instantiated on their own, but rather to be inherited by other classes.
An example of a mixin in Django is the LoginRequiredMixin which adds login required fu...read more
Q9. What is decorator in python?
Decorator in Python is a design pattern that allows adding new functionality to an existing object without modifying its structure.
Decorators are functions that modify the behavior of other functions or methods.
They are denoted by @decorator_name above the function definition.
Decorators can be used for logging, timing, authentication, etc.
Example: @staticmethod, @classmethod, @property
Q10. What is an Inline Function
An inline function is a function defined within the scope of another function, typically used for short and simple operations.
Inline functions are defined within the body of another function.
They are typically used for short and simple operations.
Inline functions are often used to improve code readability and maintainability.
More about working at CGI Group
Reviews
Interviews
Salaries
Users/Month