Badboy is defined who has ALL the following properties:

Does not have a girlfriend and is not married.
He is not more than 23 years old.
The middle name should be "Singh"
The last name should have more than 4 characters.
The character 'a' should appear in the last name at least
two times.
The name of one of his brothers should be "Ram"
Write a method:

boolean isBadBoy(boolean hasGirlFriend , boolean isMarried,
int age , String middleName , String lastName , String[]
brotherName);

isHaveGirlFriend is true if the person has a
girlfriend
isMarried is true if the person is married
age is the age of the person
middleName is the middle name of the person
lastName is the last name of the person
brotherName is the array of the names of his
brothers


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Write a c program using for loop in switch case?

1 Answers   Infosys,


Explain how do you convert strings to numbers in c?

0 Answers  


what is the use of call back function in c?tell me with example

2 Answers   Bosch,


Why Modern OS are interrupt driven?Give an example

3 Answers  


what is disadvantage of pointer in C

13 Answers   Tech Mahindra,






Is array name a pointer?

0 Answers  


The statement, int(*x[]) () what does in indicate?

0 Answers  


main() { printf(5+"Vidyarthi Computers"); }

6 Answers  


how to create duplicate link list using C???

0 Answers  


What is a const pointer in c?

0 Answers  


What is structure padding in c?

0 Answers  


implement OR gate without using any bitwise operator.

1 Answers   Alcatel, Wipro,


Categories