A1.D.Q5. Which of the following are value types?
1. Integer
2. Array
3. Single
4. String
5. Long
UNIT – 1/ Class 1 C Programming & RDBMS/ A1-D
Test 1
[A1.D. 2] Panimalar Engineering College
A. 1, 2, 5
B. 1, 3, 5
C. 2, 4
D. 3, 5
A1.D.Q6 Which of the following is not derived data type in c?
(A) Function
(B) Pointer
(C) Enumeration
(D) Array
(E) All are derived data type
A1.D.Q7 What will be output of the following c program?
#include<stdio.h>
int main(){
int max-val=100;
int min-val=10;
int avg-val;
avg-val = max-val + min-val / 2;
printf("%d",avg-val);
return 0;
}
(A) 55
(B) 105
(C) 60
(D)Compilation error
(E)None of these
A1.D.Q8 What will be output of the following c program?
#include<stdio.h>
int main(){
int goto=5;
printf("%d",goto);
return 0;
}
(A) 5 (B) ** (C) ** (D) Compilation error (E) None of these
UNIT – 1/ Class 1 C Programming & RDBMS/ A1-D
Test 1
[A1.D. 3] Panimalar Engineering College
A1.D.Q9 By default a real number is treated as a
1. Float
2. double
3. long double
4. far double
A1.D.Q10 Range
Comments
Leave a comment