What is a tree in Java? A   A tree is a branching mechanism that allows multiple decisions in one statement. B   A tree is a collection in which each entry has one parent but may have multiple children. C   A tree is a collection in which each entry may have multiple parents but may have only one child. D   A tree is a method call pattern where each call may generate multiple additional calls until the process is complete.     What arguments does Java need to create a Font object? A   One argument: the font's name. B   Two arguments: the font's name and its style. C   Three arguments: the font's name, its style, and its size. D   Four arguments: the font's name, its style, its size, and its color.     How do we use an iterator to get the next element in a collection? A   We call the iterator's next() method. B   We call the collection's iterate() method. C   We use the iterator's get() method. D   We increase the iterator's index by one.   Which of the following is an error condition that can occur when moving through a list using an iterator? A   You could try to move past the end of the list. B   You could get a file read or write error. C   The iterator type may not match the collection type. D   An empty class might create a null iterator.   How many tabs does a tabbed pane have by default when you first create it? A   None. All tabs have to be added by the program. B   One. Java assumes you will need at least one tab. C   Two. Java assumes you will need at least two tabs or you wouldn't be using a tabbed pane. D   Three. That is the most common number used, so Java creates three tabs by default.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
What is a tree in Java?
  1. A
     
    A tree is a branching mechanism that allows multiple decisions in one statement.
  2. B
     
    A tree is a collection in which each entry has one parent but may have multiple children.
  3. C
     
    A tree is a collection in which each entry may have multiple parents but may have only one child.
  4. D
     
    A tree is a method call pattern where each call may generate multiple additional calls until the process is complete.
     
     
    What arguments does Java need to create a Font object?
    1. A
       
      One argument: the font's name.
    2. B
       
      Two arguments: the font's name and its style.
    3. C
       
      Three arguments: the font's name, its style, and its size.
    4. D
       
      Four arguments: the font's name, its style, its size, and its color.
       
       
      How do we use an iterator to get the next element in a collection?
      1. A
         
        We call the iterator's next() method.
      2. B
         
        We call the collection's iterate() method.
      3. C
         
        We use the iterator's get() method.
      4. D
         
        We increase the iterator's index by one.
         
        Which of the following is an error condition that can occur when moving through a list using an iterator?
        1. A
           
          You could try to move past the end of the list.
        2. B
           
          You could get a file read or write error.
        3. C
           
          The iterator type may not match the collection type.
        4. D
           
          An empty class might create a null iterator.
           
          How many tabs does a tabbed pane have by default when you first create it?
          1. A
             
            None. All tabs have to be added by the program.
          2. B
             
            One. Java assumes you will need at least one tab.
          3. C
             
            Two. Java assumes you will need at least two tabs or you wouldn't be using a tabbed pane.
          4. D
             
            Three. That is the most common number used, so Java creates three tabs by default.
             
             
            What is the Collections class (not Collection)?
            1. A
               
              It is a class that includes several different types of collections.
            2. B
               
              It is an interface defining the methods that any collection must implement.
            3. C
               
              It provides a number of common methods that work with different collections.
            4. D
               
              It is an abstract class providing some of the methods that all collections use, and defining others that must be implemented in any collection.
               
               
              How is a map different from other Java data structures?
              1. A
                 
                Each data element connects to the next element in the map.
              2. B
                 
                It's a data structure that stores data pairs: keys and their associated values.
              3. C
                 
                Each data element can connect to multiple related elements in a map.
              4. D
                 
                It's a data structure that keeps its data sorted.
                 
                 
                What is a wrapper class?
                1. A
                   
                  A class that wraps a border around an image in a window.
                2. B
                   
                  A class that encloses related classes into a package.
                3. C
                   
                  A class that puts the finishing touches on a GUI project by adding a "theme" of related colors and style elements.
                4. D
                   
                  A class that wraps a primitive data type in an object so it can be stored in a collection.
                   
                  • How does a map tell us when an element is not found?
                    1. A
                       
                      The map returns a null reference.
                    2. B
                       
                      The map throws an exception.
                    3. C
                       
                      The map returns an empty data object.
                    4. D
                       
                      The map returns a value of zero.
                   
                   
                   
Expert Solution
steps

Step by step

Solved in 6 steps

Blurred answer
Knowledge Booster
Adjacency Matrix
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education