Android
AND-401 · Question #53
Which of the following lines of code is used to pass a value to the next activity?
The correct answer is D. putValue("test"). See the full explanation below for the reasoning.
Question
Which of the following lines of code is used to pass a value to the next activity?
Options
- AIntent i = new Intent(this,newActivity);
- BaddExtra("test");
- CIntent i = new Intent(this,newActivity);
- DputValue("test");
- EIntent i = new Intent(this,newActivity);
- FputValue("value1","test");
- GIntent i = new Intent(this,newActivity);
- HputExtra("value1","test");
How the community answered
(22 responses)- D77% (17)
- E5% (1)
- F5% (1)
- H14% (3)
Community Discussion
No community discussion yet for this question.