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
Hall Ticket No
--- Content provided by FirstRanker.com ---
Question Paper Code: CMB312
MBA II Semester End Examinations (Supplementary) - January, 2019
Regulation: R16
C Programming
(Master of Business Administration)
--- Content provided by FirstRanker.com ---
Time: 3 Hours
Max Marks: 70
Answer ONE Question from each Unit
All Questions Carry Equal Marks
All parts of the question must be answered in one place only
--- Content provided by FirstRanker.com ---
UNIT I
- (a) What is associativity of operators? Explain briefly left shift and right shift operators in C with a suitable example. [7M]
(b) Assume that the commission on a salesman's total sales is computed as follows:
i. If sales < 100, then there is no commission.
ii. If 100 >= sales <= 500, then commission = 10% of sales.--- Content provided by FirstRanker.com ---
iii. If sales > 500, then commission = 100 + 8% of sales above 500
Write a C program for the same. [7M] - (a) Discuss the concept of variables and constants with a suitable example. [7M]
(b) A positive integer is called an Armstrong number of order n if abcd = an + bn + cn + dn. Write a program to print Armstrong numbers between two integers. [7M]
UNIT II
--- Content provided by FirstRanker.com ---
- (a) Explain downward flow and upward flow methods for transferring data between calling and called function with suitable examples. [7M]
(b) Write a C program to swap two numbers using pointers. [7M] - (a) What is scope of a variable? Explain block scope with a suitable example. [7M]
(b) Write a C Program to find sum of n natural numbers. [7M]
UNIT - III
--- Content provided by FirstRanker.com ---
- (a) Explain about string input and output functions. [7M]
(b) Explain briefly the following string handling functions: strcpy(), strcmp(), strcat(). [7M] - (a) With a suitable example, demonstrate how to dereference a pointer to void. [7M]
(b) Explain the use of command line arguments. Illustrate how addition of two integers can be done using command line arguments. [7M]
UNIT IV
--- Content provided by FirstRanker.com ---
- (a) Define structure. Give an example. Identify few operations that can be performed on structures. [7M]
(b) Write a C program to read and display the details of employee like id, name, age and salary. [7M] - (a) Explain the difference between structures and unions. [7M]
(b) What is the use of enumeration type in C? Explain with an example. [7M]
UNIT - V
--- Content provided by FirstRanker.com ---
- (a) Write a C program to count the number of characters in a text file. [7M]
(b) Explain briefly fprintf() and fscanf() with a suitable example. [7M] - (a) Discuss various file opening modes supported in C. [7M]
(b) Write a C program to read name and marks of n number of students from user and store them in a file. [7M]
--- 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)
--- Content provided by FirstRanker.com ---