Pt1420 Unit 2 Research Assignment 1 Researching Variable Naming Rules

386 Words2 Pages
Homework Unit 2 Davina Khon PT 1420 10/01/15 Research Assignment 1: Researching Variable Naming Rules What are the variable naming rules for Visual Basic? The variable naming rules for Visual Basic is that you must use a letter as the first character. You can't use a space, period (.), exclamation mark (!), or the characters @, &, $, # in the name. Names can't exceed over 255 characters in length. You shouldn't use any names that are the same as the functions, statements and methods in Visual Basic. If you do then you end up shadowing the same keywords in the language. To use a language function, statement, or method that conflicts with an assigned name, you must identify it. What are the variable naming rules for Python? The variable naming rules for Visual Basic is that you must begin with a letter (a - z, A - B) or underscore (_). Other characters can be letters, numbers or Case Sensitive can be any length. There are some reserved words, which you cannot use as a variable name because Python uses them for other things. What are the variable naming rules for Java? The variable naming rules for Java is all variable names must begin with a letter of the alphabet, an underscore, or (_), or a dollar sign ($). The convention is to always use a letter of the alphabet. The dollar sign and the underscore are discouraged. After the first initial letter, variable names may also contain letters and the digits 0 to 9. No spaces or special characters are allowed. The name can be of any length. Uppercase characters are distinct from lowercase characters. Using all uppercase

More about Pt1420 Unit 2 Research Assignment 1 Researching Variable Naming Rules

Open Document