Question

QUESTION 4 is true? C a. An interface rnay contan abstract mee ods and concrete methods. b.An abstract class may not contain
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solutions :

Q 4) True or False

Answer : True Option is 'C' - A class may implement more than one interface.

Explanation : In java programming, the java class can inherits only one parent class. and also multiple inheritance is not allowed in java so we can achieve multiple inheritance through interfaces and interfaces are not classes. so finally a class can implements multiple interfaces and the interfaces are declared by comma separated list .

Q 5) Which of the following option is true about first pass of the Quick Sort.

Answer : The first pass divides the list into two parts and sort the first pass.

Explanation : In quick sort, it uses divide and conquer strategy. quick sort select last element as pivot element and all the left elements are less than pivot and all the right elements are greater that pivot. quick sort selects the pivot element and call for partitioning and re-arranging the array in such a way that the pivot element placed in its final position. so the two parts created that is left elements from pivot is one part and right elements from pivot is second part. and same process is happens again until all the elements sorts in ascending order.

Add a comment
Know the answer?
Add Answer to:
QUESTION 4 is true? C a. An interface rnay contan abstract mee ods and concrete methods....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT