GenC Pro
GenC Pro Interview Questions and Answers
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.
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.
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
Q3. Write a program for Fibonacci series.
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.
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.
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
Reviews
Interviews
Salaries
Users/Month