Exam Details
Subject | c programming | |
Paper | ||
Exam / Course | m.b.a. | |
Department | ||
Organization | Institute Of Aeronautical Engineering | |
Position | ||
Exam Date | June, 2018 | |
City, State | telangana, hyderabad |
Question Paper
Hall Ticket No Question Paper Code: CMB312
INSTITUTE OF AERONAUTICAL ENGINEERING
(Autonomous)
MBA II Semester End Examinations (Regular/Supplementary) May/June, 2018
Regulation: IARE-R16
C Programming
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. Identify the different symbols used in flowchart. Draw a flowchart to find the average of three
input integer numbers.
If a four digit number is input through the keyboard, write a C program to obtain the sum of
the first and last digit of this number.
2. What is the difference between a break and continue statement? Explain with an example.
Design an algorithm that accepts a positive integer and reverses the order of its digit.
UNIT II
3. Explain recursion function used in C language with an example.
Write a C program to find transpose of a matrix and display the output in matrix format.
4. Explain the different storage classes used in C programming language with examples.
What will be the output of the following code snippet? Justify your answer.
main()
static int
printf("c=%dnn", c
if c
UNIT III
5. Explain the difference between malloc and calloc functions.
Write a C program to count vowels, consonants in a string which is entered by the user.
6. List out any four string handling functions with example.
Write a C program to swap two number using call by reference.
Page 1 of 2
UNIT IV
7. Mention the differences between structures and unions.
Write a program to add 2 complex number using structures.
8. What will be the output of the following code snippet? Justify your answer.
i. #include <stdio.h>
enum week Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday};
int main()
enum week today;
today Wednesday;
printf("Day today+1);
return
ii. #include<stdio.h>
int main()
struct value
int bit1:1;
int bit3:4;
int bit4:4;
printf("%d, bit.bit1, bit.bit3, bit.bit4); return
Write a C program to add two distances entered by user. Measurement of distance should be in
inch and feet. (Note: 12 inches 1 foot)
UNIT V
9. Explain the following file I/O functions with example
i. fopen( ii. fread( iii. fwrite( iv. fclose(
Write a C program to read name and marks of n number of students from user and store them
in a file.
10. Write a C program to copy contents from one file to another.
What will be the output of the following code snippet? Justify your answer.
main()
char ch
static char str[ "Zebra",
putc strprn);
fprintf(stdprn,
fwrite stdprn);
fputs(str,stdprn);
Page 2 of 2
INSTITUTE OF AERONAUTICAL ENGINEERING
(Autonomous)
MBA II Semester End Examinations (Regular/Supplementary) May/June, 2018
Regulation: IARE-R16
C Programming
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. Identify the different symbols used in flowchart. Draw a flowchart to find the average of three
input integer numbers.
If a four digit number is input through the keyboard, write a C program to obtain the sum of
the first and last digit of this number.
2. What is the difference between a break and continue statement? Explain with an example.
Design an algorithm that accepts a positive integer and reverses the order of its digit.
UNIT II
3. Explain recursion function used in C language with an example.
Write a C program to find transpose of a matrix and display the output in matrix format.
4. Explain the different storage classes used in C programming language with examples.
What will be the output of the following code snippet? Justify your answer.
main()
static int
printf("c=%dnn", c
if c
UNIT III
5. Explain the difference between malloc and calloc functions.
Write a C program to count vowels, consonants in a string which is entered by the user.
6. List out any four string handling functions with example.
Write a C program to swap two number using call by reference.
Page 1 of 2
UNIT IV
7. Mention the differences between structures and unions.
Write a program to add 2 complex number using structures.
8. What will be the output of the following code snippet? Justify your answer.
i. #include <stdio.h>
enum week Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday};
int main()
enum week today;
today Wednesday;
printf("Day today+1);
return
ii. #include<stdio.h>
int main()
struct value
int bit1:1;
int bit3:4;
int bit4:4;
printf("%d, bit.bit1, bit.bit3, bit.bit4); return
Write a C program to add two distances entered by user. Measurement of distance should be in
inch and feet. (Note: 12 inches 1 foot)
UNIT V
9. Explain the following file I/O functions with example
i. fopen( ii. fread( iii. fwrite( iv. fclose(
Write a C program to read name and marks of n number of students from user and store them
in a file.
10. Write a C program to copy contents from one file to another.
What will be the output of the following code snippet? Justify your answer.
main()
char ch
static char str[ "Zebra",
putc strprn);
fprintf(stdprn,
fwrite stdprn);
fputs(str,stdprn);
Page 2 of 2
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