Answered step by step
Verified Expert Solution
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
Q 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 firstin firstout collection
Q What result will be returned when the following code is run?A RedB. YellowC. GreenD. Blue
Q Which primitive typewrapper class pairing is false?
A stringString
B intInteger
C doubleDouble
D charCharacter
Q Which is not one of the Java File operation methods?
A delete
B read
C write
D createFile
Q 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
Q Which usage is false for the following line of code?
File file new Filefilenametxt;
A file.list;
B file.getAbsolutePath;
C file.exists;
D file.size;
Q 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
Q Which statement about UML diagrams is incorrect?
A UML is programminglanguage independent
B UML is a standard graphical language for modeling objectoriented systems
C Class methods and fields are indicated by underlining
D Constructor is modeled in the second compartment of UML
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started