Вы находитесь на странице: 1из 5

Question bank for unit-1

1. Explain about functional block diagram of computer


2. Explain about memory systems
3. What is meant by system software and application software
4. Arrange the memory systems in descending order based on speed ,cost Registers, magnetic
tapes, cache memory, main memory, USB pendrive
5. Differentiate High level languages and low level languages
6. Why C is called a middle level language
7. Differences between procedural and object oriented languages
8. Convert the following i)(ABC.D)16-( )2 ii)(100011011)2- ( )8 iii)(11)4-( )5 iv)(123)8-( )10
9. Explain about structure of C program with example
10. Discuss about compilation and execution of c program
11. What do you mean by syntax and semantics?
12. Differences between compiler and interpreter
13. Define algorithm. Explain the criteria for writing an algorithm
14. Define flowchart. What are the symbols used for designing a flowchart
15. Define pseudocode
16. Write an algorithm and flowchart for finding maximum of three numbers
17. Write an algorithm and flowchart for finding sum of natural numbers upto n
18. Write an algorithm and flowchart for finding average of 10 numbers entered by user
19. Write an algorithm and flowchart for multiply two numbers using only addition operation
20. Write an algorithm and flowchart to find roots of quadratic equation
21. What are different formatted input and output statements in C
22. Explain printf and scanf statements with examples
23. Explain different input and output statements
24. Illustrate the input function scanf().Develop a C program to read and display octal and
hexadecimal numbers
25. What is the format of printing if the following following format specifiers are used
a)%5d b)%d c)%-5d d)%5.3d
Write the output if the above specifies used in the printf () function to print the variable I=20
Question bank for unit-2(only theory)
1. Explain tokens in C language
2. List the basic data types, their sizes and range of values supported by C Language.
3. What are the rules to be followed for declaring an identifier?
4. Explain about operators in C
5. Explain about type casting mechanism in C
6. Explain about operator precedence and associativity
7. Problems on operator precedence and associativity
8. Explain about format modifiers in “C”.
9. What is the difference between equality and assignment operator?
10. What is mean by type conversion? Why is it necessary? Explain about implicit and
explicit type conversion, with examples.
11. Explain about various iterative statements available in C language with suitable
examples.
12. Explain various selection statements in C Language with examples.
13. Explain about multi-way selection with examples.
14. Write the limitations of switch () and for () statements.
15. Differentiate pre-test and post test loops
16. Differentiate between break and exit.
17. Differentiate between entry control and exit control loops with examples.
18. What is a constant? How to declare a constant.
19. Explain about unconditional statements in C
20. Differentiate keyword and identifier
Question bank for unit-3
1) Define Array.
2) How to initialize 1-D array? How to Access elements in 1-D array?
3) Write a C program to read and display elements in 1-D array?
4) Write a C program to find sum of elements in an array?
5) Write a C program to find minimum and maximum element in an array?
6) Predict output of following program
int main()
{
int i;
int arr[5] = {1};
for (i = 0; i < 5; i++)
printf("%d ", arr[i]);
return 0;
}
6) Define array. How to initialize the first 6 elements of an integer array of size 10 to specific
values 45,67,32,34 and remaining elements to zero?
8) What is the output of following program?

Void main( )

{ int i, marks[5]={55,56,67,78,64};

for(i=2;i<=4;i++)

printf(“%d ”,marks[i]);

}
Programs in unit-2
1. 1.write a C program to find maximum of 3 numbers using conditional operator
2. Write a C program to find whether given year is leap year or not using conditional
operator
3. Write a C program to find all roots of a quadratic equation.
4. A library charges a fine for every book returned late. For first 5 days the fine is 50
paise per day,for 6 days fine is one rupee per day,for above 10 days fine is 5 rupees
per day.if you return the book after 30 days your membership will be cancelled
.Write a program to accept number of member is late and display the fine or the
appropriate message.
5. Write a C program to input marks of five subjects Physics, Chemistry, Biology,
Mathematics and Computer. Calculate percentage and grade according to following:
Percentage >= 90% : Grade A
Percentage >= 80% : Grade B
Percentage >= 70% : Grade C
Percentage >= 60% : Grade D
Percentage >= 40% : Grade E
Percentage < 40% : Grade F

6. Write a C program to create Simple Calculator using switch case.


7. Write a C program print total number of days in a month using switch case.
8. Write a C program to check whether a number is even or odd using switch case.
9. Write a C program to find sum of all odd numbers between 1 to n
10. Write a C program to find sum of first and last digit of a number.
11. Write a C program to print multiplication table of any number.
12. Write a C program to calculate sum and product of digits of a number.
13. Write a C program to enter a number and print its reverse .
14. Write a C program to find whether given number is palindrome or not.
15. Write a C program to find power of a number using for loop.
16. Write a C program to find product of two numbers without using multiplication
operator
17. Write a C program to calculate factorial of a number.
18. Write a C program to find HCF (GCD) of two numbers.
19. Write a C program to check whether a number is Prime number or not.
20. Write a C program to find sum of all prime numbers between 1 to n
21. Write a C program to check whether a number is Armstrong number or not.
22. Write a C program to print all Armstrong numbers between 1 to n.
23. Write a C program to check whether a number is Perfect number or not.
24. Write a C program to check whether a number is Strong number or not.
25. Write a C program to print Fibonacci series up to n terms.

Вам также может понравиться