2nd Year Chapter No.9 Computer
2nd Year Chapter No.9 Computer
SHORT QUESTIONS
1. What is variable initialization?
2. What do you know about the term “Keyword”. Discuss it with example?
3. What is variable declaration?
4. What is an Arithematic Expression?
5. What are the uses of operators?
6. What will be the output of the following code?
int a = 3 , b = 3, c;
c = a % b;
printf(“%d”, c);
7. What will be the output of the following code?
int a =9;
b = b % 2;
printf(“%d”, b);
8. What will be the output of the following code?
int number = 6;
int x = 0;
x = --number;
printf(“%d”,x);
9. What will be the output of the following code?
int a = 6;
a ++;
printf(“%d”, a);
10. What will be the output of the following code?
int a = 21;
a = a % 2;
printf(“%d”, a);
LONG QUESTIONS
1. What is a data type? Discuss Integer data type in details with types?
2. What is the identifier? Discuss two types of identifiers used in the C language.
3. What is expression? Discuss it in details?