C-Programming (Part-B)
1 . What is the purpose of control string in a scanf function? What type of information does it convey? Describe the
composition of control string. Include minimum field width, precision, use of flag in your discussion. (17) (M-15)
2 . Write a C program to convert lowercase string to uppercase. (17) (M-10)
3 . What is meant by passing arguments by value and passing arguments by reference? Discuss the advantages and
disadvantages of passing arguments by value. (17) (M-8)
4 . Describe the four methods to read a line of text consisting of blanks. (17) (M-10)
5 . Describe the structure in C program. Differentiate between structure and union. (15,17) (M-7)
6 . What are meant by local variable and global variable with respect to C program?Explain the advantages of using global
variable with example. (17) (M-5)
7 . Distinguish between malloc and calloc function. (17) (M-5)
8 . How is a variable address determined? What is pointer and what kind of information is represented by it? Write down
the applications of pointer. (17) (M-10)
C-Programming (Part-B)
10 . Write a C program to reverse a string. (16) (M-12)
11 . What is recursion? What advantages is there to use recursion? State the strategy of recursion. (16) (M-5)
12 . Differentiate between structure and union. (15,16) (M-6)
13 . What is a structure? How does a structure differ from an array? Describe the syntax for defining the composition of a
structure. How can structure variables be declared. (16) (M-10)
14 . What are the primary advantages of using data file? (16) (M-5)
15 . Define stack and buffer . (15) (M-8)
16 . Explain the terms dynamic memory allocation and static memory allocation . (15) (M-8)
17 . Explain malloc and calloc function. (15) (M-5)
18 . Differentiate between C & C++ . (15) (M-7)