Long Questions April/May - 2010 Marks 1. Explain arithmetic operators and their precedence in C. 2. Explain the term structured programming with help of example 3. Write a program to read 10 numbers and print th lowest number 4. Difference between single dimension and two dimensional array in terms of storing strings. Write a program to reverse individual words in a given sentence. Write a program to check whether the given 3*3 matrix is identity or not?. How does union help in storing the values? How it differs from structure?. Write short notes on : a. Multidimensional arrays b. Bitwise operator 1 c. Break and continue October 2010 1. Write a note on basic data types in C. How can we do implicit and explicit conversion? When it is needed? 2. Character strings in C are automatically terminated by the NULL character. Explain if yes, how this feature helps in string 4 manipulations. 3. What do you mean by preprocessor statement? Explain. 4 4. Write a program to generate following series up to given steps 0, 1, 1, 2, 3,,,......... Write a program to generate following series up to given steps 1, 3,, 10, 1,......... Explain following functions with example: (any three) strcat ( ), strcmp( ), strcpy( ), strlen( ). What is difference between if else and? operator? 4. Explain the need of array variable. 4 9. Write a program to read a word from keyboard and sort in alphabetical order. I/P -> narmad o/p -> aadmnr 10. Write a note on different iterative statements available in C
language. Explain with example. 11. Write a program to read matrix of 3*3 dimensions and carry out following operations: a. print transpose b. print highest value in each row c. print sum d. exit April/May 2011 Write a program to display the following pattern For say n = B A Z Y X W V U T S R Q P O N M L K J I H G F E D C B A Write the different features of macro and compare it with variable. Write a menu driven program to carry out the following operations on array: a. Traversing b. Insertion c. Deletion d. Sorting Explain operators in C with their precedence. Explain different branching structure in C. Write a program to display circular matrix of given number N. if input is 4 then 1 1 14 13 4 3 12 1 2 11 9 10 Explain type conversion. Also describe the conditions in which explicit and implicit conversion is used. Explain any 3 number functions in C. How can you format an output of a C program? 3
Write a program to input a word and display the variations of the word. E.g. I/P-> space o/p -> space paces acesp cespa espac October/November - 2011 Write a C program to read3*3 matrix and find out LCM of the diagonal elements. Write a program to display the following pattern for given n: if n = 4 then 1 2 3 2 3 4 4 3 Write a program to input a string and extract m character string from n th position. Write a program to read 2 arrays of 10 numbers each. Merge and sort them in descending order. Explain the need of array variable. Differentiate character and numeric array. Explain any loop structure with example. 4 Write a program to read a line and display number of words, characters and digits in it. Write a program to convert binary to decimal number April/May 2012 1. What us symbolic constant? How can you create it? How does it differs from constants created using const? 2. Write a short note on case structure with example. What are their limitations? 3. WAP to print following series. 1, 4, 2, 2,. 4. WAP for the following pattern where say row = 4 1 2 2
3 3 3 4 4 4 4. Compare scanf() and gets().. Differentiate between 1D & 2D arrays specifically in terms of storing strings.. Explain multidimensional arrays in C. Write different ways to initialize 2D array during declaration.. WAP to merge 2 arrays & print it in ascending order. 9. Explain isspace() & isalnum() with syntax. 10. What is structure? Why it is needed? Differentiate it with an array. 11. Create a structure called Tournament with following fields: Tournament_No, Tournament_name, No_of_teams Read details of Tournaments & display Tournament with highest number of teams. 12. WAP to develop a function that reverse the number passed as an argument. 13. Write a short note 1. pointers 2. break and continue in the loop structure 3. type conversion 14. Explain bit fields in union. 1. WAP to reverse individual words in a given sentence. (i) (ii) (iii) October/November-2012 What is symbolic constant? How can you create it? How does it differ from constants created using const. Explain arithmetic operator, ternary operator, bitwise operator. WAP to print following series 1, 4, 2, 2,
(iv) WAP to print following series 10, 1, 20, 2,.. 12. Compare scanf() & gets(). 13. Differentiate between ID and 2S array in terms of storing strings. 14. Explain with example Call by value 1. WAP to read 3 X 3 matrixes & print it in column-wise ascending order. 1. Explain strncpy() with syntax & example. 1. Explain union. How it differs from structure? What is typedef keyword? 1. Explain any conversion function. 19. Create a structure called Tournament with following fields: Tournament_No, Tournament_name, No_of_teams Read details of Tournaments & display Tournament with lowest number of teams. 20. Create structure Cricket with following fields. Playername, teamname, avg Use proper data types. Read playes records & dispay them in formatted manner. 21. Explain bit fields in union. 22. Write a note on: 1. pointers 2. storage class 3. type conversion April/May - 2013 23. Discuss the skeleton of C Programming Language 24. Discuss constants & variables in C programming languages 2. Discuss types of operators in C Language 2. Describe the evaluation & assignments of expressions in C 2. Discuss jumping & branching statements in C 2. Explain types of loops in C 29. Write a note on built-in functions in C Language 30. What is an array? Explain 1D & 2D arrays in details. 31. What is significance of user defined function? 32. What is difference between Call by Value & Call by Reference? 33. What is difference between Structure & Union? 34. What is pointer? Write a note on Pointer arithmetic. 3. Write a notes on following: o While and Do While loop
o Difference between Arrays & Structures o Types of arguments in C o Global & Local Variables o Formatted Input & Output o Logical & Relational operators September/October 2013 3. Explain arithmetic operator, conditional operator & bitwise operator. 3. What is symbolic constant? Write the rules to define symbolic constants. Also discuss advantages of using symbolic constants. 3. Differentiate Call by Value & Call by Reference method. 39. Write a note on primitive data types in C. Explain mechanism of implicit & explicit conversion. 40. Write a note on assignment operators, logical operators & relational operators. 41. Explain string function & provide appropriate examples. 42. Write a note on iterative statements. 43. What is array? Explain difference between 1D & 2D array 44. What is string? Explain various string functions. 4. Write a note on formatted input & output 4. What is structure? What is difference between array of structure & structure of array? 4. Explain concepts of pointers in C 4. Write a note on following: 1. typedef & enum 2. type specifiers 3. pointer to an array 4. character functions. type conversion implicit & explicit. differentiate between break & continue statement