IMPORTANT QUESTIONS FOR MID-2
UNIT-4
1. What are different types of storage classes? Explain each with a suitable example.
2. Define function. Explain functions with an example.
3. Write a program to generate Fibonacci series using recursive function.
4. Write a program to find factorial of a given number using recursion.
5. What is a pointer? Describe call by value and call by address with an example.
6. Write a program to find gcd of 2 numbers using recursive function.
UNIT-5
1. Write a program to implement matrix multiplication using 2 dimensional arrays.
2. Write a program to search a given element in an array.
3. Write a program to compare two strings using user defined function.
4. Write a program to check whether a given string is palindrome or not.
UNIT-6
1. Briefly explain about dynamic memory management functions with an example.
2. Differentiate structures and unions.
3. Write a program to copy one file data into another.
4. Write a program to add two complex numbers using structures.
5. Describe about file handling functions in C language.
6. Write a program to merge contents of two files into a 3rd file.
LAB QUESTION PAPER - NOV - 2016
SET NO -1
A) Write a C Program to convert Celsius to Fahrenheit and vice versa
B) Write a C programming code to open a file and to print it contents on screen
SET NO -2
A) Write a C Program to Find Whether the Given Year is a Leap Year or not
B) Write a C program merges two files and stores their contents in another file
SET NO -3
A) Write a C Program to Find Whether the Given Number is Prime Number or not ?
B) Write a C program to find sum of n elements entered by user. To perform this program allocate memory dynamically using malloc () function
SET NO -4
A) Write a C Program to Find Whether the Given Number is Armstrong Number or not ?
B) Write a C Program to find the sum of numbers with arrays and pointers
SET NO -5
A) Write a C Program to print Pascal Triangle
B) Write a C Program to Store Information of a Employee Using Structure
SET NO -6
A) Write a C Program to print Fibonacci series using both recursive and non-recursive function
B) Write a C Program to Access Elements of an Array Using Pointer
SET NO -7
A) Write a C Program to print Factorial of given number using both recursive and non-recursive function
B) Write a C Program to make a simple Calculator to Add, Subtract, Multiply or Divide Using switch…case
SET NO -8
A) Write a C Program to perform Search-Linear.
B) Write a C Program to perform Bubble sort
SET NO -9
A) Implementation of string manipulation operations with library function.
copy ii) concatenate iii) length iv) compare
B) Write a C Program to Simulate 3 Laws at Motion
SET NO -10
Implementation of string manipulation operations without library function.
copy ii) concatenate iii) length iv) compare
DOWNLOAD INDEX AT END OF THIS PAGE
LAB INTERNAL PAPER
SET NO - 1
a) Write a C program to generate the first n terms of the Fibonacci sequence.
b) Write a C program to generate all the prime numbers between 1 and n, where n is a value supplied by the user.
SET NO - 2
a) Write a C Program to calculate the area of triangle using the formula area = ( s (s-a) (s-b)(s-c))1/2 where s= (a+b+c)/2 b)
b) Write a C program to implement a liner search.
SET NO - 3
a). Write C programs that use recursive to solve Towers of Hanoi
b) Write a C program, which takes two integer operands and one operator form the user, performs the operation and then prints the result. (Consider the operators +,-,*, /, % and use Switch Statement)
SET NO - 4
a) Write a C program to find the 2‟s complement of a binary number.
b) Write a C program to count the lines, words and characters in a given file
SET NO - 5
a) Write a C program that uses functions to perform to insert a sub-string in to given main string from a given position
b) Write a C program to find the largest of three numbers using ternary operator
SET NO - 6
a)Write a C program that uses functions to perform the following operations using Structure:
i) Reading a complex number ii) Writing a complex number
iii) Addition of two complex numbers iv)Multiplication of two complex numbers
b) Write a C program to find the roots of a quadratic equation.
SET NO - 7
a) Write a C program to input two m x n matrices, check the compatibility and perform addition and multiplication of them
b) Write a C Program to swap two numbers without using a temporary variable
SET NO - 8
a). Write C programs that use recursive to find the GCD of two given integers.
b). problem Write a C Program to swap two numbers without using a temporary variable that uses pointers.
SET NO - 9
a) Write a C program which copies one file to another using command line arguments
b) Write a C functions to find both the largest and smallest number of an array of integers
SET NO - 10
a) Write a C function to generate Pascal’s triangle.
b) Write a C program to read employee details and print gross salary using structures.
SET NO - 11
a) Write C Programs without using the built in functions to find whether a given string is palindrome or not
b). Write a C Program to print the multiplication table of a given number n up to a given value, where n is entered by the user.
SET NO – 12
a) Write C Programs without using the built in functions to find to concatenate two strings
b) Write a C program to implement binary search
I B.Tech I Semester IMP Questions-Sep-2015
1. Draw a flowchart to test whether a given number is even or not
2. Define algorithm and flow chart. What are the advantages of flow chart
3. Explain arithmetic, logical and relational operators in C
4. Explain about different forms of IF statement
5. Explain about conditional operator with an example program
6. Write about switch statement and give an example
7. What are the constructs available for performing loops in C language
8. Write and explain different categories of functions
9. Explain structure of C program
10. Write a program to swap two integers without using temporary variable
11. Write a program for sorting of numbers in an array
12. Define recursion. Write a recursive C program to calculate factorial of a given integer
13. Write about storage classes in C
14. Write a program to implement towers of Hanoi
15. Write a program to generate Fibonacci series using functions?
Assignments should be submitted on or before 19-01-2015
Click here to Download CP NOTES
I B.TECH I SEM C PROGRAMMING II MID IMP QUESTIONS
1. How is dynamic memory allocation done in C? What library functions are provided by C for dynamic memory allocation?
2. Write a C program that copies the content of one file into another file?
3. What is pointer? Discuss about pointers to pointers with examples
4. Write a C Program to calculate grade, average marks and Total marks in a class of 60 Students
5. Discuss about formatted I/O with suitable examples
6. Differentiate between binary and text file?
7. Discuss about file I/O operations
8. How to define and initialize structures? How to access structure elements?
9. What are self referential structures? Explain with one example
10. Differentiate between structure and union
11. Write a program to copy contents of one file to another file using command line arguments
12. Explain about bit-fields in ‘C’
I B.TECH I SEM C PROGRAMMING I MID IMP QUESTIONS
1. Differentiate between variable and constant?
2. Write program to find whether the given no is Armstrong or not.
3. Write short notes on storage classes.
4. What are the steps involved in program development process? Explain.
5. Discuss about the relational and logical operators.
6. What is Array? Discuss about the initialization and accessing of array elements for 1D and 2D arrays.
7. Write a program to check whether the given string is palindrome or not.
8. What is recursion? How it is implemented? Explain with example.
9. Write a c program for Tower’s of Hanoi using recursion.
10. Write program to check the symmetricity of a Matrix.
11. Write short notes on parameter passing mechanisms.
12. Differentiate between else-if and switch? Explain with an example.
13. Explain about the different ways of creating functions with examples.
14. Write a c program to print Fibonacci series using recursion.
15. Explain about the precedence rules with examples.
16.Write a program to print factorial of a given number using recursion
Assignment -1 DATE : 24-09-2014
1) What is an algorithm?
2) What are the programming development steps? Explain
3) what is Flow chat? Explain
4) Explain the structure of a C program with an example to each step.
5) Discuss different computer Languages
Assignment -2 DATE : 09-10-2014
Write syntax for different forms of if and if else statements.
Write briefly about the two-way and multi-way selection statements.
Assignment -3 DATE: 12-11-2014
What is an array? Describe array declaration, initialization and accessing array elements
Define Multi dimensional array. Explain its usage by writing a program
Assignment -4 DATE: 26-11-2014
What is pointer? write a program two swap two values using pointers.
What are the command line arguments explain ?
Assignment -5 DATE : 11-12-2014
What is an enumerated data type? How is initialization of members to enum data type done
Differentiate between structure and union ?
Assignment -6 DATE : 18-12-2014
What is a file and what are different type of files and explain
Differentiate between binary and text file ?
Note : find the attached index page below
II Mid Imp Questions
1) Write a C program to swap two integers using functions and pointers.
2) Explain about Dynamic Memory Allocation functions with examples?
3) What is structure and explain the differences between a structure vs. union?
4) Explain about file handling functions?
5) What are Command line arguments? Write a program to copy one file data into another file using command line arguments.
6) Write a program using structures to display the following information for each student name, number, marks, total, average and pass or fail for n students?
7) What is a pointer write its advantages? Explain Parameter passing techniques?
8) Differentiate between self referential and nested structures
9 ) What is an enumerated type? How it can be declared? What are the different Ways one can initialize enumerations?
10) What is a text file, binary file? Explain formatted I/O in files
VI UNITS IMP QUESTIONS
1. What do you mean by bit fields?
2. Distinguish between getc() and getchar() functions?
3. Write the syntax for opening a file with various modes and closing a file.
4. Explain about file handling functions.
5. Explain the following operations
(a) fseek()
(b) ftell
(c) rewind()
(d) ferror()
6. What are command line arguments.
7. What is a file? How do you declare a file? Explain different modes of operations on files with examples.
8. What is a text file, binary file? Explain formatted I/O in files
IV & V UNITS IMP QUESTIONS
1. What is dynamic memory allocation. Explain DMA functions available in C?
2. What is pointer ? List the differences between array and pointer
3. What are the advantages of using pointers?
4. Explain static and Dynamic memory allocation
5. What are differences between structure and Union?
6. Differentiate between Arrays of structures and structures containing arrays With suitable examples?
7. What is an enumerated type? How it can be declared? What are the different Ways one can initialize enumerations?
8. Differentiate between self referential and nested structures
III UNIT IMP QUESTIONS
Define function? Explain functions with return type and non-return type with suitable examples.
Explain different categories of functions in C with simple illustrative examples?
Explain about call by value with an example
What are the different types of storage classes? Explain each with suitable example.
Give some important points while using return statement
Write short notes on scope of a variable
Write briefly about the user defined functions and standard library functions. Give an example on parameter passing.
What is recursion?
Why we say the life of global variable is retained throughout the program explain
What is the need for user-defined functions?
II UNIT IMP QUESTIONS
Write syntax for different forms of if and if else statements.
Define Multi dimensional array. Explain its usage by writing a program
Explain the applications of arrays
What are the different types of iterative statements? Explain each with suitable example.
What is an array? Describe array declaration, initialization and accessing array elements
Write briefly about the two-way and multi-way selection statements.
What are the advantages of for loop?
List the differences between for while loop and do while.
Give an example on break and continue statements.
Explain in detail about 1-Dimensional and 2- Dimensional array declaration, accessing elements, initialization with suitable examples.
Explain different string manipulation functions with examples.
What are the different types of control statements available ’C’. Explain them with an example?
First Unit Imp Questions
What is an expression in C? Explain about various types of expressions in C.
What is null? Justify your answer with an example
What is Problem Solving? Explain about various Problem Solving Techniques with Examples
What are constants in C? Explain about various constants used in C
What is an algorithm? List and explain the properties of algorithm.
Write an algorithm to find the average of 3 numbers
What are bitwise logical operators? Explain about bitwise logical operators with suitable programming example.
What are the programming development steps? Explain
Write briefly about the C Tokens with suitable examples
what is pseudo code? Draw the flow chart for finding factorial of a number
List out differences between interpreter and compiler.
Discuss different computer Languages
What are an identifiers, variables and constants? Mention the rules to construct an identifier. Give some examples.
Explain the structure of a C program with an example to each step.
What is software Engineering ?
What is the purpose of an operating system
What are the different standard library functions available in ’C’ ?
what is difference between whitebox and blackbox testing ?
Write briefly about the unconditional statement with suitable examples.
Describe the four basic data types. How could we extend the range of values they represent?
Final Internal Lab Question Paper
SET NO - 1
a) A Fibonacci sequence is defined as follows: the first and second terms in the sequence are 0 and 1. Subsequent terms are found by adding the preceding two terms in the sequence. Write a C program to generate the first n terms of the sequence.
b) Write a program to biggest element in the given three values using if else
SET NO - 2
a) Write a C Program to calculate the area of triangle using the formula area = ( s (s-a) (s-b)(s-c))1/2 where s= (a+b+c)/2
b) Write a C program to implement a liner search.
SET NO - 3
a). Write a C Program to swap two numbers without using a temporary variable.
b) Write a C program, which takes two integer operands and one operator form the user, performs the operation and then prints the result. (Consider the operators +,-,*, /, % and use Switch Statement)
SET NO - 4
a) Write a C program to generate all the prime numbers between 1 and n, where n is a value supplied by the user.
b) Write a C program to check weather the given number is amstrong or not ?
SET NO - 5
a) Write a C program to read employee details and print gross salary using structures.
b) Write a C program to count the lines, words and characters in a given file.
SET NO - 6
Write C Programs for the following string operations without using the built in functions - to
a) Concatenate two strings b) to copy one string to another string c) to compare two strings
SET NO - 7
Write a C program to input two m x n matrices, check the compatibility and perform addition and multiplication of them
SET NO - 8
Write C programs that use either recursive or non-recursive functions for the following
i) To find the GCD (greatest common divisor) of two given integers.
ii) To solve Towers of Hanoi problem.
SET NO - 9
i) Write a C program which copies one file to another using command line arguments
ii) Write a C functions to find both the largest and smallest number of an array of integers
SET NO - 10
a) Write a C function to generate Pascal’s triangle.
b) Write a C program to find the roots of a quadratic equation.
Differences between structure vs unions
Lab Internal Exam Date : 21-01-2014
SET NO - 1
a) A Fibonacci sequence is defined as follows: the first and second terms in the sequence are 0 and 1. Subsequent terms are found by adding the preceding two terms in the sequence. Write a C program to generate the first n terms of the sequence.
b) Write a C program to generate all the prime numbers between 1 and n, where n is a value supplied by the user.
SET NO - 2
a) Write a C Program to calculate the area of triangle using the formula area = ( s (s-a) (s-b)(s-c))1/2 where s= (a+b+c)/2 b)
b) Write a C program to implement a liner search.
SET NO - 3
a). Write a C Program to swap two numbers without using a temporary variable.
b) Write a C program, which takes two integer operands and one operator form the user, performs the operation and then prints the result. (Consider the operators +,-,*, /, % and use Switch Statement)
SET NO - 4
a) 2‟s complement of a number is obtained by scanning it from right to left and complementing all the bits after the first appearance of a 1. Thus 2‟s complement of 11100 is 00100. Write a C program to find the 2‟s complement of a binary number.
b) Write a C program to find the sum of individual digits of a positive integer and find the reverse of the given number
SET NO - 5
a) Write a C program that uses functions to perform to insert a sub-string in to given main string from a given position
b) Write a C program to find the largest of three numbers using ternary operator
SET NO - 6
Write a C program that uses functions to perform the following operations using Structure:
i) Reading a complex number ii) Writing a complex number
iii) Addition of two complex numbers iv)Multiplication of two complex numbers
SET NO - 7
Write a C program to input two m x n matrices, check the compatibility and perform addition and multiplication of them
SET NO - 8
Write C programs that use either recursive or non-recursive functions for the following
i) To find the GCD (greatest common divisor) of two given integers.
ii) To solve Towers of Hanoi problem.
SET NO - 9
i) Write a C program which copies one file to another
ii) Write a C functions to find both the largest and smallest number of an array of integers
SET NO - 10
a) Write a C function to generate Pascal’s triangle.
b) Write a C program to read employee details and print gross salary using structures.
SET NO - 11
a) Write a C program to find the roots of a quadratic equation..
b) Write a C program to count the lines, words and characters in a given file.
SET NO - 12
a) Write C Programs for the following string operations without using the built in functions - to find t he length of a string - to find whether a given string is palindrome or not
b). Write C Programs for the following string operations without using the built in functions - to concatenate two strings - to append a string to another string - to compare two strings
SET NO - 13
a) Write a C Program to print the multiplication table of a given number n up to a given value, where n is entered by the user.
b) Write a C program to implement binary search
SET NO - 14
a) Write a C Program t merge two files into a third file. The names of the files must be entered using command line arguments
b) Write a C Program to check whether the given number is Armstrong number or not.
Slip Test Dt. 08-01-2014
1-Write C programs that use functions for the following
i) To find the factorial of a given integer.
ii) ii) To find the GCD (greatest common divisor) of two given integers.
iii) iii) To find Fibonacci sequence
2-a) Write a C functions to find both the largest and smallest number of an array of integers.
b) Write C programs illustrating call by value and call by reference concepts
3- Write a C program that uses functions to perform the following operations using Structure:
i) Reading a complex number
ii) ii) Writing a complex number
iii) iii) Addition of two complex numbers
iv) iv) Multiplication of two complex numbers
4- a) Write a C program to implement sorting of an array of elements.
b) Write a C program to input two m x n matrices, check the compatibility and perform addition and multiplication of them
1 - MID IMP QUESTIONS
Explain the structure of a C program with an example to each step
What are the programming development steps? Explain.
Write briefly about the C Tokens with suitable examples
Write a program to find the largest of three numbers using conditional operator
What are different types of iterative statements? Explain each with suitable examples.
What is an array? Describe array declaration, initialization, and accessing array elements.
What are the computer languages? Explain and draw the flow chart for finding the smallest of Three numbers
What are the different types of operators in C programming language? Give an example on each operator.
Write briefly about two-way and multi-way selection statements.
What are the advantages of for loop? List the differences between for loop and do while loop.
List the differences between interpreter and compiler. Discuss different computer languages.
What are identifiers, variable and constants? Mention the rules to construct an identifier. Give some examples.
Write a program to find the largest number in an array of elements
What are different types of control statements available ‘C’. Explain them with an example.
Write a program to print Pascal triangle
Assignments
Tutorials