GenC Pro

GenC Pro Interview Questions and Answers

Updated 17 Dec 2021

Q1. 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.

Q2. Write a code to find prime number 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

Q3. Write a program for Fibonacci series.

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.

Q4. Write a program for even or odd number.

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.

Are these interview questions helpful?
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.7
 • 5.6k Interviews
View all

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary

GenC Pro Interview Questions
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
65 L+

Reviews

4 L+

Interviews

4 Cr+

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