MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which one is the best variable name to use?
A
fullName
B
FULLname
C
Full ____ Name
D
full ____ name
Explanation: 

Detailed explanation-1: -A variable can have a short name (like x and y) or a more descriptive name (age, carname, total volume). Rules for Python variables: A variable name must start with a letter or the underscore character.

Detailed explanation-2: -A valid variable name starts with a letter, followed by letters, digits, or underscores.

Detailed explanation-3: -For variables, the Java naming convention is to always start with a lowercase letter and then capitalize the first letter of every subsequent word. Variables in Java are not allowed to contain white space, so variables made from compound words are to be written with a lower camel case syntax.

There is 1 question to complete.