2
Name……………………………… Roll No………..…………………… C programming University Essay Questions ( B.Tech Civil Engineeering ) 1. Write a program to sum the series 1+(1+2)+(1+2+3)+..... +(1+2+3+...N) for a given integer N. 2. Open a data file in write mode. Enter the students list in the file. Copy the data from the first file to another. Make both files read only files. 3. Write a C program to generate all the three digit prime numbers. 4. Write a function to convert inches into centimetres. Then write a program that prompts the user to input a measure in inches, calls the conversion function and prints out the measurements in centimetres. 5. Explain with examples the logical, relational, arithmetic and bitwise operators showing their precedence and associativity. 6. Write a complete C program that has a recursive function to determine the sum of the first n terms of Fibonacci series. 7. Given a matrix of order 6 X 6, write a C program to find the row sum, column sum and diagonal sum of values. 8. Write a C program using pointers to count the number of words in a given sentence. 9. Write a C program to read two matrices A and B. Calculate the matrix E = ( A – B ) * ( A+B) and print the result in matrix form ?

C programming Model Essay Qns Sample

Embed Size (px)

DESCRIPTION

C programming Model Essay Qns Sample for Civil Engineering branch

Citation preview

Name Roll No..C programming

University Essay Questions ( B.Tech Civil Engineeering )

1. Write a program to sum the series 1+(1+2)+(1+2+3)+.....+(1+2+3+...N) for a given integer N.

2. Open a data file in write mode. Enter the students list in the file. Copy the data from the first file to another. Make both files read only files. 3. Write a C program to generate all the three digit prime numbers.4. Write a function to convert inches into centimetres. Then write a program that prompts the user to input a measure in inches, calls the conversion function and prints out the measurements in centimetres.5. Explain with examples the logical, relational, arithmetic and bitwise operators showing their precedence and associativity.6. Write a complete C program that has a recursive function to determine the sum of the first n terms of Fibonacci series.7. Given a matrix of order 6 X 6, write a C program to find the row sum, column sum and diagonal sum of values.8. Write a C program using pointers to count the number of words in a given sentence. 9. Write a C program to read two matrices A and B. Calculate the matrix E = ( A B ) * ( A+B) and print the result in matrix form ?

10. Write a C program to delete all the vowels from a sentence. Assume that the sentence is not more than a 90 character string.11. Write a C Program to read two arrays A and B of size M and N. Sort them in ascending order and then merge them into a single sorted array C in the ascending order. 12. Write a C program to read the following information of 120 students: student name, roll no and marks of 4 subjects. Print the roll nos and name of the students who have secured more than 60% marks in total.13. A company pays salary to an employee at the hourly rate of Rs. 50/per hour, for the hours worked below 40 per week. For the overtime, ie, for hours which exceed 40 per week, the pay will be at 1.5 times the normal rate. Write a C program to implement this to calculate the salary.14. Define a structure called students whose members are name, register number and average marks. Write a program to print the name of students of a particular branch who have passed and display the number of students passed in that branch. Also list the name and total number of students who have failed. Assume 50% average marks considered as pass.15. Write a program to perform file copy and file update. Assume a structure with data members author name, book title and price. Consider that the price of the book is to be updated.