Code No: B1108 R10 SET -1
I B. Pharmacy I Semester Supplementary Examinations, February - 2020
--- Content provided by FirstRanker.com ---
COMPUTER PROGRAMMING
Time: 3 hours Max. Marks: 75
Answer any FIVE Questions
All Questions carry Equal Marks
-
a) Define Linker. Can a program written in a high-level language execute without a linker? Explain. (7M)
--- Content provided by FirstRanker.com ---
b) Differentiate between declaration and definition. How memory is reserved using a declaration statement? (8M)
-
a) Explain in detail about Unary operators supported in C language. (8M)
b) Write a C program to test if a given number is a power of 2. (7M)
-
a) What is a string constant? How do string constants differ from character constants? (7M) Do string constants represent numerical Values?
b) List the iterative statements supported in C. Explain with their syntax. (8M)
-
a) Write in detail about one dimensional and two dimensional arrays. Also write about how initial values can be specified for each type of array? Explain how the above type of arrays can be stored in memory? (8M)
b) Write a C program to count the number of times a given character appears in the string. (7M)
--- Content provided by FirstRanker.com ---
-
a) Write a function that copies a one-dimensional array of n elements into a two-dimensional array of k-rows and j-columns. The rows and columns must be a valid factor of the number of elements in the one-dimensional array i.e., k * j =n. (8M)
b) What is recursion? Explain the different types of recursion. (7M)
-
a) Explain the rules for pointer operations. (7M)
--- Content provided by FirstRanker.com ---
b) Write a C program using pointers to read in an array of integers and print its elements in reverse order. (8M)
-
a) Discuss the Enumerated data types and their type conversions. (8M)
b) Explain how the structure variable be passed as a parameter to a function with example. (7M)
-
a) What is a file? List and explain the formatted I/O functions. (8M)
b) How does an append mode of a file differ from a write mode? Explain with an example. (7M)
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
This download link is referred from the post: OU BA Last 10 Years Question Papers (2010-2020) || Osmania University