Sunteți pe pagina 1din 3

Question bank for unit-1

1. Explain about functional block diagram of computer


2. Arrange the memory systems in descending order based on speed ,cost Registers, magnetic
tapes, cache memory, main memory, USB pendrive
3. Differentiate High level languages and low level languages
4. Convert the following i)(ABC.D)16-( )2 ii)(100011011)2- ( )8 iii)(11)4-( )5 iv)(123)8-( )10
5. Explain about structure of C program with example
6. Discuss about compilation and execution of c program
7. What do you mean by syntax and semantics?
8. Differences between compiler and interpreter
9. Define algorithm, flowchart and pseudo code. What are the symbols used for designing a
flowchart
10. Write an algorithm and flowchart for finding maximum of three numbers
11. Write an algorithm and flowchart for finding sum of natural numbers upto n
12. Write an algorithm and flowchart for finding average of 10 numbers entered by user
13. Write an algorithm and flowchart to find roots of quadratic equation
14. What are different formatted input and output statements in C
15. 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. List the basic data types, their sizes and range of values supported by C Language.
2. What are the rules to be followed for declaring an identifier?
3. Explain about operators in C
4. Problems on operator precedence and associativity
5. What is the different escape sequences used in C language?
6. What is the difference between equality and assignment operator?
7. What is mean by type conversion? Why is it necessary? Explain about implicit and
explicit type conversion, with examples.
8. Explain about various iterative statements available in C language with suitable
examples.
9. Write the limitations of switch () and for () statements.
10. Differentiate pre-test and post test loops/ entry control and exit control loops with
examples
11. Differentiate between break and continue
12. What is a constant? How to declare a constant
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;
}
7) 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. Write a C program to find maximum of 3 numbers using conditional operator
2. Write a C program to find all roots of a quadratic equation.
3. 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.
4. 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

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


6. Write a C program to calculate sum and product of digits of a number.
7. Write a C program to find whether given number is palindrome or not.
8. Write a C program to find power of a number using for loop.
9. Write a C program to calculate factorial of a number.
10. Write a C program to find sum of all prime numbers between 1 to n
11. Write a C program to check whether a number is Armstrong number or not.
12. Write a C program to print Fibonacci series up to n terms.

S-ar putea să vă placă și