Multiple choice technology programming languages

What is the proper way to declare a variable ?

  1. variableName variableType;

  2. variableName;

  3. variableType;

  4. variableType variableName;

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

In most languages the correct declaration order is type first then variable name (e.g., int count;). The other formats either omit the type or reverse the order, which are syntactically invalid.