Exam Details

Subject c programming
Paper
Exam / Course m.b.a.
Department
Organization Institute Of Aeronautical Engineering
Position
Exam Date July, 2017
City, State telangana, hyderabad


Question Paper

Hall Ticket No Question Paper Code: CMB312
INSTITUTE OF AERONAUTICAL ENGINEERING
(Autonomous)
MBA II Semester End Examinations (Regular) July, 2017
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. Discuss the concept of implicit type conversion with a suitable example.
Write a C program that calculates and prints the average of entered integers. Assume the user
will enter control-d to end the input.
Sample Run:
Enter an integer (control-d to 23
Enter an integer (control-d to 123
Enter an integer (control-d to 45
Enter an integer (control-d to 987
Enter an integer (control-d to 87
Enter an integer (control-d to 098
Enter an integer (control-d to
The average is 227.17
2. 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.
Hint: Use the division and modulus operators to separate the number into its individual digits.
Sample Run
Enter a five-digit number: 12345
12345 is not a palindrome
Sample Run
Enter a five-digit number: 12321
12321 is a palindrome
Discuss the concept of identifiers and data-types in C.
UNIT II
3. With a suitable example, discuss the following categories of user defined functions in C
i. functions with arguments and return values
ii. function with no argument and return type
Explain briefly how do you pass a 2D array as a parameter in
Page 1 of 2
4. The factorial of a integer denoted by 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.
What is an array? How is an array declared and initialized?
UNIT III
5. Bring out the significance of pointers to void with a suitable example.
In a string can be referred either using a character pointer or as a character array. Explain it
with examples.

6. Explain briefly pointer arithmetic in C with suitable examples.
What are the unformatted string input and output functions available in Is the input function
safe? If yes, why and If no, Justify?
UNIT IV
7. With a suitable example explain the concept of typedef.
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 i2 −1. Write a C Program to add
two complex numbers by passing structure to a function.
8. 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.
(Hint gross salary basic da hra).

Bring out the advantage of using Bit Fields in C with a suitable example.
UNIT V
9. Why is fseek() preferred over rewind() in
Write a C Program to Copy Contents of one file to another file.
10. Discuss how reading and writing w.r.t binary file done in C.
Explain briefly fgets() and fputs() with an example.


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