• 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) - January, 2019 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. (a) What is associativity of operators? Explain briefly left shift and right shift operators in C with

a suitable example. [7M]

(b) Assume that the commission on a salesman’s total sales is computed as follows: [7M]

i. If sales < 100, then there is no commission.

ii. If 100 >= sales <= 500, then commission = 10% of sales.

iii. If sales > 500, then commission = 100 + 8% of sales above 500 Write a C program for the same.

2. (a) Discuss the concept of variables and constants with a suitable example. [7M]

(b) A positive integer is called an Armstrong number of order n ifabcd=an+bn+cn+dn.

Write a program to print Armstrong numbers between two integers. [7M]

UNIT – II

3. (a) Explain downward flow and upward flow methods for transferring data between calling and called

function with suitable examples. [7M]

(b) Write a C program to swap two numbers using pointers. [7M]

4. (a) What is scope of a variable? Explain block scope with a suitable example. [7M]

(b) Write a C Program to find sum of n natural numbers. [7M]

UNIT – III

5. (a) Explain about string input and output functions. [7M]

(b) Explain briefly the following string handling functions: strcpy(), strcmp(), strcat(). [7M]

6. (a) With a suitable example, demonstrate how to dereference a pointer to void. [7M]

(b) Explain the use of command line arguments. Illustrate how addition of two integers can be done

using command line arguments. [7M]

Page 1 of 2

(2)

UNIT – IV

7. (a) Define structure. Give an example. Identify few operations that can be performed on structures.

[7M]

(b) Write a C program to read and display the details of employee like id, name, age and salary.

[7M]

8. (a) Explain the difference between structures and unions. [7M]

(b) What is the use of enumeration type in C? Explain with an example. [7M]

UNIT – V

9. (a) Write a C program to count the number of characters in a text file. [7M]

(b) Explain briefly fprint() and fscanf() with a suitable example. [7M]

10. (a) Discuss various file opening modes supported in C. [7M]

(b) Write a C program to read name and marks of n number of students from user and store them

in a file. [7M]

− ◦ ◦ ◦ ◦ −

Page 2 of 2

Referensi

Dokumen terkait

Hall Ticket No Question Paper Code: AHS002 INSTITUTE OF AERONAUTICAL ENGINEERING Autonomous Four Year B.Tech I Semester Supplementary Examinations - July, 2018 Regulation: IARE – R16

Hall Ticket No Question Paper Code: CMB010 INSTITUTE OF AERONAUTICAL ENGINEERING Autonomous MBA II Semester End Examinations Supplementary - December, 2018 Regulation: IARE–R16

Hall Ticket No Question Paper Code: AIT002 INSTITUTE OF AERONAUTICAL ENGINEERING Autonomous B.Tech IV Semester End Examinations Supplementary - July, 2018 Regulation: IARE – R16

Hall Ticket No Question Paper Code: BAE701 INSTITUTE OF AERONAUTICAL ENGINEERING Autonomous M.Tech I Semester End Examinations Supplementary - July, 2017 Regulation: IARE–R16

Hall Ticket No Question Paper Code: ACS001 INSTITUTE OF AERONAUTICAL ENGINEERING Autonomous B.Tech I/II Semester Supplementary Examinations - July, 2017 Regulation: IARE – R16

Hall Ticket No Question Paper Code: CMB403 INSTITUTE OF AERONAUTICAL ENGINEERING Autonomous MBA III Semester End Examinations Regular - November, 2018 Regulation: IARE–R16

Hall Ticket No Question Paper Code: BST003 INSTITUTE OF AERONAUTICAL ENGINEERING Autonomous M.Tech I Semester End Examinations Supplementary - July, 2017 Regulation: IARE–R16

Hall Ticket No Question Paper Code: AHS011 INSTITUTE OF AERONAUTICAL ENGINEERING Autonomous B.Tech IV Semester End Examinations Supplementary - July, 2018 Regulation: IARE – R16