
CGI Group


10+ CGI Group Interview Questions and Answers for Freshers
Q1. Concatenate the Largest Digit Problem
You are given three non-zero numbers 'A', 'B', and 'C'. Your task is to determine the number created by concatenating the largest digit found in each number, in the sequenc...read more
Concatenate the largest digit from three numbers to form a new number.
Find the largest digit in each number 'A', 'B', and 'C'.
Concatenate the largest digits in the order 'A', 'B', and 'C' to form the new number.
Return the final concatenated number as the output.
Retrieve the second highest salary from a database table
Use a SQL query with ORDER BY and LIMIT to retrieve the second highest salary
Example: SELECT salary FROM employees ORDER BY salary DESC LIMIT 1, 1
Q3. a clock tick 8 times on 8'o clock the time taken between 1st tick and last tick is 35 sec what is the time taken for starting tick and end tick at 11'o colck
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.
Q4. sql query for seleting a particular column from a table and give the employer count
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.
Q5. What is encapsulation in Java?
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 private variables and public methods to access and modify them.
Q6. What is inheritence inJava?
Inheritance in Java allows a class to inherit properties and methods from another class.
Inheritance is a fundamental concept in object-oriented programming.
It promotes code reusability and allows for the creation of hierarchical relationships between classes.
The class that is being inherited from is called the superclass or parent class, while the class that inherits is called the subclass or child class.
The subclass can access the public and protected members of the supercla...read more
Q7. what is inheritance
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'
Q8. code reverse a string
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
Q9. code in inheritance
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 { ... }
Q10. How can a person create value by looking at a percentage
By analyzing a percentage, a person can identify trends, make informed decisions, and optimize processes.
Identify trends by comparing percentages over time or between groups
Make informed decisions by using percentages to evaluate options
Optimize processes by using percentages to identify areas for improvement
For example, a software developer can use percentage of code coverage to identify areas of code that need more testing and optimization
Q11. What is waits in selenium
Waits in Selenium are used to pause the execution of the test script for a certain amount of time.
Waits are used to synchronize the test script with the application under test.
There are two types of waits in Selenium: implicit wait and explicit wait.
Implicit wait sets a default waiting time for the entire test script.
Explicit wait is used to wait for a specific condition to occur before proceeding with the test script.
Examples of conditions for explicit wait include element v...read more
Q12. advantage of selenium
Selenium is an open-source tool used for automating web browsers.
Selenium supports multiple programming languages like Java, Python, C#, etc.
It can be used for cross-browser testing.
Selenium can handle dynamic web pages with ease.
It supports parallel test execution.
Selenium can be integrated with other testing tools like TestNG, JUnit, etc.
Q13. What is the difference between emergency and urgent change? Emergency change is raised to resolve an incident. It doesn’t follow the normal change process and do not have a lead time. ECAB needs to be arranged....
read moreEmergency change is raised to resolve an incident while urgent change needs top level approvals to proceed.
Emergency change is not a part of the normal change process and does not have a lead time.
ECAB needs to be arranged for emergency change.
Urgent change needs to be implemented on an urgent basis and cannot wait to follow the entire change process.
Top level approvals are required for urgent change to proceed.
Q14. What happens when a change is unsuccessful? When a change fails a PIR call needs to be arranged in order to understand the reason and root cause of the failure also what differently would be done next time to a...
read moreA PIR is conducted to understand the reason and root cause of the failure and to document and update it.
Conduct a PIR to understand the reason and root cause of the failure
Document and update the PIR
Identify what could be done differently next time to avoid such a situation
Q15. What are some Cloud Security related services in Google Cloud Platform and AWS
Q16. What is Vertical Scaling and Horizontal Scaling
More about working at CGI Group







Top HR Questions asked in CGI Group for Freshers
Interview Process at CGI Group for Freshers

Top Interview Questions from Similar Companies








Reviews
Interviews
Salaries
Users/Month

