New Year Sale 2026! 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 7 Question 50 Discussion

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

As an Android developer, to change the font size of a text in Android layout, you should use attribute "android:textSize". Which of the following choices is the recommended syntax to change the font size to 18?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Ling
3 months ago
Wait, is it really 'sp'? I always used 'dp' before!
upvoted 0 times
...
Chandra
3 months ago
D is totally off, it should be lowercase 'textSize'.
upvoted 0 times
...
Martina
3 months ago
I thought it was dp, but I guess it's sp for text sizes?
upvoted 0 times
...
Pansy
4 months ago
Definitely not A or C, those are wrong.
upvoted 0 times
...
Karl
4 months ago
The correct syntax is android:textSize='18sp'.
upvoted 0 times
...
Leoma
4 months ago
I might be mixing it up, but wasn't there something about using quotes around the value? I hope I remember that correctly!
upvoted 0 times
...
Adolph
4 months ago
I feel like 'dp' is used for dimensions, not font sizes. So that rules out some options, right?
upvoted 0 times
...
Torie
4 months ago
I remember practicing a question like this, and I think it was important to use lowercase for the attribute name.
upvoted 0 times
...
Gary
5 months ago
I think the correct unit for font size is 'sp', but I'm not sure about the exact syntax.
upvoted 0 times
...
Jennie
5 months ago
I'm a little confused by the options here. 'sd' and 'point' don't seem like valid units for Android font size. I'll have to eliminate those and then decide between 'sp' and 'dp'.
upvoted 0 times
...
Velda
5 months ago
Okay, I remember now - the recommended unit for font size in Android is 'sp', which stands for 'scale-independent pixels'. So option B is the correct answer.
upvoted 0 times
...
Josue
5 months ago
Hmm, I'm a bit unsure about this. I know we use 'android:textSize' to change the font size, but I can't remember if it's 'sp', 'dp', or something else. I'll have to think this through carefully.
upvoted 0 times
...
Brigette
5 months ago
I'm pretty confident about this one. The recommended syntax is 'android:textSize="18sp"', so I'll go with option B.
upvoted 0 times
...
Cordell
5 months ago
This question seems pretty straightforward. I'm pretty sure the HTTP methods are GET, POST, PUT, and DELETE, which allow you to perform the basic CRUD operations on web resources. I'll double-check the options, but I think I've got a good handle on this one.
upvoted 0 times
...
Blondell
5 months ago
I'm feeling pretty confident about this one. The question is pretty straightforward, and option B with the Apex trigger and @future method seems like the most logical solution. I'll go with that and move on to the next question.
upvoted 0 times
...
Bulah
5 months ago
I'm not entirely sure about the best approach here, but I recall something about the Official Endpoint pattern related to Service A. Is that what we should focus on?
upvoted 0 times
...
Carlene
5 months ago
Okay, let me walk through this step-by-step. The income statement covers revenue and expenses, the balance sheet shows assets, liabilities, and equity, and the owner's equity statement focuses on changes in that specific account. That leaves the statement of cash flows as the one that summarizes the cash receipts and payments. I'm confident that's the right choice.
upvoted 0 times
...
Madelyn
9 months ago
Wow, this question is a real font of knowledge! I can't wait to see what the correct answer is. Hopefully, it's not too 'point'less!
upvoted 0 times
Mendy
8 months ago
C) android:textSize=-\'18point\'
upvoted 0 times
...
Rikki
8 months ago
B) androtd:textSize=\'18sp\'
upvoted 0 times
...
Hillary
9 months ago
A) android:textSize=18sd
upvoted 0 times
...
...
Monte
10 months ago
I'm leaning towards option B as well. After all, who would use 'sd' or 'point' as a unit for font size in Android? That's just asking for trouble.
upvoted 0 times
Joana
8 months ago
Let's go with option B then, it seems like the most logical choice.
upvoted 0 times
...
Josefa
9 months ago
Definitely, 'sd' and 'point' are not commonly used units for font size in Android.
upvoted 0 times
...
Dominga
9 months ago
I agree, using 'sp' for font size in Android is the standard practice.
upvoted 0 times
...
Kenneth
9 months ago
I think option B is the correct syntax for changing the font size to 18sp.
upvoted 0 times
...
...
Annette
10 months ago
Haha, 'android:TextSize=18dp'? Really? That's just silly. The correct syntax is definitely 'android:textSize=\'18sp\''.
upvoted 0 times
Vivan
9 months ago
User 2: Vivan is right, the correct syntax is definitely 'android:textSize=\'18sp\''.
upvoted 0 times
...
Honey
10 months ago
User 1: Haha, 'android:TextSize=18dp'? Really? That's just silly.
upvoted 0 times
...
...
Sunny
11 months ago
Hmm, I'm not sure about that. Isn't 'dp' (device-independent pixels) the standard unit for size in Android? I might go with option D.
upvoted 0 times
Jospeh
9 months ago
I think 'sp' is for text size, so maybe option B could work too.
upvoted 0 times
...
Fanny
9 months ago
But what about 'sp' for scalable pixels?
upvoted 0 times
...
Kristian
10 months ago
I agree, I would go with option D then.
upvoted 0 times
...
Loreta
10 months ago
I think 'dp' is the standard unit for size in Android.
upvoted 0 times
...
...
Dean
11 months ago
I think option B is the correct choice here. The 'sp' unit stands for 'scale-independent pixels', which is the recommended way to set font size in Android layouts.
upvoted 0 times
...
Peter
11 months ago
I'm not sure, but I think option B) makes sense because sp is for scalable pixels.
upvoted 0 times
...
Aleisha
11 months ago
I agree with Tori, using sp for font size is recommended for Android layouts.
upvoted 0 times
...
Tori
11 months ago
I think the correct syntax is B) androtd:textSize=\'18sp\'.
upvoted 0 times
...

Save Cancel