• Tidak ada hasil yang ditemukan

INSTITUTE OF AERONAUTICAL ENGINEERING - IARE

N/A
N/A
Protected

Academic year: 2024

Membagikan "INSTITUTE OF AERONAUTICAL ENGINEERING - IARE"

Copied!
2
0
0

Teks penuh

(1)

Hall Ticket No Question Paper Code: CMB312

INSTITUTE OF AERONAUTICAL ENGINEERING

(Autonomous)

MBA II Semester End Examinations (Supplementary) - May, 2019 Regulation: IARE–R16

C PROGRAMMING

Time: 3 Hours (MBA) 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. (a) Explain about various primary data types available in C. [7M]

(b) The cost of a mobile voice plan is Rs. 250 fixed with 100 calls per month and Rs. 1.25 is charged in excess of 100 calls. Write an algorithm to read number of calls made per month and print bill

amount. [7M]

2. (a) Explain about usage of / and % operators in C with example. [7M]

(b) A Mfg. company purchases a heavy machinery for Rs. 12,75,000/- and expects its life time to be 10 Years and at end it can be sold for Rs, 2,75,000/-. Draw a flow chart to calculate and display

depreciation amount after the first year. [7M]

UNIT – II

3. (a) Differentiate between library functions and user defined functions. [7M]

(b) Write a C program that reads sales amount for the product of a company in it’s twelve months.

Then calculate and display it’s total sales amount using arrays. [7M]

4. (a) Explain about various storage classes in C with examples. [7M]

(b) Write a recursive function to find factorial of a given number. [7M]

UNIT – III

5. (a) Define string. Write a C program to read and display name of city where you live in (Eg. New

Delhi) [7M]

(b) Expect output of b1 and b2: [7M]

int b1,c=7,*p;

p=&c;

b1=3*(c-5);

b2=(*p)+2;

printf(“%d %d”,b1,b2);

Page 1 of 2

(2)

6. (a) Explain about various string handling functions. [7M]

(b) Write a C program to reverse a string using strrev( ) function. [7M]

UNIT – IV

7. (a) Differentiate between structure and self referential structure. [7M]

(b) Write a program to define a structure, to store details of a 10 product as product number, name

of the product and year of manufacture. [7M]

8. (a) Explain in brief about dynamic memory allocation and functions used for it. [7M]

(b) Write a program to define a structure for a book which contains book title, author, price and number of pages as members and read two book details and display the data. [7M]

UNIT – V

9. (a) Define file. Differentiate between text file and binary file. [7M]

(b) Describe various file opening modes with their syntax. [7M]

10. (a) Discuss about the following file handling functions [7M]

i. fgets ii. gputs iii. putc iv. getc

(b) Write a C Program to read a file “marks.dat” with rollno, name and marks in 3 subjects. Calculate total marks, percentage of marks and store details of students above 70 percent into a file”

Dist.dat”. [7M]

Page 2 of 2

Referensi

Dokumen terkait

a Write the security regulation types in the airport and aviation field for travelling of passenger in different countries.. [7M] b Give a brief note about ICAO, Future Air Navigation

[7M] b Determine purpose of distributed database access primitives in distributed databases and show how integrity constraints are used in distributed databases [7M] UNIT-IV 7.. a

a Discuss the four ways of disk usage of work station model in distributed operating system.[7M] b Write the scheduling algorithm in distributed system with example.. a Discuss the

CAT command is used to display content of file, Write a C program to Knowledge 2 implement CAT Command using system calls.. Write in detail the features of test

a Write a C program to pass an array containing age of person and number of persons to a function.. This function should find average age and display the average age in main

[7M] b A random process is defined as Xt=A coswct+ θ where θ is a uniform random variable over0,2π .Verify the process is ergodic in the mean sense and auto correlation sense [7M] 8..

[7M] b Determine the maximum and minimum hoop stress across the section of a pipe of 400mm internal diameter and 100mm thick, when the pipe contains a fluid at a pressure of 8 N/mm2..

Write the HTML code for fallowing image: [7M] UNIT - II 3 a Using servlet make a “registration” form that collects a first name, last name, and email address.. Send the data to a