## Programming in C & Programming Logic Development with C, Question Paper of BSC IT (D) 1st Semester,Download Previous Years Question Paper 1

• Tuesday, December 08, 2015

Roll No……….
Total No. of Questions: 13
J3588[S-1444]
[2037]
B.Sc. (IT) (Semester.-1st)
PROGRAMMING IN C & PROGRAMMING LOGIC
DEVELOPMENT WITH C (B.Sc. (IT) – 102/103)

Time: 3 Hrs.                                                                           Max. Marks: 75

Instruction to Candidates:

1. Section-A is Compulsory.
2. Attempt any Nine questions from Section-B.

SECTION-A

Q1.
(a) Write the difference between signed and unsigned data types.
(b) What are the three conversion specifications used to read char types   data?
(c) Enumerate about a cast operator? What function does it perform?
(d) Differentiate between a legal and an illegal nested loop?
(e) Describe life time and visibility features of external variable.
(f) What is the purpose of sizeof function?
(g) How do you give command line arguments?
(h) Define a pointer variable. How will you declare it?
(i) Give two different examples of a union declaration?
(j) In what sense a structure can be recursive.
(k) Differentiate between a function prototype and a function definition?
(l) Define a multidimensional array.
(m) What are the main features of cget function?
(n) Under what condition, a pointer variable can point to another pointer          variable?
(o) What are the difficulties of processing a union?

SECTION-B
]
Q2.    What are preprocessor directives? Name two processor directives. What are     their purposes?

Q3.    Explain the application of the printf function is displaying int, long, octal &           hexadecimal types data with examples?

Q4.    Explain the method of applying exp function in place of sqrt and pow     functions?

Q5.    Given syntax of break statement. What is its significance? What the         difference is between continue statement and break statement?

Q6.    Write a function revdigit to reverse the digits of a long number without   using character array (e.g. 54662= 26645)

Q7.    Differentiate between passing one dimensional array and two dimensional         array in specification of function prototype and function definitions?

Q8.    Write a function norm to find the square root of the sum of the square of  all     the elements in the matrix.

Q9.    Write a function readalpha, sortalpha & printalpha to read, sort and print           respectively words in an decending order.

Q10. Write a program which pass functions as arguments to other functions.

Q11.  Explain the method of passing a structure by value as an argument to a function with an example of prototype function calls and function     decelerator.

Q12. Write a C program to display the technique of processing of union.

Q13.           Read 10 positive integers. Display the numbers after multiplying each odd           number by 4 keeping even numbers unchanged. Use a pointer function to          return the changed value of odd numbers.