Data-Type
Question 1 |
The data type of the variable "var1 " declared in the following 'C' language statement is:
unsigned var1:
int | |
double | |
char | |
float |
Question 1 Explanation:
By default unsigned variables will consider integer data type.
Question 2 |
Consider the following set of statements?
Float x, y : x=7;y=10: x*=y*=y*28.5 :After the execution of the above set of statements, the value of x will be
70 | |
2695 | |
2995 | |
None of these |
Question 2 Explanation:
Arithmetic operator has the higher precedence so y*28.5 will be calculated first which will give 10*28.5=285.
So now the statement will become x*=y*=285;
The assignment operator has right to left associativity. So now,
x*=(y=y*285)
x*=(y=10*285)
x*=(y=2850)
x=x*2850
x=7*2850
x=19950
So now the statement will become x*=y*=285;
The assignment operator has right to left associativity. So now,
x*=(y=y*285)
x*=(y=10*285)
x*=(y=2850)
x=x*2850
x=7*2850
x=19950
Question 3 |
The data type created by data abstraction process is called
class | |
structure
| |
abstract data type | |
user defined data type |
Question 3 Explanation:
The data type created by the data abstraction process is called abstract data type.