Roll No. ____________________ Total No. of Pages : 02
Total No. of Questions: 15
MBA (2016 to 2017) (Sem.-3)
--- Content provided by FirstRanker.com ---
PROGRAMMING IN C
Subject Code: MBA-981
M.Code: 70759
Time: 3 Hrs. Max. Marks : 60
INSTRUCTION TO CANDIDATES :
--- Content provided by FirstRanker.com ---
- SECTION-A contains SIX questions carrying FIVE marks each and students has to attempt any FOUR questions.
- SECTION-B consists of FOUR Subsections: Units-I, II, III & IV. Each Subsection contains TWO questions each carrying EIGHT marks each and student has to attempt any ONE question from each Subsection.
- SECTION-C is COMPULSORY carrying EIGHT marks.
SECTION-A
- Draw the flowchart to generate the multiplication table of any integer number say 'n'.
- What is meant by function declaration? Why is it required? Justify your answer
- What is a union? How the values of union variable are initialized? How does a union differ from a structure?
- Write a C program to find sum of diagonal elements in a given square integer array.
- Differentiate between while and do while loop. Give an example where do-while loop is more suitable to use than while loop.
- How string is different from character array? Differentiate between string constant and character constant. Write a C statement to show how a string can be initialized.
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
SECTION-B
UNIT-I
- What is an operator? Describe several different types of operators that are included in C.
- A) What is identifier? Summarize the rules for naming identifiers.
B) How can the number of bytes allocated to each data type be determined for a particular C compiler?
--- Content provided by FirstRanker.com ---
UNIT-II
- Describe in brief storage classes in C. Discuss the usage of each with suitable example.
- Write a program in C to generate multiplication table of numbers between 2 to 100.
UNIT-III
- How 2-D arrays are represented in memory? Write a program in C to find transpose of a given Matrix.
- What is benefit of using pointer? Write a C program to read an array of integers and print its elements in reverse order by using the concept of function and pointers.
--- Content provided by FirstRanker.com ---
UNIT-IV
- How does a structure differ from an array? Can individual members be initialized within a structure type declaration? How is an array of structures initialized?
- Define the term file. Write a program to read text file and perform following operation A) Display count of character in file B) Display count of new line in file.
SECTION-C
--- Content provided by FirstRanker.com ---
- Create a structure to specify data of customers in a bank. The data to be stored is: Account number, Name, Balance in account. Assume maximum of 200 customers in the bank. Write a menu driven program A) To print the Account number and name of each customer with balance below Rs, 100. B) To withdraw amount from particular account number C) To deposit amount in particular account number The program should give a message, "The balance is insufficient for the specified withdrawal". If required
NOTE : Disclosure of Identity by writing Mobile No. or Making of passing request on any page of Answer Sheet will lead to UMC against the Student.
--- Content provided by FirstRanker.com ---
This download link is referred from the post: PTU MBA 2020 March Previous Question Papers