Programming in "C‟ | Second year | Diploma in Computer Science and Engineering |

 1. Define following terms: (i) Keyword (ii) Token

2. Define array. State its types. | State one difference between the terms variable and constant. | Define structure.

3. List various logical operators and describe use of each with suitable example.

4. Give anyone difference between while loop and do-while loop.

5. Describe importance of break statement in switch case statement.

6. Write a „C‟ program to find whether the entered number is prime or not.

7. With suitable example describe how to declare and initialize two dimensional array.

8. Write a „C‟ program to count length of the string using pointer.

9. Write on algorithm and draw a flow chart to find whether the entered number is even or odd.

10. Describe with example in which case do-while loop is most suitable than while loop.

11. Write a „C‟ program to accept 10 numbers in an array and display the smallest number from them.

12. State categories of function. Describe any one with example.

13. Write a „C‟ program to display fibbonacci series using recursion.

14. Define the terms pointer and pointer to array. Also write two advantages of pointer.

15. Describe with suitable example how to use increment and decrement operators.

16. Write a „C‟ program to enter any number between 1 to 7 and display its corresponding week day using switch case statement.

17. Describe following functions with its syntax and example: (i) strcmp( ) (ii) strlen( )

18. Write a program in „C‟ to define a structure „Person‟ with structure members as name and age. Accept this data for one person and display the same.

19. Describe conditional operator with syntax and example.

20. Describe the concept of command line argument with example.

21. Write a „C‟ program to display cube of 1 to 10 numbers using loop.

22. Programming in "C‟ | Differentiate between call by value and call by reference methods. (any four points)

23. Programming in "C‟ | Describe addition and subtraction operations on pointer. Give suitable example for each.

24. Programming in "C‟ | Write a „C‟ program to accept the marks of three subjects and display total marks and average marks.

25. Programming in "C‟ | Describe use of else-if ladder with suitable example.

26. Programming in "C‟ | Write a „C‟ program to enter a string and a character. Count number of times that character appears in entered string and display the count.

27. Programming in "C‟ | Write a „C‟ program to define a structure „cricket‟ having structure members as playername and battingaverage. Accept and display data for three players.

28. Programming in "C‟ | Describe auto and external storage classes with example.

29. Programming in "C‟ | Describe use of for loop with its syntax and example.

Post a Comment

0 Comments