i
CGI
Group
Proud winner of ABECA 2025 - AmbitionBox Employee Choice Awards
Filter interviews by
Encapsulation is a mechanism in Java that binds data and methods together, hiding the internal details of an object.
Encapsulation helps in achieving data hiding and abstraction.
It allows the object to control its own state and behavior.
Data members are made private and accessed through public methods (getters and setters).
Encapsulation provides better maintainability, flexibility, and security.
Example: Class with ...
Pass by reference and pass by value are two ways of passing arguments to a function.
Pass by value means a copy of the argument is passed to the function
Pass by reference means the memory address of the argument is passed to the function
Pass by value is used for primitive data types like int, float, etc.
Pass by reference is used for complex data types like arrays, objects, etc.
List is mutable while tuple is immutable in Python.
List can be modified while tuple cannot be modified.
List uses square brackets [] while tuple uses parentheses ().
List is slower than tuple in terms of performance.
List is used for collections of data while tuple is used for grouping related data.
Example of list: [1, 2, 3] and example of tuple: (1, 2, 3).
Inheritance is a mechanism in object-oriented programming where a class is derived from another class.
Inheritance allows a subclass to inherit properties and methods from a superclass.
The subclass can also add its own properties and methods.
Inheritance promotes code reuse and helps in creating a hierarchical class structure.
For example, a Car class can inherit from a Vehicle class, which can inherit from a Transpo...
Classes are used in object-oriented programming to define a blueprint for creating objects.
Classes provide encapsulation, inheritance, and polymorphism.
They help organize code and make it more reusable.
Example: class Car { String make; int year; }
Example: Car myCar = new Car(); myCar.make = "Toyota"; myCar.year = 2021;
Convert dictionary to list in Python
Use the items() method to get key-value pairs as tuples
Convert the tuples to a list using list()
Append the lists to a new list using append()
Alternatively, use list comprehension to convert the dictionary to a list
Execute parameters in a function must be an array of strings.
Define the function with parameters in the parentheses
Separate each parameter with a comma
Enclose the parameters in square brackets to create an array
Example: function myFunction([param1, param2, param3]) { //code here }
Fibonacci code generates a series of numbers where each number is the sum of the two preceding ones.
Declare variables for first and second numbers in the series
Loop through the desired number of iterations
Calculate the next number in the series by adding the previous two
Print or store the result
An anonymous function is a function without a name.
Anonymous functions are often used as arguments to higher-order functions.
They can be defined using the function keyword or as arrow functions.
Example: const add = function(x, y) { return x + y; }
Example: const multiply = (x, y) => x * y;
To create a web page using HTML and CSS, you need to write the structure and content in HTML and then style it using CSS.
Start by creating the basic structure of the web page using HTML tags such as <html>, <head>, <title>, <body>, <header>, <footer>, <nav>, <section>, <article>, <div>, etc.
Add content to the web page using text, images, links, and other ...
I applied via Campus Placement and was interviewed in Dec 2024. There were 3 interview rounds.
Average to easy difficulty level.
String manipulation in Java involves various methods like substring, concat, replace, etc.
Use substring() to extract a part of the string
Use concat() to concatenate two strings
Use replace() to replace a specific character or substring in a string
Various sorting algorithms in Java code
Bubble Sort: int[] arr = {5, 2, 8, 1, 3}; Arrays.sort(arr);
Selection Sort: int[] arr = {5, 2, 8, 1, 3}; Arrays.sort(arr);
Insertion Sort: int[] arr = {5, 2, 8, 1, 3}; Arrays.sort(arr);
Merge Sort: int[] arr = {5, 2, 8, 1, 3}; Arrays.sort(arr);
Quick Sort: int[] arr = {5, 2, 8, 1, 3}; Arrays.sort(arr);
The company is a leading software development firm specializing in creating innovative solutions for various industries.
Specializes in creating innovative software solutions
Works with clients from various industries
Known for high-quality and reliable products
Has a strong team of software engineers and developers
Handled conflicts by addressing issues directly, seeking compromise, and maintaining professionalism.
Addressed a disagreement with a colleague by scheduling a one-on-one meeting to discuss concerns and find common ground.
Resolved a conflict with a manager by actively listening to their perspective, providing feedback, and working together to find a solution.
Maintained professionalism during conflicts by staying calm, r...
I would gather more data to support my idea, present a compelling case to my manager, and be open to feedback and compromise.
Gather data to support the idea, such as market research, user feedback, or cost-benefit analysis.
Prepare a well-structured presentation highlighting the potential benefits of the product idea.
Listen to the manager's concerns and feedback, and be open to making adjustments or compromises.
Seek sup...
I appeared for an interview in Feb 2025.
Around 120 minutes. Had Different sections for coding, verbal, CS fundamentals.
I applied via Referral and was interviewed in Jun 2024. There were 2 interview rounds.
Basically communication and sql 12 question and progaming mcq 12q and 2 coding question
Developed a web-based application for managing project tasks and team collaboration.
Utilized React for the front-end to create a responsive user interface.
Implemented Node.js and Express for the back-end API to handle data requests.
Integrated MongoDB for database management to store user and project data.
Employed RESTful services for seamless communication between front-end and back-end.
Implemented user authentication ...
Inheritance is a concept in object-oriented programming where a class inherits attributes and methods from another class.
Allows a class to inherit properties and behaviors from another class
Promotes code reusability and reduces redundancy
Derived class can add its own unique attributes and methods
Example: Class 'Car' can inherit from class 'Vehicle' and gain attributes like 'color' and methods like 'drive'
Inheritance in object-oriented programming allows a class to inherit properties and behaviors from another class.
Inheritance allows for code reusability and promotes a hierarchical structure in classes.
Subclasses can access and modify the properties and methods of their parent class.
Example: class Animal { ... } class Dog extends Animal { ... }
Example: class Shape { ... } class Circle extends Shape { ... }
Reverse a string using array manipulation
Create an array of characters from the input string
Iterate through the array in reverse order and append each character to a new string
Return the reversed string
Use SQL query to select a particular column from a table and get the count of entries.
Use SELECT statement to specify the column you want to retrieve.
Use COUNT() function to get the count of entries in that column.
Combine both in a single query to achieve the desired result.
To sell remaining items at original price, the salesman can create urgency or highlight value to attract buyers.
1. Create a sense of urgency: Use phrases like 'limited stock' or 'last chance' to encourage quick purchases.
2. Highlight the value: Emphasize the quality or benefits of the item to justify the original price.
3. Bundle offers: Consider bundling the item with another product to increase perceived value.
4. Targ...
The time taken for the clock to tick from 8'o clock to 11'o clock is 105 seconds.
Each tick represents 1/8th of an hour (45 minutes) on the clock.
From 8'o clock to 11'o clock, there are 3 hours, so the total time taken is 3 * 45 = 135 minutes = 135 * 60 = 8100 seconds.
The time taken for the clock to tick from 8'o clock to 11'o clock is 8100 - 35 = 8065 seconds.
Find minimum positive value in array of strings.
Convert array elements to integers
Filter out negative values
Find minimum positive value
Find the index in an array where the sum of elements on both sides is equal.
Iterate through the array while maintaining two sums: leftSum and rightSum.
At each index, check if leftSum equals rightSum.
Example: For array [1, 2, 3, 4, 6], index 3 has leftSum (1+2+3) = 6 and rightSum (6) = 6.
If found, return the index; if not, return -1.
I applied via Referral and was interviewed in Jul 2024. There were 2 interview rounds.
I am a recent graduate with a degree in Computer Science and a passion for software development.
Recent graduate with a degree in Computer Science
Experience with programming languages such as Java, Python, and C++
Passionate about software development and eager to learn new technologies
SQL query to display average salary of each department
Use GROUP BY clause to group the results by department
Use AVG() function to calculate the average salary
Join the tables if necessary to get department information
Python program to print numbers from 0 to 100 as even and odd.
Use a for loop to iterate from 0 to 100.
Check if the number is even or odd using the modulo operator.
Print the number along with 'Even' or 'Odd' accordingly.
I want to work to contribute my skills and knowledge to a team, learn and grow professionally, and make a positive impact.
Contribute my skills and knowledge to a team
Learn and grow professionally
Make a positive impact
Two questions in a scenario-based coding context.
I applied via Company Website and was interviewed in Jan 2024. There was 1 interview round.
I applied via Job Portal
It was 1 hr Test of basic aptitude
It was 2 basic coding test
Top trending discussions
Some of the top questions asked at the CGI Group Associate Software Engineer interview -
The duration of CGI Group Associate Software Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 32 interview experiences
Difficulty level
Duration
based on 352 reviews
Rating in categories
Software Engineer
8.4k
salaries
| ₹5 L/yr - ₹12 L/yr |
Senior Software Engineer
7.7k
salaries
| ₹9 L/yr - ₹18.8 L/yr |
Lead Analyst
3.3k
salaries
| ₹15.2 L/yr - ₹26.3 L/yr |
Associate Software Engineer
1.9k
salaries
| ₹2.5 L/yr - ₹7 L/yr |
Senior Test Engineer
1.3k
salaries
| ₹9.8 L/yr - ₹17.7 L/yr |
Accenture
Wipro
Cognizant
Capgemini