Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

give an example of type casting by a simple c program

2 Answers   TCS,


Explain how do you determine the length of a string value that was stored in a variable?

0 Answers  


If we give two names then this displays the connection between the two people. It is nothing but flames game

1 Answers  


how write a addtion of two single dimensional array using of pointer in c language?

3 Answers   DRDO,


How can you pass an array to a function by value?

0 Answers  


What is a string?

0 Answers  


Explain how do you declare an array that will hold more than 64kb of data?

0 Answers  


Explain data types & how many data types supported by c?

0 Answers  


Whats s or c mean?

0 Answers  


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

2 Answers   Bosch,


How will you allocate memory to a double pointer ?

2 Answers  


How to write a code for reverse of string without using string functions?

0 Answers   TCS,


Categories