MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

ALGORITHMS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
In the exam all variables should be written in:
A
Upper Case
B
Lower Case
C
First letter upper case and the rest lower.
D
First letter lower case and the rest upper.
Explanation: 

Detailed explanation-1: -In general, even single-character variable names should be lowercase. However, in some situations, mathematical notation uses uppercase letters. In such situations, uppercase variable names may be used. For example, matrices are often written using uppercase letters.

Detailed explanation-2: -Do not capitalize effects or variables unless they appear with multiplication signs. Many authors confuse these terms (factor, variable, and effect), and if you are uncertain about whether the author used them correctly, it is best to query.

Detailed explanation-3: -By Convention: Variable names begin with a lowercase letter, and class names begin with an uppercase letter. If a variable name consists of more than one word, the words are joined together, and each word after the first begins with an uppercase letter, like this: isVisible .

Detailed explanation-4: -Variables are generally denoted by a single letter, most often from the Latin alphabet and less often from the Greek, which may be lowercase or capitalized.

There is 1 question to complete.