c programming question bank
c programming question bank
in
www.universityquestions.in
FIRST SEMESTER – MCA
QUESTION BANK
UNIT – I
PART – A
t.in
5. List the qualities and capabilities of good algorithms.
6. What is a program?
7. Justify the need for analysis of algorithm.
o
8. Define: Space Complexity.
9. Define algorithm analysis. sp
og
10. What do you meant by average case analysis and worst case analysis?
11. What is meant by Input and Output assertions?
.bl
PART-B
vil
www.universityquestions.in
Visit : Civildatas.blogspot.in
Visit : Civildatas.blogspot.in
www.universityquestions.in
UNIT II
PART A
1. What is a program?
2. What is an algorithm and properties of an algorithm?
3. List the building blocks for a simple program.
4. Write a short note on pseudo code?
5. What is Debugging?
6. What is meant by application software and mention the example also.
7. Define Loader and Linker.
8. Write an algorithm for swapping two integer values.
9. Draw a flow chart for computing Fibonacci numbers.
10. Define Flowchart.
11. List the qualities and capabilities of goog algorithm
12. Develop an algorithm for conversion of Celsius to Fahrenheit and vice versa
t.in
13. Distinguish between compiler and Interpreter
14. Draw a flow chart for simple interest problem.
o
15. What is meant by testing?
16.
17.
What is meant by Documentation?
Define Verification sp
og
18. Define program Execution.
19. Write pseudo code for sum of n numbers.
.bl
PART B
da
2. Explain the guidelines for drawing a flowchart and write the symbols also.
3. Explain Language Translators
Ci
www.universityquestions.in
Visit : Civildatas.blogspot.in
Visit : Civildatas.blogspot.in
www.universityquestions.in
17. What is pseudo code? Write a pseudo code for finding the sum of n numbers and
its average. Draw the flow chart for the same.
UNIT – III
PART- A
1. What are the different data types in C?
2. Distinguish between character constant and symbolic constant.
3. Write an algorithm for swapping two integer values.
4. Write a short note on Logical operators in C language.
5. Give the syntax of Nested if statement and while loop statement.
6. Distinguish between character constant and symbolic constant.
7. Explain Variable.
8. What is a data type of a variable? Illustrate.
t.in
9. What is an entry controlled loop?
10. Differentiate between Entry controlled loop and Exit controlled loop.
11. Write short note on Conditional operator?
o
12. Write any four trigraph sequences with translation?
13. Give the syntax of switch statement. sp
og
14. What are the different data types available in ‘C’?
15. What are Keywords?
.bl
www.universityquestions.in
Visit : Civildatas.blogspot.in
Visit : Civildatas.blogspot.in
www.universityquestions.in
main() main()
{ {
float a; float a;
int x=6, y=4; int x=6, y=4;
a=x/y; a=(float) x/y;
printf(“Value of a=%f”, a); printf(“Value of a=%f”,a);
} }
40. What is the output of the following program when, the name given with spaces?
main()
{
char name[50];
printf(“\n name\n”);
scanf(“%s, name);
printf(“%s”,name);
}
41. What is the difference between while (a) and while (! a)?
t.in
42. Why header files are included in ‘C’ programming?
43. List out some of the rules used for ‘C’ programming.
o
44. Define delimiters in ‘C’.
45. What do you mean by variables in ‘C’? sp
46. List the difference between float and double datatype.
og
47. Differentiate break and continue statement
48. List the types of operators.
.bl
PART B
www.universityquestions.in
Visit : Civildatas.blogspot.in
Visit : Civildatas.blogspot.in
www.universityquestions.in
11. Explain Expressions with example
12. Explain structure of C program
13. Write a C program to find the sum of the series
x+3x/4!+5x/5!+7x/6!+……….
14. Explain operators with examples
15. Explain switch statement with example
16. Explain formatted input and output statement with its proper Syntax and an
example
17. Explain in detail the various decision making statements with suitable examples
for each of them
18. Write a C program to find the number of and sum of all integers greater than 100
and less than 200 that are divisible by 7.
19. Write a program to find the average of 10 numbers.
20. Explain in detail the various branching statements with suitable flow charts for
each of them.
t.in
UNIT IV
o
PART A
sp
og
1. Define an Array. Give example.
2. List out the features of Arrays.
.bl
www.universityquestions.in
Visit : Civildatas.blogspot.in
Visit : Civildatas.blogspot.in
www.universityquestions.in
20. Write the output of the following Code:
main()
{
static char name[]=”Kagz WrxAd”
int i=0;
while(name[i]!=’\0’)
{ printf(“%c”,name[i]);
i++;
}
t.in
26. What is formal parameters and actual arguments
27. Why is pointer arithmetic not applicable on void pointers?
o
28. What is user-defined function?
29. What is meant by library function
30. Write the syntax for function declaration
sp
og
31. What are the two parts of function definition
32. Write the general form of header of a function
.bl
PART B
www.universityquestions.in
Visit : Civildatas.blogspot.in
Visit : Civildatas.blogspot.in
www.universityquestions.in
13. Explain pointers concepts in C with example
14. Explain storage classes with example.
15. Explain string handling functions with examples
16. Write a C program to sort a list of numbers
17. Discuss the various categories of functions with suitable programs
18. Write a C program in C to find the transpose of a given matrix
19. Write a C program to find the number of words available in a string.
20. Explain one dimensional array & two dimensional arrays with example.
21. Write a C program to find largest and smallest elements in a list of numbers
22. Write a C program using pointers to read an array of characters and print in
the reverse order.
23. Write an algorithm and a C program to arrange the given list of numbers in
ascending order.
24. Write an algorithm and a C program to find the product of two square
matrices.
t.in
UNIT V
o
PART A sp
og
1. Differentiate between arrays and structure.
2. What is meant by nested structure?
.bl
www.universityquestions.in
Visit : Civildatas.blogspot.in
Visit : Civildatas.blogspot.in
www.universityquestions.in
PART - B
t.in
10. An employee can apply for a loan at the beginning of every six months, but he
will be sanctioned the same, according to the following company rules:
o
Rule1: An employee cannot enjoy more than two loan.
sp
Rule2: Maximum permissible total loan is limited.
Write a program to process the loan applications and to sanction loans to the
og
employees.
11. Differentiate between structure and union with example.
.bl
12. Write a C program to create a file by accepting integer numbers and stored in a
file to read content from the file to find even numbers and store it in a separate
tas
file.
13. Write short notes on (i) Bit Fields (ii) Enumeration types and (iii) Typedef
14. Explain sequential file and random access file concepts.
da
15. Explain about pointers to structures, array of structures and nested structures.
vil
16. Define a structure that can describe a student. It should contain members that
include name, date of birth, and marks for three subjects. Write a program to
Ci
read the data for 5 students and calculate the average mark for every student
and display the details.
17. Write a program to generate a data file containing the list of customers and their
telephone numbers. Write functions to find the telephone number of a given
customer and to find the customer details if the telephone number is specified.
www.universityquestions.in
Visit : Civildatas.blogspot.in