• 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: ACS001

INSTITUTE OF AERONAUTICAL ENGINEERING

(Autonomous)

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

COMPUTER PROGRAMMING

Time: 3 Hours (Common to AE | ME | CE) 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 bitwise operators in C. [7M]

(b) The distance between two cities in kilometers is input from the keyboard. Write an algorithm to

display that distance in meters and centimeters. [7M]

2. (a) List various increment and decrement operators in C. [7M]

(b) Draw a flow chart to read a positive number and display message whether it is a even number or

odd number. [7M]

UNIT – II

3. (a) Define Array. Explain different types of Arrays with example. [7M]

(b) Compare and Contrast while and do while loop? Write a C program to print the odd numbers

from X to Y using do while loop? [7M]

4. (a) Define String and list any four string handling functions with examples. [7M]

(b) Write a C Program to input a matrix of size N X N and display it’s transpose. [7M]

UNIT – III

5. (a) A function can pass any number of arguments and return values. Yes or No? Justify it. [7M]

(b) Define function prototype and comment which of following prototypes are valid/invalid. i) Int (f101) void; ii)double f101(void); iii) int f101(int a, b); iv) void fun(int a, int &b);

[7M]

6. (a) Explain call by value & call by reference, actual arguments & formal arguments. [7M]

(b) Write a C program to find sum of given array elements using pointers. [7M]

Page 1 of 2

(2)

UNIT – IV

7. (a) Define a structure and state how the members of a structure are accessed with example? [7M]

(b) Write a program to define a structure that store details of 10 railway passengers as name, PNR number, Source, Destination and class(SL/1A/2A/3A). Display details of sleeper class passengers.

[7M]

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

(b) Write a C program to maintain a book structure containing name, author and pages as structure members and display details of book.

[7M]

UNIT – V

9. (a) Explain about file handling functions. Describe various modes of file opening. [7M]

(b) Write a C program that illustrates different file status functions. [7M]

10. (a) Write the syntax of the following file I/O functions and explain every option in each function with suitable example :

i. fopen() ii. fclose() iii. fread() iv. fwrite()

[7M]

(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 Discuss working methods of various turbo jet engine with suitable sketches.. [7M] b Discuss about different types of air breathing engines and non-air breathing

They are customer details, creating a new account, withdrawing money, loan details and depositing money.. The customer details consist of customer name, address, phone number, account

[7M] b Explain solid based rapid prototyping systems and laminated object manufacturing model and its working principle.. a Explain the critical factors that influence the performance

a Discuss the various types of decision making environments in detail along with different decision making techniques [7M] b The following information available related to a goods

a Explain the working principle of a full wave bridge rectifier with neat circuit diagram and list its advantages and disadvantages.. [7M] b Classify types of

[7M] b Briefly explain the sequence of steps to be followed to prepare a formal organisation structure of an organization... a What do you mean by organizational

[7M] b Draw the equivalent circuit and vector diagram of a permanent magnet synchronous motor with relevant voltage equations and flux linkage components.. Draw the phasor diagram

a Explain the assembly instructions memory addressing of VLIW processor with examples.. [7M] b Explain in detail about the on chip peripherals and processor