OodlesTechnologies
AGILE AIRPORT SERVICES Interview Questions and Answers
Q1. Write a Python Program in recursion
A Python program in recursion
Recursion is a technique where a function calls itself to solve a problem
The function should have a base case to stop the recursion
The function should have a recursive case to continue the recursion
Example: Factorial of a number using recursion
Example: Fibonacci series using recursion
Q2. How to import views in django
To import views in Django, you need to create a views.py file and import it in urls.py
Create a views.py file in your Django app directory
Define your views in the views.py file
Import your views in urls.py using the 'from . import views' syntax
Map your views to URLs in urls.py using the 'path()' function
Q3. What is Models in django
Models in Django are Python classes that define the structure of the database tables.
Models are used to create, read, update and delete data from the database.
They define the fields and their types, relationships between tables, and constraints.
Models can be created using the Django ORM (Object-Relational Mapping) or by writing SQL.
Example: class Book(models.Model): title = models.CharField(max_length=100) author = models.ForeignKey(Author, on_delete=models.CASCADE)
Models are...read more
Q4. Write a programme for particular series
Program to generate a particular series
Define the series pattern
Use loops to generate the series
Store the series in an array
Print the array
Q5. Create a function to find out if a given number is prime or not.
Function to determine if a number is prime or not.
Check if the number is less than 2, return False if so
Iterate from 2 to the square root of the number, checking for divisibility
If no divisors found, return True (number is prime)
Q6. Create a function to find out the least repeating consecutive character in a string.
Create a function to find the least repeating consecutive character in a string.
Iterate through the string and keep track of consecutive characters and their counts
Find the character with the least count of consecutive repetitions
Return the character with the least count
Q7. Give the difference between call by value and call by reference.
Call by value passes a copy of the variable's value, while call by reference passes a reference to the variable's memory location.
Call by value passes a copy of the variable's value, so changes made to the parameter inside the function do not affect the original variable.
Call by reference passes a reference to the variable's memory location, so changes made to the parameter inside the function affect the original variable.
In Python, all function arguments are passed by refere...read more
Interview Process at AGILE AIRPORT SERVICES
Top Python Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month