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

How can you avoid including a header more than once?

0 Answers  


Describe the order of precedence with regards to operators in C.

0 Answers  


which is an algorithm for sorting in a growing Lexicographic order

0 Answers  


Write a program to show the change in position of a cursor using c

0 Answers  


What is the benefit of using const for declaring constants?

0 Answers  






Differentiate abs() function from fabs() function.

0 Answers  


How do you redirect a standard stream?

0 Answers  


What is property type c?

0 Answers  


Write a progarm to find the length of string using switch case?

0 Answers   TCS,


What is the difference between malloc() and calloc()?

0 Answers  


Is c still used?

0 Answers  


write a program for 4 4 3 3 3 3 2 2 2 2 2 2 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 2 2 2 2 2 2 3 3 3 3 4 4

1 Answers  


Categories