Question 52

Which of the following will be true in Visual Basic?

  1. A"Care" > "care"
  2. B"Care" = "care"
  3. C"Care" < "care"
  4. DError, only numeric values allowed
Show answerHide answer

Correct answer: (C) "Care" < "care"

Explanation

VB's default (binary) string comparison uses character codes. 'C' (67) is less than 'c' (99), so "Care" < "care" is true.

From DSSSB TGT Computer Science Practice Set 3

This is question 52 of DSSSB TGT Computer Science Practice Set 3. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.