Deck 13: Xml and Content Apps

Full screen (f)
exit full mode
Question
____________ apps are apps that display selected content from a website.
Use Space or
up arrow
down arrow
to flip the card.
Question
One of the parameters of the endElement method of the DefaultHandler class is a String that contains the name of the end tag that was just encountered.
Question
One of the parameters of the characters method of the DefaultHandler class is a String that contains the characters that were just encountered.
Question
The AsyncTask class, from the android.os package, allows us to perform a task in the ____________.
Question
It is possible to instantiate an object of the AsyncTask class.
Question
The ArrayAdapter constructor has this API:
ArrayAdapter< T>( Context c, int i, List< T> objects)
What does the parameter i represent?

A) It is always 0
B) A random integer
C) The number of elements in the List objects
D) A resource id
Question
ArrayAdapter inherits from ListAdapter.
Question
OnItemClickListener is a public inner ____________ of the AdapterView class.
Question
To create an Intent to open the web browser, we pass the ____________ constant of the Intent class and a Uri reference as the two parameters of the Intent constructor.
Question
A DOM parser converts an XML file into a(n) ____________.
Question
A SAX parser builds a list as it reads the XML document.
Question
The DefaultHandler class is the base class for SAX level 2 event handlers.
Question
What is the entity reference that represents the < character?

A) lt;
B) &< ;
C) <
D) &lessThan;
Question
It is possible to instantiate an object of the SAXParser class.
Question
What does DTD stand for?

A) Document Type DOM
B) Declaration Type Document
C) DOM Type Declaration
D) Document Type Declaration
Question
The AsyncTask class uses three generic types that we must specify when extending it. The class header of a subclass is as follows:
AccessModifier ClassName extends AsyncTask< Params, Progress, Result>
Params is the data type of an array that is passed to what method when we call that method?

A) doInBackground
B) execute
C) onPostExecute
D) finish
Question
What type of method is the newInstance method of the SAXParserFactory class?

A) A constructor
B) An instance method
C) A class (static) method
D) A constant
Question
The newSAXParser method of the SAXParserFactory class does not throw any exception.
Question
Using a SAX parser, it is possible to convert an XML document into a list of objects.
Question
The parse method of the SAXParser class does not throw any exception.
Question
It is possible to instantiate an object of the SAXParserFactory class.
Question
The DTD contains the __________________ that an XML document should adhere to.
Question
The AsyncTask class uses three generic types that we must specify when extending it. The class header of a subclass is as follows:
AccessModifier ClassName extends AsyncTask< Params, Progress, Result>
where Params, Progress, and Result are placeholders for actual __________________ names.
Question
If an OnItemClickListener object is listening for events on a list, the __________________ method is automatically called when the user selects an item from the list.
Question
The parse static method of the Uri class accepts a String parameter and returns a __________________ reference.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 13: Xml and Content Apps
1
____________ apps are apps that display selected content from a website.
Content
2
One of the parameters of the endElement method of the DefaultHandler class is a String that contains the name of the end tag that was just encountered.
True
3
One of the parameters of the characters method of the DefaultHandler class is a String that contains the characters that were just encountered.
False
4
The AsyncTask class, from the android.os package, allows us to perform a task in the ____________.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
It is possible to instantiate an object of the AsyncTask class.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
The ArrayAdapter constructor has this API:
ArrayAdapter< T>( Context c, int i, List< T> objects)
What does the parameter i represent?

A) It is always 0
B) A random integer
C) The number of elements in the List objects
D) A resource id
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
ArrayAdapter inherits from ListAdapter.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
OnItemClickListener is a public inner ____________ of the AdapterView class.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
To create an Intent to open the web browser, we pass the ____________ constant of the Intent class and a Uri reference as the two parameters of the Intent constructor.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
A DOM parser converts an XML file into a(n) ____________.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
A SAX parser builds a list as it reads the XML document.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
The DefaultHandler class is the base class for SAX level 2 event handlers.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
What is the entity reference that represents the < character?

A) lt;
B) &< ;
C) <
D) &lessThan;
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
It is possible to instantiate an object of the SAXParser class.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
What does DTD stand for?

A) Document Type DOM
B) Declaration Type Document
C) DOM Type Declaration
D) Document Type Declaration
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
The AsyncTask class uses three generic types that we must specify when extending it. The class header of a subclass is as follows:
AccessModifier ClassName extends AsyncTask< Params, Progress, Result>
Params is the data type of an array that is passed to what method when we call that method?

A) doInBackground
B) execute
C) onPostExecute
D) finish
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
What type of method is the newInstance method of the SAXParserFactory class?

A) A constructor
B) An instance method
C) A class (static) method
D) A constant
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
The newSAXParser method of the SAXParserFactory class does not throw any exception.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
Using a SAX parser, it is possible to convert an XML document into a list of objects.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
The parse method of the SAXParser class does not throw any exception.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
It is possible to instantiate an object of the SAXParserFactory class.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
The DTD contains the __________________ that an XML document should adhere to.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
The AsyncTask class uses three generic types that we must specify when extending it. The class header of a subclass is as follows:
AccessModifier ClassName extends AsyncTask< Params, Progress, Result>
where Params, Progress, and Result are placeholders for actual __________________ names.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
If an OnItemClickListener object is listening for events on a list, the __________________ method is automatically called when the user selects an item from the list.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
The parse static method of the Uri class accepts a String parameter and returns a __________________ reference.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 25 flashcards in this deck.