Data-Type

Question 1
The data type of the variable "var1 " declared in the following 'C' language statement is: unsigned var1:
A
int
B
double
C
char
D
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
A
70
B
2695
C
2995
D
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
Question 3

The data type created by data abstraction process is called

A
class
B
structure
C
abstract data type
D
user defined data type
Question 3 Explanation: 
The data type created by the data abstraction process is called abstract data type.
There are 3 questions to complete.

Access quiz wise question and answers by becoming as a solutions adda PRO SUBSCRIBER with Ad-Free content

Register Now

If you have registered and made your payment please contact solutionsadda.in@gmail.com to get access