This download link is referred from the post: JNTUH MBA 2nd Sem Last 10 Year Question Papers (2010-2020) All Regulation - (JNTU Hyderabad)
Firstranker's choice - FirstRanker.com
Hall Ticket No
Question Paper Code: CMB312
--- Content provided by FirstRanker.com ---
MBA II Semester End Examinations (Regular) - July, 2017
Regulation: R16
C Programming
(Master of Business Administration)
Time: 3 Hours
Max Marks: 70
--- Content provided by FirstRanker.com ---
Answer ONE Question from each Unit
All Questions Carry Equal Marks
All parts of the question must be answered in one place only
UNIT - I
- (a) Discuss the concept of implicit type conversion with a suitable example. [7M]
(b) Write a C program that calculates and prints the average of entered integers. Assume the user will enter control-d to end the input. [7M]--- Content provided by FirstRanker.com ---
Sample Run:
Enter an integer (control-d to end): 23
Enter an integer (control-d to end): 123
Enter an integer (control-d to end): 45
Enter an integer (control-d to end): 987--- Content provided by FirstRanker.com ---
Enter an integer (control-d to end): 87
Enter an integer (control-d to end): 098
Enter an integer (control-d to end):
The average is : 227.17 - (a) A palindrome is a number or a text phrase that reads the same backwards as forwards. Write a C program that reads in a five-digit integer and determines whether or not it is a palindrome. [7M]
--- Content provided by FirstRanker.com ---
Hint: Use the division and modulus operators to separate the number into its individual digits.
Sample Run 1:
Enter a five-digit number: 12345
12345 is not a palindrome
Sample Run 2:--- Content provided by FirstRanker.com ---
Enter a five-digit number: 12321
12321 is a palindrome
(b) Discuss the concept of identifiers and data-types in C. [7M]
UNIT II
- (a) With a suitable example, discuss the following categories of user defined functions in C [10M]
- functions with arguments and return values
- function with no argument and return type
--- Content provided by FirstRanker.com ---
- (a) The factorial of a integer N, denoted by N! is the product of all positive integers less than or equal to N. Factorial does not exist for negative numbers and factorial of 0 is 1. Write a recursive routine to compute factorial of a number. Write a test driver for the same. [8M]
(b) What is an array? How is an array declared and initialized? [6M]
UNIT - III
- (a) Bring out the significance of pointers to void with a suitable example. [8M]
(b) In C, a string can be referred either using a character pointer or as a character array. Explain it with examples. [6M] - (a) Explain briefly pointer arithmetic in C with suitable examples. [6M]
(b) What are the unformatted string input and output functions available in C? Is the input function safe? If yes, why and If no, Justify? [8M]
--- Content provided by FirstRanker.com ---
UNIT - IV
- (a) With a suitable example explain the concept of typedef. [6M]
(b) A complex number is a number that can be expressed in the form a + bi, where a and b are real numbers and i is the imaginary unit, satisfying the equation i² = ā1. Write a C Program to add two complex numbers by passing structure to a function. [8M] - (a) Write a C program using nested structures to read 3 employees details with the following fields; emp-id, name, designation, address, basic, da, hra and calculate gross salary of each employee. [9M]
--- Content provided by FirstRanker.com ---
(Hint : gross salary = basic + da + hra).
(b) Bring out the advantage of using Bit Fields in C with a suitable example. [5M]
UNIT - V
- (a) Why is fseek() preferred over rewind() in C? [6M]
(b) Write a C Program to Copy Contents of one file to another file. [8M] - (a) Discuss how reading and writing w.r.t binary file done in C. [8M]
--- Content provided by FirstRanker.com ---
(b) Explain briefly fgets() and fputs() with an example. [6M]
--- Content provided by FirstRanker.com ---
This download link is referred from the post: JNTUH MBA 2nd Sem Last 10 Year Question Papers (2010-2020) All Regulation - (JNTU Hyderabad)