Find Interview Questions for Top Companies
Gaisano malls Interview Questions and Answers
Ques:- Give the sequence in which triggers fired during insert operations, when the following 3 triggers are defined at the same block level ?a. ON-INSERT b. POST-INSERT c. PRE-INSERT
Asked In :- gaisano malls,
Ques:- What are the advantages of using django for web development?
Right Answer:
1. Rapid Development: Django allows for quick development with its built-in features and tools.
2. Scalability: It can handle high traffic and large amounts of data efficiently.
3. Security: Django has strong security features to protect against common web vulnerabilities.
4. Versatile: It supports various types of web applications, from simple to complex.
5. ORM: Django's Object-Relational Mapping simplifies database interactions.
6. Community Support: A large community provides extensive documentation and third-party packages.
7. Admin Interface: It automatically generates an admin panel for managing application data.
Ques:- What is a negative index in python?
Comments
Admin May 17, 2020

Python arrays & list items can be accessed with positive or negative numbers (also known as index).
For instance our array/list is of size n, then for positive index 0 is the first index, 1 second, last index will be n-1. For negative index, -n is the first index, -(n-1) second, last negative index will be – 1.
A negative index accesses elements from the end of the list counting backwards.
An example to show negative index in python
>>> import array
>>> a= [1, 2, 3]
>>> print a[-3]
1
>>> print a[-2]
2
>>> print a[-1]
3

Ques:- What are the inheritance styles in django?
Right Answer:
Django supports three inheritance styles:

1. **Abstract Base Classes**: A base class that doesn't create a database table but allows child classes to inherit fields and methods.

2. **Multi-table Inheritance**: Each model has its own database table, and Django creates a one-to-one relationship between the parent and child models.

3. **Proxy Models**: Allows you to create a new model class that behaves like the original model but can have different behavior or additional methods without creating a new database table.
Ques:- What is the usage of middlewares in Django?
Right Answer:
Middlewares in Django are used to process requests and responses globally before they reach the view or after the view has processed them. They can be used for tasks such as authentication, logging, session management, and modifying request/response objects.
Ques:- What is the output of the following program:int main(){ char buff[]={ 0x11,0x11,0x11,0x11,0x22,0x22,0x22,0x22,0x33,0x33,0x33,0x33}; char* pEnd = buff + sizeof(buff) -1; long * plong = buff; short* pshort = buff; for(; plong<pEnd; plong++)
Ques:- Explain “passing by value”, “passing by pointer” and “passing by reference” ?
Asked In :- gaisano malls,
Comments
Admin May 17, 2020

Pass by value - a copy is made
Pass by pointer ( explicit pointer)
example:
void func(int * ptr_sent)
main()
{
int i;
int *p;
p = &i;
func(p);
}
void func(int * ptr_sent)
{
*ptr_sent = *ptr_sent + 2
// adds 2 to the value in location pointed by ptr_sent
}
Pass by reference (implicit pointer)
example:
void func(int &ref_sent)
main()
{
int i;
func(&i);
}
void func(int &ref_sent)
{
ref_sent = ref_sent + 2
// adds 2 to the ref_sent
// Please note that you do not need * when using reference
// Any code manipulating reference reflects changes on i
}

Admin May 17, 2020

During pass by value a duplicate copy of the parameters
passed are created. Any changes made to copy will not
reflect the actual parameters.
In pass by pointer(it called as pass by address) duplicate
copy is not created. and any chagnes made to copy will
reflect in actual parameters also.

Ques:- What is relational operator?
Right Answer:
A relational operator is a symbol used to compare two values or expressions, resulting in a boolean value (true or false). Common relational operators include `==` (equal to), `!=` (not equal to), `>` (greater than), `<` (less than), `>=` (greater than or equal to), and `<=` (less than or equal to).
Ques:- What is swapping?
Right Answer:
Swapping is the process of exchanging the values of two variables. In C programming, this is typically done using a temporary variable to hold one value while the other is assigned.
Comments
vedhamalika.R Nov 13, 2021

Swapping two number in C programming language means exchanging the values of two variables.

Ques:- What is descending order program?
Right Answer:
A descending order program sorts a list of numbers or elements from the highest to the lowest value. Here’s a simple example in C:

```c
#include <stdio.h>

void sortDescending(int arr[], int n) {
int i, j, temp;
for (i = 0; i < n-1; i++) {
for (j = 0; j < n-i-1; j++) {
if (arr[j] < arr[j+1]) {
temp = arr[j];
arr[j] = arr[j+1];
arr[j+1] = temp;
}
}
}
}

int main() {
int arr[] = {5, 2, 9, 1, 5, 6};
int n = sizeof(arr)/sizeof(arr[0]);

sortDescending(arr, n);

printf("Sorted array in descending order:n");
for (int i = 0
Ques:- What is ascending order programme?
Right Answer:
An ascending order program is a code that arranges a list of numbers or elements from the smallest to the largest. In C, this can be achieved using sorting algorithms like bubble sort, selection sort, or quicksort.
Gaisano Malls, a prominent retail giant in the Philippines, has established itself as a household name synonymous with quality shopping experiences. Founded by Don Carlos Gaisano in 1974, the company has grown from a single department store in Cebu City to a sprawling network of malls across the country. With a commitment to providing diverse retail options and excellent customer service, Gaisano Malls caters to a wide range of consumers, from budget-conscious shoppers to luxury seekers. The company\'s malls offer a comprehensive array of products, including clothing, electronics, household goods, and groceries, ensuring that shoppers can find everything they need under one roof. Beyond shopping, Gaisano Malls also feature entertainment facilities, restaurants, and events, making them popular destinations for families and friends to spend quality time together. In addition to its retail offerings, Gaisano Malls is actively involved in community development initiatives, supporting local businesses and charities. Through its corporate social responsibility programs, the company strives to make a positive impact on the communities it serves. With its commitment to excellence, innovation, and community engagement, Gaisano Malls continues to be a leading force in the Philippine retail industry, enriching the lives of millions of Filipinos nationwide.
AmbitionBox Logo

What makes Takluu valuable for interview preparation?

1 Lakh+
Companies
6 Lakh+
Interview Questions
50K+
Job Profiles
20K+
Users