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

What are the different pointer models in c?

4 Answers  


Process by which one bit pattern in to another by bit wise operation is?

0 Answers   InterGraph,


Explain the process of converting a Tree into a Binary Tree.

0 Answers   Ignou,


What is the use of printf() and scanf() functions?

0 Answers  


Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)

0 Answers   InterGraph,






Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.

0 Answers  


Find occurence of a character in a sting.

3 Answers   TCS,


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

0 Answers   RBI,


write a own function to compare two strings with out using stringcomparition function?

6 Answers   LG Soft, Sasken,


which will be first in c compiling ,linking or compiling ,debugging.

3 Answers   Sonata,


what is difference b/w extern & volatile variable??

6 Answers   Teleca,


how to exchnage bits in a byte b7<-->b0 b6<-->b1 b5<-->b2 b4<-->b3 please mail me the code if any one know to rajeshmb4u@gmail.com

3 Answers   Honeywell, Huawei,


Categories