FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
When variable identifiers are compound words snake case and camel case can be used. Which variable identifier below is using camel case?
A
yourName=input("What is your name? “)
B
yourname=input("What is your name? “)
C
YOURNAME=input("What is your name? “)
D
your ____ name=input("What is your name? “)
Explanation: 

Detailed explanation-1: -Camel case starts each new word in a complex variable name with an uppercase letter. You can capitalize the first word as well or leave it lowercase. When the first letter of the variable starts with an uppercase letter, it is known as upper camel case.

Detailed explanation-2: -Snake case (stylized as snake case) refers to the style of writing in which each space is replaced with an underscore ( ) character, and the first letter of each word is written in lowercase. It is a commonly used naming convention in computing, for example for variable and subroutine names, and for filenames.

Detailed explanation-3: -What is Snake Case? Like in camel case, you start the name with a small letter in snake case. If the name has multiple words, the later words will start with small letters and you use a underscore ( ) to separate the words. Here are some examples of snake case: first name and last name .

Detailed explanation-4: -In general, snake case is considered easier to read because the underscores make it clear where one word ends and the next begins. Camel case, on the other hand, can be harder to read because the lack of separators can make it difficult to quickly parse a variable name.

There is 1 question to complete.