Exam Details
Subject | c programming | |
Paper | ||
Exam / Course | m.b.a. | |
Department | ||
Organization | Institute Of Aeronautical Engineering | |
Position | ||
Exam Date | January, 2018 | |
City, State | telangana, hyderabad |
Question Paper
Hall Ticket No Question Paper Code: CMB312
INSTITUTE OF AERONAUTICAL ENGINEERING
(Autonomous)
MBA II Semester End Examinations (Supplementary) January, 2018
Regulation: IARE-R16
C Programming
(Master of Business Administration)
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
1. Explain the following with one example each.
i. Arithmetic operator
ii. Relational operator
iii. Logical operator
Design an algorithm to input temperature in degree Fahrenheit(F) and convert it to degree
Centigrade(C) using the following formula:
C 32) X5
9
2. Design a flow chart to check whether the given number is even or odd.
Exemplify the iterative statements supported by C Language.
UNIT II
3. Differentiate call by value and call by reference usage to swap two numbers
What is an array? How 1-d and 2-d arrays are declared and initialized. Give example for each.
4. List and discuss the categories of functions considering the parameter passing and return values.
Develop a C program to find the sum of principal diagonal elements of a square matrix.
UNIT III
5. Explain the following string handling functions with proper examples:
i. strcat()
ii. strstr()
iii. strcmp()
Page 1 of 2
Evaluate the following
Table 1
main( main(
int int
int arr[ int
ptr=arr; void *vptr=ptr;
printf("the values are
vptr);
6. Discuss the following with suitable examples
i. Array of pointers ii. Pointer to function
List the functions used for various memory allocations supported by C and give one example for
each.
UNIT IV
7. Discuss how structures and unions are declared, initialized and its members accessed.
Write short note on the following
i. typedef ii. enumerations iii. bit fields
8. Develop a C program which does the following:
Define a structure 'student' with details like student name, marks for 3 subjects and total marks.
Read marks for 3 subjects of students. Calculate the total mark of each student and store
them. Display the details of the student who scored the highest marks.
Give a typical example for nested structures, arrays of structures, and arrays within structures.
UNIT V
9. Discuss the following file handling functions with suitable examples.
i. fread() ii. fwrite() iii. fseek() iv. ftell()
Develop a C program to create two files STD-DETAILS (Student Name, Student ID, and
Semester) and STD-MARKS (Sub1, Sub2, and Sub3). Concatenate the two files and display
the contents from the concatenated file
10. Discuss the primary advantages of using a data file. Describe various file operations and demonstrate
the various file accessing modes.
A file named DATA contains a series of integer numbers. Code a program to read these
numbers and then write all numbers to a file to be called ODD and all numbers to
a file to be called EVEN.
INSTITUTE OF AERONAUTICAL ENGINEERING
(Autonomous)
MBA II Semester End Examinations (Supplementary) January, 2018
Regulation: IARE-R16
C Programming
(Master of Business Administration)
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
1. Explain the following with one example each.
i. Arithmetic operator
ii. Relational operator
iii. Logical operator
Design an algorithm to input temperature in degree Fahrenheit(F) and convert it to degree
Centigrade(C) using the following formula:
C 32) X5
9
2. Design a flow chart to check whether the given number is even or odd.
Exemplify the iterative statements supported by C Language.
UNIT II
3. Differentiate call by value and call by reference usage to swap two numbers
What is an array? How 1-d and 2-d arrays are declared and initialized. Give example for each.
4. List and discuss the categories of functions considering the parameter passing and return values.
Develop a C program to find the sum of principal diagonal elements of a square matrix.
UNIT III
5. Explain the following string handling functions with proper examples:
i. strcat()
ii. strstr()
iii. strcmp()
Page 1 of 2
Evaluate the following
Table 1
main( main(
int int
int arr[ int
ptr=arr; void *vptr=ptr;
printf("the values are
vptr);
6. Discuss the following with suitable examples
i. Array of pointers ii. Pointer to function
List the functions used for various memory allocations supported by C and give one example for
each.
UNIT IV
7. Discuss how structures and unions are declared, initialized and its members accessed.
Write short note on the following
i. typedef ii. enumerations iii. bit fields
8. Develop a C program which does the following:
Define a structure 'student' with details like student name, marks for 3 subjects and total marks.
Read marks for 3 subjects of students. Calculate the total mark of each student and store
them. Display the details of the student who scored the highest marks.
Give a typical example for nested structures, arrays of structures, and arrays within structures.
UNIT V
9. Discuss the following file handling functions with suitable examples.
i. fread() ii. fwrite() iii. fseek() iv. ftell()
Develop a C program to create two files STD-DETAILS (Student Name, Student ID, and
Semester) and STD-MARKS (Sub1, Sub2, and Sub3). Concatenate the two files and display
the contents from the concatenated file
10. Discuss the primary advantages of using a data file. Describe various file operations and demonstrate
the various file accessing modes.
A file named DATA contains a series of integer numbers. Code a program to read these
numbers and then write all numbers to a file to be called ODD and all numbers to
a file to be called EVEN.
Other Question Papers
Subjects
- accounting for management
- business law and environment
- business law and ethics
- business research methods
- c programming
- compensation and reward management
- consumer behavior
- e- marketing
- entrepreneurial development
- financial accounting and analysis
- financial derivatives
- financial management
- financial modeling
- financial services and systems
- human resource management
- integrated marketing communication
- intellectual property rights
- leadership and change management
- management and organizational behavior
- management of technology
- managerial economics
- marketing management
- mis and enterprise resource planning
- operations management
- performance management
- product and brand management
- quantitative analysis for business decisions
- retailing management
- rural marketing
- security analysis and portfolio management
- statistics for management
- strategic human resource management
- strategic investment and financing decisions
- strategic management
- strategic management accounting
- talent and knowledge management
- training and development
- wto and intellectual property rights