Question:

Which of the following languages is case sensitive?

Show Hint

Modern high-level languages like C, C++, Java, and Python are case-sensitive, whereas older languages like BASIC, Pascal, and early versions of FORTRAN are case-insensitive.
  • FORTRAN
  • BASIC
  • C
  • Neither FORTRAN nor BASIC
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

Step 1: Understanding the Concept:
A case-sensitive programming language distinguishes between uppercase and lowercase letters in identifiers, keywords, and variable names.

Step 2: Detailed Explanation:

Let us review the properties of the listed programming languages:
- FORTRAN: Case-insensitive; variables like SUM and sum are treated as identical.
- BASIC: Case-insensitive; variables and keywords can be written in any letter case.
- C: Case-sensitive; the compiler distinguishes count, Count, and COUNT as three distinct identifiers.
Thus, C is a case-sensitive programming language.

Step 3: Final Answer

The correct option is (C).
Was this answer helpful?
0
0