exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 2 question 14 discussion

Actual exam question from Microsoft's 70-483
Question #: 14
Topic #: 2
[All 70-483 Questions]

You are developing an application that will parse a large amount of text.
You need to parse the text into separate lines and minimize memory use while processing data.
Which object type should you use?

  • A. DataContractSerializer
  • B. StringBuilder
  • C. StringReader
  • D. JsonSerializer
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
jose1024
Highly Voted 5 years, 5 months ago
I think it is C. Here the empahasis is large amount of data.
upvoted 13 times
...
HgstExam
Highly Voted 4 years, 9 months ago
I do not understand why so many say B, the anwser is correct, parsing separate lines is what StringReader does, we do not need to build up a string here.
upvoted 13 times
...
hseagraves
Most Recent 4 years, 4 months ago
I think it's StringReader because we're *parsing* the text, not building a string.
upvoted 1 times
...
Ptu12125
4 years, 5 months ago
Correct answer is C: https://stackoverflow.com/questions/602279/stringwriter-or-stringbuilder#:~:text=The%20StringWriter%20is%20built%20on,convenience%20functions%20for%20string%20formatting.&text=A%20StringWriter%20is%20used%20to,in%20a%20memory%2Defficient%20manner.&text=StringBuilder%20and%20StringReader%20are%20used%20to%20improve%20performance%20in%20different%20situations.
upvoted 1 times
...
ensa
4 years, 6 months ago
ccccccccc
upvoted 1 times
...
ANKW
4 years, 10 months ago
The answer should be B. The optimal memory usage when working with strings is what StringBuilder was created for.
upvoted 1 times
...
ANKW
4 years, 10 months ago
The answer should be B. The optimal memory usage when working with strings is what StringBuilder was created for.
upvoted 3 times
...
ndlp43
4 years, 10 months ago
http://www.dotnetperls.com/stringreader C
upvoted 2 times
...
BurgSharp
4 years, 11 months ago
"Parsing in separate lines", that should be StringBuilder (B)
upvoted 1 times
...
slobex
5 years ago
Answ. C http://zetcode.com/csharp/stringreader/
upvoted 1 times
...
mmarinov
5 years, 1 month ago
The question is a bit confusing. But I think that the answer should be B) StringBuilder
upvoted 4 times
...
TonyBezerra
5 years, 2 months ago
I Think the right answer is B.
upvoted 3 times
...
dominikeps
5 years, 4 months ago
i vote for C
upvoted 7 times
...
harry9
5 years, 6 months ago
it should be B. StringReader inherits from TextReader, I dont think thats the case here
upvoted 5 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...