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, 2018
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
UNIT I
--- Content provided by FirstRanker.com ---
- (a) Explain the following with one example each. [7M]
- i. Arithmetic operator
- ii. Relational operator
- iii. Logical operator
C = (F-32) X
- (a) Design a flow chart to check whether the given number is even or odd. [7M] (b) Exemplify the iterative statements supported by C Language. [7M]
--- Content provided by FirstRanker.com ---
UNIT - II
- (a) Differentiate call by value and call by reference usage to swap two numbers [7M] (b) What is an array? How 1-d and 2-d arrays are declared and initialized. Give example for each. [7M]
- (a) List and discuss the categories of functions considering the parameter passing and return values. [7M] (b) Develop a C program to find the sum of principal diagonal elements of a square matrix. [7M]
UNIT - III
--- Content provided by FirstRanker.com ---
- (a) Explain the following string handling functions with proper examples: [7M]
- i. strcat()
- ii. strstr()
- iii. strcmp()
main()--- Content provided by FirstRanker.com ---
{
int *ptr;
int arr[]=1,2,3,4;
ptr=arr;
printf("%d%d",arr[2],ptr[2]);--- Content provided by FirstRanker.com ---
}
main()
{
int a=10;
int *ptr=&a;--- Content provided by FirstRanker.com ---
void *vptr=ptr;
*ptr++;
*vptr++;
printf(βthe values are %d%d",*ptr,
vptr);--- Content provided by FirstRanker.com ---
} - (a) Discuss the following with suitable examples [7M]
- i. Array of pointers
- ii. Pointer to function
UNIT - IV
--- Content provided by FirstRanker.com ---
- (a) Discuss how structures and unions are declared, initialized and its members accessed. [7M] (b) Write short note on the following [7M]
- i. typedef
- ii. enumerations
- iii. bit fields
- (a) Develop a C program which does the following: [7M]
Define a structure 'student' with details like student name, marks for 3 subjects and total marks. Read marks for 3 subjects of 'n' students. Calculate the total mark of each student and store them. Display the details of the student who scored the highest marks.
--- Content provided by FirstRanker.com ---
(b) Give a typical example for nested structures, arrays of structures, and arrays within structures. [7M]
UNIT - V
- (a) Discuss the following file handling functions with suitable examples. [7M]
- i. fread()
- ii. fwrite()
- iii. fseek()
- iv. ftell()
--- Content provided by FirstRanker.com ---
- (a) Discuss the primary advantages of using a data file. Describe various file operations and demon- strate the various file accessing modes. [7M] (b) A file named DATA contains a series of integer numbers. Code a 'C' program to read these numbers and then write all 'odd' numbers to a file to be called ODD and all 'even' numbers to a file to be called EVEN. [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)