Add office photos
Engaged Employer

CGI Group

4.0
based on 4.7k Reviews
Video summary
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by

Apnapaisa Interview Questions and Answers

Updated 11 Jul 2024
Popular Designations

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

Ans.

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.

Add your answer
Q2. How can you retrieve the second highest salary from a database table?
Ans.

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

Add your answer

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

Ans.

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.

Add your answer

Q4. sql query for seleting a particular column from a table and give the employer count

Ans.

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.

Add your answer
Discover Apnapaisa interview dos and don'ts from real experiences

Q5. What is encapsulation in Java?

Ans.

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.

Add your answer

Q6. What is inheritence inJava?

Ans.

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

Add your answer

Q7. what is inheritance

Ans.

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'

Add your answer

Q8. code reverse a string

Ans.

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

Add your answer

Q9. code in inheritance

Ans.

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 { ... }

Add your answer

More about working at CGI Group

Top Rated Company for Women - 2024
Top Rated IT/ITES Company - 2024
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Apnapaisa

based on 7 interviews
2 Interview rounds
Aptitude Test Round
Technical Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Associate Software Engineer Interview Questions from Similar Companies

3.4
 • 48 Interview Questions
3.7
 • 27 Interview Questions
3.6
 • 16 Interview Questions
3.4
 • 10 Interview Questions
3.1
 • 10 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter