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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions