Sir's Questions
Sir's Questions
1- Mark Questions
1. What is compiler & interpreter?
2. What is an assembler?
3. Define Algorithm & Flow chart?
4. What are the properties of an algorithm?
4- Marks Questions
1. Explain the computer architecture with neat block diagram?
2. Differentiate between client-server and distributed computing environments.
3. Draw the flow chart and algorithm for the below income tax problem
0 to 2,50,000 lakhs------0% TAX
2,50,001 to 5,00,000 lakhs-------10% TAX
5,00,001 t0 10,00,000 lakhs------20% TAX
Above 10,00,000 lakhs-----30% TAX
4. Draw a flow chart for reverse of a given number.
5. Draw a flow chart for given number is prime or not?
UNIT-2
1- Mark Questions
1. Define variable and Identifier?
2. Define global and local variables?
3. What is data type?
4. Define operator?
5. What is ternary operator?
6. What are different types of tokens?
7. Differentiate between pre and post increment?
8. What are left and right shift operators given examples?
9. Difference between = and == operators?
10. What is meant by dangling-else problem?
11. Write the number of tokens for the below program
main()
{
printf(“ hello welcome to c program”);
}
12. What is output for following program?
main()
{
const int a=10;
printf(“%d”, a++);
}
13. What is the output for following code?
main()
{
int a=1,b=2;
if(a=b)
printf(“hello ”);
else
printf(“bye”);
}
4 - Mark Questions
UNIT – 3
1 Mark Questions
1. Differentiate while and do-while.
2. Differentiate break and continue.
3. Define recursion.
4. What is scope of a variable?
5. What are actual and formal parameters? Give examples.
6. What is the output of the following program?
#include<stdio.h>
int i=40,j,k;
int main()
{
printf("%d",i++);
j = 1,2,3;
k = (4,5,6);
printf("\n%d",j);
printf("\n%d",k);
}
7. What is the output of the following program?
#include<stdio.h>
int i=40;
int main(){
do{
printf("%d",i++);
}
while(5,4,3,2,1,0);
return 0;
}
4 Marks Questions
1. List and explain different types of iterative statements (Loops).
2. What is recursion? Write a C program to find the factorial of the given number using
recursion.
3. What is call by value and explain with suitable example.