exam questions

Exam 98-364 All Questions

View all questions & answers for the 98-364 exam

Exam 98-364 topic 1 question 15 discussion

Actual exam question from Microsoft's 98-364
Question #: 15
Topic #: 1
[All 98-364 Questions]

You need to store product names that vary from three to 30 characters. You also need to minimize the amount of storage space that is used.
Which data type should you use?

  • A. VARCHAR (3, 30)
  • B. CHAR (3, 30)
  • C. VARCHAR (30)
  • D. CHAR (30)
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
jrn1992
Highly Voted 5 years ago
Use char when the sizes of the column data entries are consistent. Use varchar when the sizes of the column data entries vary considerably. Use varchar(max) when the sizes of the column data entries vary considerably, and the string length might exceed 8,000 bytes.
upvoted 12 times
...
rogeriosolano
Most Recent 2 years, 11 months ago
Selected Answer: C
VARCHAR is variable-length. CHAR is fixed length.
upvoted 1 times
...
elkreationZ
3 years, 11 months ago
VARCHAR(30) is the correct syntax
upvoted 1 times
...
Yorkatta
4 years, 3 months ago
Question is a bit tricky by mentioning minimum length, VARCHAR(30) is the correct syntax.
upvoted 3 times
...
marmich
4 years, 5 months ago
Is talking about 3-30. So I believe the correct should be varchar (3,30)
upvoted 1 times
...
rinost
4 years, 6 months ago
why is it not varchar (3,30)?
upvoted 1 times
AntidotE
4 years, 6 months ago
because there is no minimum length?
upvoted 2 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 ...