COMPUTER SCIENCE AND ENGINEERING
DATA STRUCTURES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Variable
|
|
Data Type
|
|
Data Structure
|
|
Value
|
Detailed explanation-1: -Depending on the type system of a programming language, variables may only be able to store a specified data type (e.g. integer or string). Alternatively, a datatype may be associated only with the current value, allowing a single variable to store anything supported by the programming language.
Detailed explanation-2: -Variables are the nouns of a programming language: they are the entities (values, data) that act or are acted upon. The character-counting program uses two variables–count and args . The program increments count each time it reads a character from the input source and ignores args .
Detailed explanation-3: -For example, integer, decimal numbers and characters are the data type, these are associated with variables. Like integar stores integer values and character value stores by character type value.
Detailed explanation-4: -Storage Types in Stata Numeric variables are stored as byte, int, long, float or double. Float and double are the two that can hold non-integer numbers (decimals) and are the most common.
Detailed explanation-5: -A data type, in programming, is a classification that specifies which type of value a variable has and what type of mathematical, relational or logical operations can be applied to it without causing an error.