Trusted by Students Everywhere
Why Choose Us?
0% AI Guarantee

Human-written only.

24/7 Support

Anytime, anywhere.

Plagiarism Free

100% Original.

Expert Tutors

Masters & PhDs.

100% Confidential

Your privacy matters.

On-Time Delivery

Never miss a deadline.

Algonquin College CST 2335 Quiz 3: 1)Which of the following functions is required for implementing the ListAdapter interface a

Communications Aug 02, 2021

Algonquin College

CST 2335

Quiz 3:

1)Which of the following functions is required for implementing the ListAdapter interface a.        getCount

  1. onCreate
  2. setContentView

 

  1. What is the corresponding SQL query to this function: db.query(true, "PURCHASES", new String []{"Price", "Quantity"}, "Quantity > ?", new String[] {"10" }, null, null, null, null)?
  1. Select Price, Quantity from PURCHASES"
  2. Select Price,Quantity from PURCHASES where Quantity > 10

c.             Select distinct Price,Quantity from PURCHASES where Quantity > 10

 

  1. If a database is opened and the version is the same as the previously created one on the device, which function will be called first:

a.            onOpen

  1. onUpgrade
  2. onDowngrade

 

  1. If a database is opened and the version is greater than the previously created one on the device, which function will be called first:
    1. onOpen

b.            onUpgrade

c.             onDowngrade

 

  1. If a database is opened and the version is less than the previously created one on the device, which function will be called first:
    1. onOpen
    2. onUpgrade

c.             onDowngrade

 

  1. When you write a ListView adapter class, which function gets called first when populating the ListView:
    1. getView

b.            getCount

c.             getItem

 

  1. Which of the following functions causes a ListView to start the re-population of the list:
    1. repopulate
    2. getData

 

c.             notifyDataSetChanged

 

 

  1. This is a fragment of an SQL query clause: " ? = ? AND ? NOT NULL", new String [] { "Brandname", "Nike", "CUSTOMER_NAME"}. What will be the corresponding SQL Where clause:
    1. ? = ? AND ? NOT NULL
    2. Brandname = Nike
    3. Nike = Brandname and CUSTOMER_NAME NOT NULL

d.            Brandname = Nike and CUSTOMER_NAME NOT NULL

 

  1. What is the ViewHolder pattern?
    1. When a ListView holds a collection of Views for each list cell

b.            When ListView cells that are scrolled off screen get re-used for new cells coming into view on the screen

c.             When Views for cells are always created by inflating them from an XML file

 

  1. What function for getting a database object must you call if you want to insert values?
    1. getReadableDatabase

b.            getWriteableDatabase

  1. getDatabaseReadable
  2. getDatabaseWriteable

 

 

 

 

Archived Solution
Unlocked Solution

You have full access to this solution. To save a copy with all formatting and attachments, use the button below.

Already a member? Sign In
Important Note: This solution is from our archive and has been purchased by others. Submitting it as-is may trigger plagiarism detection. Use it for reference only.

For ready-to-submit work, please order a fresh solution below.

Or get 100% fresh solution
Get Custom Quote
Secure Payment