Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


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

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

Business

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

 

 

 

 

Option 1

Low Cost Option
Download this past answer in few clicks

2.83 USD

PURCHASE SOLUTION

Already member?


Option 2

Custom new solution created by our subject matter experts

GET A QUOTE

Related Questions