GenC Pro
GenC Pro Interview Questions and Answers

Asked in Cognizant

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

Q. Write code to find prime numbers 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

Asked in Unified Mentor

Q. Write a program to determine if a number is even or odd.
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

Q. Write a program to generate the Fibonacci sequence.
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.



Reviews
Interviews
Salaries
Users

