100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CP470 UPDATED Actual Exam Questions and CORRECT Answers $9.49   Add to cart

Exam (elaborations)

CP470 UPDATED Actual Exam Questions and CORRECT Answers

 6 views  0 purchase
  • Course
  • CP470
  • Institution
  • CP470

CP470 UPDATED Actual Exam Questions and CORRECT Answers What are parcelables? - CORRECT ANSWER- -Uses putExtra with parcelable as the object -Class has to implement parcelable What two methods do you need for Parcelables? - CORRECT ANSWER- describeContents() and WriteToParcel() - called whe...

[Show more]

Preview 2 out of 8  pages

  • September 26, 2024
  • 8
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CP470
  • CP470
avatar-seller
MGRADES
CP470 UPDATED Actual Exam Questions
and CORRECT Answers
What are parcelables? - CORRECT ANSWER- ✔✔-Uses putExtra with parcelable as the
object
-Class has to implement parcelable


What two methods do you need for Parcelables? - CORRECT ANSWER-
✔✔describeContents() and WriteToParcel() - called when startActivity is executed, takes
parcel as input parameter


How do you retrieve a Parcelable from another activity? - CORRECT ANSWER-
✔✔getParcelableExtra()



How can you store files? - CORRECT ANSWER- ✔✔-SharedPreferences
-Internal/External
-SQL Databases
-Content Providers


External Storage - CORRECT ANSWER- ✔✔-could be SD Card
-World-readable
-Permissions set on AM


Internal Storage - CORRECT ANSWER- ✔✔-Always available
-Device's file system
-Only app can access files
-System removes all upon uninstall
-getFilesDir() for permanent
-getCacheDir() for temporary


SQLite DB - CORRECT ANSWER- ✔✔A - all or no mods performed

, C - when transaction has completed, all data is in consistent state
I - mods made by concurrent transactions must be isolated
D - effects are permanent


SQLiteOpenHelper - CORRECT ANSWER- ✔✔-Used for creating and opening DB
-Need to override constructor, onCreate, onUpgrade
-SQLiteOpenHelper(context, dbName, null, version)


How do you create an SQL DB? - CORRECT ANSWER- ✔✔Must call super
super(context, DB_NAME, NULL, VER)


SQLiteDB - onCreate - CORRECT ANSWER- ✔✔-if DB doesn't exist, this will be called
-Creating tables should occur here
-execSQL used to execute SQL statements


SQLiteDB - onUpgrade() - CORRECT ANSWER- ✔✔-if DB exists but ver number is newer,
then this is called
-used to drop tables, add tables, do anything else to update new schema


How do you open a read/write database? - CORRECT ANSWER- ✔✔Database =
dbHelper.getWritableDatabase()


Content values - CORRECT ANSWER- ✔✔-Class used for inserting rows into DB
-put(columnName, value)


rawQuery - CORRECT ANSWER- ✔✔-allows for arguments in queries



Cursor - CORRECT ANSWER- ✔✔-queries always return a cursor object
-storage object that contains rows from a query
-pointer to table rows

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller MGRADES. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $9.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

83637 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$9.49
  • (0)
  Add to cart