Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Android AND-801 Exam - Topic 4 Question 45 Discussion

Check the following image which includes Android code for a sum calculator. Which of the following choices is correct about this Android code?
C) The sum result will not work, because N1 and N2 must be changed to Integer first.
A) The sum result will not appear on the app until adding another print out method.
B) The sum result of N1 and N2 will appear in result_view TextView widget when the user clicks button_sum button.
D) You must add input method to this code to enter the value of N1 and N2 numbers.

Android AND-801 Exam - Topic 4 Question 45 Discussion

Actual exam question for Android's AND-801 exam
Question #: 45
Topic #: 4
[All AND-801 Questions]

Check the following image which includes Android code for a sum calculator. Which of the following choices is correct about this Android code?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

0/2000 characters
Glory
8 months ago
D sounds right. You definitely need an input method for N1 and N2.
upvoted 0 times
...
Malika
8 months ago
Wait, are you sure about B? What if the inputs aren't integers?
upvoted 0 times
...
Nickie
8 months ago
A makes sense too. Without a print method, nothing shows up.
upvoted 0 times
...
Annice
8 months ago
I think C is right. N1 and N2 need to be integers first.
upvoted 0 times
...
Candida
9 months ago
B is correct! The result will show in the TextView.
upvoted 0 times
...
Mariann
9 months ago
I feel like the sum should show up in the TextView after the button is clicked, so I'm leaning towards option B as the right answer.
upvoted 0 times
...
Leota
9 months ago
I think we discussed needing to set up input methods for user data, so option D could be relevant too. But I'm not completely confident.
upvoted 0 times
...
Kimbery
9 months ago
I'm not entirely sure, but I feel like we did a similar question where we had to convert inputs to integers first. That makes me lean towards option C.
upvoted 0 times
...
Reed
9 months ago
I remember something about how the result should display in a TextView when a button is clicked, so I think option B might be correct.
upvoted 0 times
...
Kimbery
9 months ago
Hmm, this looks like a tricky one. I'll need to think through the socket module syntax carefully.
upvoted 0 times
...
Wilda
9 months ago
I'm a bit confused by this question. There are a lot of business and technical concepts being thrown around. I'm not entirely sure what "SOA services orchestration and reusability" means in practical terms. I think I'd need to do some more research on SOA and business architecture before I could confidently answer this. Maybe I'll make a note to review those topics before the exam.
upvoted 0 times
...
Lindsey
9 months ago
Ugh, I can never remember which component does what. I'll guess VPN filter just to be safe, but I feel unsure about that.
upvoted 0 times
...
Lajuana
9 months ago
This one seems pretty straightforward. I'm pretty confident the answer is A - Daily Scrum, Sprint Review, and Sprint Retrospective.
upvoted 0 times
...
Leonora
10 months ago
Okay, I think I've got this. I just need to plug the numbers into the right formula and I should be able to determine the correct ratio.
upvoted 0 times
...
Rasheeda
1 year ago
Wait, how am I supposed to use this calculator if I don't have a way to input the numbers? Option D is the only logical choice here.
upvoted 0 times
Cassandra
1 year ago
User 3: I agree, without an input method, the calculator won't be useful.
upvoted 0 times
...
Theola
1 year ago
User 2: Yeah, we definitely need a way to input the numbers for the calculator to work.
upvoted 0 times
...
Jesus
1 year ago
User 1: I think Option D is the correct choice.
upvoted 0 times
...
...
Stephaine
1 year ago
Option B is the way to go. The sum result will show up in the TextView as long as the button click event is properly implemented.
upvoted 0 times
Halina
1 year ago
Looks like the code is set up to show the sum result in the TextView when the button is clicked. Option B is the correct choice.
upvoted 0 times
...
Erinn
1 year ago
I agree, the code looks like it will display the sum in the TextView after the button is clicked.
upvoted 0 times
...
Leanora
1 year ago
Option B is correct. The sum result will appear in the result_view TextView when the button is clicked.
upvoted 0 times
...
...
Odette
1 year ago
Haha, this code is missing the input method to enter the values of N1 and N2. Option D is the way to go, unless you want to do mental math every time!
upvoted 0 times
...
Melynda
1 year ago
I'm not sure, but I think we need to add an input method to enter the values of N1 and N2 numbers.
upvoted 0 times
...
Aileen
1 year ago
I agree with Tori, because the sum result will appear in result_view TextView widget when the user clicks button_sum button.
upvoted 0 times
...
Tori
1 year ago
I think the correct choice is B.
upvoted 0 times
...
Alfreda
1 year ago
I'm not sure, but I think we need to add an input method to enter the values of N1 and N2 numbers.
upvoted 0 times
...
Lindy
1 year ago
I think Option C is correct. N1 and N2 need to be converted to Integer first before performing the addition operation.
upvoted 0 times
Vi
1 year ago
I'm not sure, but I think Option B makes sense based on the code provided.
upvoted 0 times
...
Yuette
1 year ago
I agree with you, Option B seems to be the correct choice.
upvoted 0 times
...
Chi
1 year ago
No, I believe it's Option B. The sum result of N1 and N2 will appear in result_view TextView widget when the user clicks button_sum button.
upvoted 0 times
...
Barrett
1 year ago
I agree with you. Option B seems to be the correct choice for this Android code.
upvoted 0 times
...
Barrett
1 year ago
I believe Option B is correct. The sum result will appear in result_view TextView widget when the user clicks button_sum button.
upvoted 0 times
...
Carlene
1 year ago
I think Option C is correct. N1 and N2 need to be converted to Integer first before performing the addition operation.
upvoted 0 times
...
...
Margot
1 year ago
The sum result will definitely appear in the result_view TextView widget when the user clicks the button_sum button. Option B is the correct answer here.
upvoted 0 times
...
Dusti
1 year ago
I agree with Isabella, because the sum result will appear in result_view TextView widget when the user clicks button_sum button.
upvoted 0 times
...
Isabella
1 year ago
I think the correct choice is B.
upvoted 0 times
...

Save Cancel