GenC Elevate

GenC Elevate Interview Questions and Answers for Freshers

Updated 9 Jul 2025

Asked in Cognizant

5d ago

Q. You need to give a worker 5 grams of gold plate each day. What is the minimum number of cuts required to divide the gold plate so you can give the worker the correct amount each day?

Ans.

Minimum number of cuts required to divide 5gm of gold plate into same amount for workers daily.

  • The answer is 4 cuts.

  • Each cut will divide the plate into 2 equal parts.

  • After 3 cuts, we will have 8 equal pieces.

  • The 4th cut will divide one of the 8 pieces into two equal parts.

Asked in Cognizant

2d ago

Q. Write code to print prime numbers in a right-angle triangle format.

Ans.

Code to print prime numbers in right angle triangle format.

  • Create a function to check if a number is prime or not.

  • Use nested loops to print the numbers in right angle triangle format.

  • Start with the first prime number and keep adding prime numbers to the triangle.

  • Example: 2 3 5 7 11 13 17 19 23 29

Asked in Cognizant

5d ago

Q. Do you know the 4 pillars of OOP? Explain.

Ans.

The 4 pillars of OOP are Abstraction, Encapsulation, Inheritance, and Polymorphism.

  • Abstraction: Hiding implementation details and showing only necessary information.

  • Encapsulation: Binding data and functions together to prevent external interference.

  • Inheritance: Creating new classes from existing ones, inheriting properties and methods.

  • Polymorphism: Using a single interface to represent multiple types of objects.

Asked in Cognizant

6d ago

Q. What approach did you take to learn data science?

Ans.

I took a structured approach to learn data science.

  • Started with learning the basics of statistics and programming

  • Took online courses and read books on data science

  • Practiced on real-world datasets and participated in Kaggle competitions

  • Joined a data science community to learn from others and share knowledge

  • Continuously updated my skills and knowledge through online resources and attending conferences

Are these interview questions helpful?

Asked in Cognizant

1d ago

Q. Exception handling in Java. Try catch finally. Types of Exceptions ans etc.

Ans.

Exception handling in Java involves using try-catch-finally blocks to handle and manage exceptions.

  • Java provides a mechanism to handle runtime errors called exceptions.

  • The try block is used to enclose the code that might throw an exception.

  • The catch block is used to catch and handle the exception.

  • The finally block is used to execute code regardless of whether an exception occurred or not.

  • There are two types of exceptions: checked exceptions and unchecked exceptions.

  • Checked ex...read more

Asked in TCS

6d ago

Q. What is the difference between checked and unchecked exceptions?

Ans.

Checked exceptions are checked at compile-time while unchecked exceptions are not.

  • Checked exceptions are those that are checked at compile-time and must be handled by the programmer using try-catch or throws clause.

  • Unchecked exceptions are those that are not checked at compile-time and can occur at runtime, such as NullPointerException or ArrayIndexOutOfBoundsException.

  • Checked exceptions are usually used for recoverable errors, while unchecked exceptions are used for unrecove...read more

Interview Experiences of Popular Companies

Cognizant Logo
3.7
 • 5.9k Interviews
View all
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
GenC Elevate Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

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

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits