GenC Pro

GenC Pro Interview Questions and Answers

Updated 12 Jul 2025

Asked in Cognizant

3d ago

Q. Statements P: Some children are adults. Q: Some adults are not old Conclusions I. Some children are not old. II. Some children are old.

Ans.

The conclusions are both valid based on the given statements.

  • The first conclusion follows from the fact that if some children are adults and some adults are not old, then it is possible that some children are not old.

  • The second conclusion is not necessarily true, as it is possible that all children who are adults are also not old.

  • The statements do not provide enough information to determine the exact relationship between children, adults, and old age.

Asked in Cognizant

4d ago

Q. Write code to find prime numbers between two given numbers.

Ans.

Code to find prime numbers between two given numbers.

  • Create a function that takes two numbers as input

  • Loop through the range of numbers between the two inputs

  • Check if each number is prime using a separate function

  • If the number is prime, add it to a list

  • Return the list of prime numbers

GenC Pro Interview Questions and Answers for Freshers

illustration image
6d ago

Q. Write a program to determine if a number is even or odd.

Ans.

A program to determine if a number is even or odd.

  • Use the modulo operator (%) to check if the remainder of the number divided by 2 is 0.

  • If the remainder is 0, the number is even. Otherwise, it is odd.

Asked in TCS

5d ago

Q. Write a program to generate the Fibonacci sequence.

Ans.

Program to generate Fibonacci series.

  • Use a loop to iterate and generate the series.

  • Start with two initial values, 0 and 1.

  • Each subsequent value is the sum of the two previous values.

Are these interview questions helpful?

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 Pro 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