IP Questions
IP Questions
Essay Questions-7M
1. Explain Algorithm and flow chart and write algorithm and draw flow chart to swap two numbers.
2. Explain the basic structure of C program and explain the significance of each section. Explain
Compilation and Execution of C program in detail.
3. Explain Primitive Data Types in C.
4. Write the importance of precedence and associativity? Write the table for operator precedence?
5. How does a control string in a printf() function differ from the control string in scanf() function?
Write commonly used scanf() format codes.
6. What is meant by type conversion? Why is necessary? Explain about implicit and explicit type
conversion with examples.
7. Explain formatted IO in C in detail with examples.
8. Write a C program to calculate simple interest & compound interest.
9. Write a C program to convert Fahrenheit to Celsius degrees.
10. Write a C program to illustrate bitwise operators in C.
11. Write a C program to calculate the largest of 3 numbers with conditional operator.
12. Evaluate the following expression.
X=A/B*C-B+A*D/3
Y=A+B*C+(D*E)+F*G
Where A=1, B=2, C=3, D=4, E=5, F=6, G=7
Short Questions-2M
1. Explain Characteristics of algorithm.
2. Explain compiler and compilation in C.
3. Explain Linker and Loader in C.
4. Explain sizeof operator with example.
5. Write a C program to convert float to int.
6. Explain about shift operators with example.
7. Write a C program to convert char to int.
8. What is the difference between 3/5 and 3/5.0
9. Evaluate A&B, A|B, A^B when A=8, B=4.
10. Explain identifier naming rules.
11. Evaluate A<<2 and A>>2 where A is 3.
12. Explain any 5 assignment operators in detail with examples.
Unit-2
Essay Questions-7M
1. Differentiate between entry-control and exit control loops with example.
2. Describe various control statements in C.
3. Describe various conditional control statements.
4. Explain the concept of multi way selection and write a program to determine whether an entered
character is vowel or not.
5. Write a C program to find roots of a quadratic equation.
6. Write a C program to find all primes up to the given number.
7. Write a program using a do-while loop to read the numbers until -1 and also count the positive,
negative and zeros encountered by the users.
8. Write a C program to print. and explain the looping concepts used in it.
1
12
123
1234
12345
9. Write a C program to simulate a calculator using switch case.
10. Write a C program to find the factorial of given number using any loop.
11. Write a C program to Checking a number palindrome or not?
12. Write a C program to Checking a number is Armstrong or not?
Short Questions-2M
1. Explain Control statements.
2. Explain break statement in C with example.
3. Explain continue statement in C with example.
4. Write a C program to read a number to find the number is even or odd.
5. Construct an infinite loop using while.
6. Draw do while loop execution flow chart.
7. Explain difference between if-else and switch statement.
8. Write a C program to find the largest of three numbers.
9. Write a C program to print Fibonacci series up to given number.
10. What is the difference between while loop and do…while loop?
11. Write a C program to find sum of numbers up to the given number.
12. Write a C program to find all even numbers up to the given numbers.
Unit-3
Essay Questions-7M
1. Develop a C program to count and sum of even numbers in an array.
2. Define string? Explain about string predefined functions with example?
3. Write a C program to find the smallest and largest element in an array?
4. Write a C program to perform matrix multiplication?
5. Write a C program to check whether the given string is palindrome or not?
6. Write a C program to perform addition of two matrices?
7. Write a C program to read a matrix and print the transpose of the matrix?
8. Write a C program to compare two strings with and without using string predefined functions?
9. Write a C program to concatenate two strings with and without using string predefined functions?
10. What are subscripted variables? How one- and two-dimensional subscripted variables (arrays) are
declared?
11. Write a C program to print the lower triangle of a square matrix.
For example, the output of a given matrix.
2 3 4 will be 2 0 0
567 560
456 456
12. Write a program to interchange the largest and smallest elements in an array.
Short Questions-2M
1. List various String oriented I/O statements in C with an example each.
2. What is Array? Explain different types of arrays in c with an example each.
3. Explain extracting “world” from “hello world”?
4. Explain declaration of arrays with example?
5. Explain accessing elements of array with example?
6. Explain storing values in arrays?
7. Develop a C program to find the length of the given string without using predefined functions?
8. Explain declaring a string with example?
9. Explain reversing a string with string predefined function?
10. Explain concatenating two string with string predefined function?
11. Explain difference between scanf() and gets() with example?
12. Explain null character and importance of null character in strings?
Unit-4
Essay Questions-7M
1. What is a pointer? Explain declaration, initialization and accessing of a pointer variable.
2. What is address arithmetic in C? Explain different arithmetic operations that can be performed on
pointers.
3. How are generic pointers different from pointer variables and differentiate ptr++ and ++ptr.
4. Give the syntax and explain arrays of pointers in detail.
5. Explain the term dynamic memory allocation and the terms malloc(), calloc(), realloc() and free()
functions.
6. Develop a C program using pointers to compute the sum of all elements stored in array.
7. Explain the concepts of structure declaration, initialization, accessing the members of structure.
8. What is the advantage of structure? Differentiate it with union and arrays.
9. Using structures write a program to read and display the information of all the students in a class.
10. Write a program using structures to read and display the information about the entire faculty of
a particular department.
11. Write a program to find the smallest of three numbers using structures.
12. What do you understand by union? How to access the members of the union? And give the
applications of it.
Short Questions-2M
1. Write a program to convert floating point numbers into integers using pointers.
2. What is Dangling Pointer. Explain with an example.
3. What is Null Pointer. Explain with an example.
4. What is Generic Pointer. Explain with an example.
5. What is double Pointer. Explain with an example.
6. What is self-reference Pointer. Explain with an example.
7. Differentiate between dot operator (.) and arrow operator (->).
8. Differentiate between malloc() and calloc().
9. Explain purpose of using realloc().
10. How is pointer variable different from an ordinary variable?
11. Write a program using pointers to swap two numbers.
12. Develop a C program to access elements of an array using pointer.
Unit-5
Essay Questions-7M
1. What are various types of parameters passing techniques in ‘C’ programming? Explain with an
example program.
2. Write a C Program to print Binary Equivalent of an Integer using Recursion.
3. Explain Call by Value and Call by Reference with example each.
4. Explain the following.
i) fprintf ( ) ii) fscanf ( ) iv) fgets( ) v) fputs ( )
5. Write a C program to Display contents of a text file on console.
6. What is recursion? Write a program to find the factorial of a given number using recursion.
7. What are various standard library input/output functions used in C language? Explain with simple
program.
8. How to pass pointers to functions? Explain with an example program.
9. Write a short note on Inter function communication and streams.
10. Explain the following with respect to functions:
(i) Function prototype
(ii) Function call
(iii) Returning from function
11. Explain in detail about formatting input/output functions supported by C.
12. What do you mean by streams? What are the applications of it? Differentiate text and binary
streams.
Short Questions-2M
1. Write about ‘fprintf()’ and ‘fscanf()’ functions in C programming.
2. Compare and contrast Text and Binary stream.
3. Explain types of arguments.
4. How to pass arrays as parameters
5. How to pass pointers as parameters and what were the advantages of it.
6. What are the types of storage classes
7. Syntax to create a file
8. What are different modes of file opening
9. Explain different functions in file IO
10. Explain return type and return value with syntax
11. What is a functions and what are advantages of it
12. What will be passed if an array is passed as parameter to the function & how to manipulate array
in the function