FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following is not a considered a golden rule for choosing variable identifiers?
A
Shorter identifiers are easier to type and spell. A longer identifier could easily be misspelt.
B
Longer identifiers may be used if they are more descriptive of the data they represent.
C
Variable identifiers are normally written in capitals.
D
Some identifiers may be reserved words used by the programming language and cannot be used and in many programming languages identifiers cannot begin with a number.
Explanation: 

Detailed explanation-1: -Explanation: Spaces are not allowed in variable names.

Detailed explanation-2: -Which of the following is not a valid variable name declaration? Explanation: Variable name cannot start with a digit.

Detailed explanation-3: -C Identifiers For example: int money; double accountBalance; Here, money and accountBalance are identifiers. Also remember, identifier names must be different from keywords.

Detailed explanation-4: -A variable name must start with a letter or the underscore character. A variable name cannot start with a number. A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and ) Variable names are case-sensitive (age, Age and AGE are three different variables)

There is 1 question to complete.