Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q 9 . Which of the following statements about data structures is false? A . A Set is a collection that does not contain duplicates

Q9. Which of the following statements about data structures is false?
A. A Set is a collection that does not contain duplicates
B. A List is a ordered collection that can contain duplicates
C. Maps contain keys and values from which keys can be duplicate
D. Queue is typically a first-in, first-out collection
Q10. What result will be returned when the following code is run?A. RedB. YellowC. GreenD. Blue
Q11. Which primitive type-wrapper class pairing is false?
A. string-String
B. int-Integer
C. double-Double
D. char-Character
Q12. Which is not one of the Java File operation methods?
A. delete
B. read
C. write
D. createFile
Q13. Which Java File operation method is described incorrectly?
A. canRead(): tests whether the file is readable or not
B. getName(): returns the name of the file
C. length (): returns the number of characters in the file
D. mkdir(): creates a directory
Q14. Which usage is false for the following line of code?
File file = new File("filename.txt");
A. file.list);
B. file.getAbsolutePath();
C. file.exists();
D. file.size();
Q15. Which visibility notation of UML is not given correctly?
A.+ for public (visible to all classes)
B.- for private (visible only within the class)
C. & for protected (visible to subclasses)
D. for package or default visibility
Q16. Which statement about UML diagrams is incorrect?
A. UML is programming-language independent
B. UML is a standard graphical language for modeling object-oriented systems
C. Class methods and fields are indicated by underlining
D. Constructor is modeled in the second compartment of UML
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

13th Edition

0134773659, 978-0134773650

More Books

Students also viewed these Databases questions

Question

3. Why is the cash in the bank different from the profit figure?

Answered: 1 week ago

Question

How organized or ready for action on this issue is this public?

Answered: 1 week ago

Question

What does this public know about your organization?

Answered: 1 week ago

Question

What does this public expect from your organization?

Answered: 1 week ago