COMPUTER PROGRAMMING FUNDAMENTALS
5 BASIC ELEMENTS OF PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Variables cannot have ____
|
Spaces
|
|
Special letters
|
|
Both 1 and 2
|
|
None of them
|
Explanation:
Detailed explanation-1: -A variable holds more than one value if you declare it to be of a composite data type. Composite Data Types include structures, arrays, and classes. A variable of a composite data type can hold a combination of elementary data types and other composite types. Structures and classes can hold code as well as data.
Detailed explanation-2: -Binary variable: a variable that can only take on two values, usually 0/1.
Detailed explanation-3: -Variables may be classified into two main categories: categorical and numeric. Each category is then classified in two subcategories: nominal or ordinal for categorical variables, discrete or continuous for numeric variables.
There is 1 question to complete.