Multiple Choice
Consider the following code snippet to query SQLite database: String[] result_columns = new String[] {KEY_ID, COL1, COL2}; Cursor allRows = myDatabase.query(true, DATABASE_TABLE, result_columns, null, null, null, null, null, null) ; Which of the following prints out the values of COL1 column correctly if the result is not empty?
A) if (allRows.moveToFirst() ) { do {
System.out.println(allRows.getString(1) ) ;
}
While (allRows.moveToNext() ) ; }
B) do { System.out.println(allRows.getString(0) ) ; while (allRows.moveToNext() ) ;
C) /system/app/<package name>/files
D) if (allRows!= null) { while (!allRows.isNull() ) ; }
Correct Answer:

Verified
Correct Answer:
Verified
Q94: Which of the following is NOT correct
Q95: Which of the following are the possible
Q96: Which of the following are NOT types
Q97: Which of the following is NOT correct
Q98: Which of the following is the base
Q100: Which of the following best explains the
Q101: Which of the following is the correct
Q102: What is the name of the folder
Q103: Which of the following are layout-related methods
Q104: Which of the following is required to