Download PTU MBA 2020 March 3rd Sem 70759 Programming In C Question Paper

Download PTU (I.K. Gujral Punjab Technical University Jalandhar (IKGPTU) ) MBA (Master of Business Administration) 2020 March 3rd Sem 70759 Programming In C Previous Question Paper

1 | M-70759 (S13)-1861

Roll No. Total No. of Pages : 02
Total No. of Questions : 15
MBA (2016 to 2017) (Sem.?3)
PROGRAMMING IN C
Subject Code : MBA-981
M.Code : 70759
Time : 3 Hrs. Max. Marks : 60

INSTRUCTION TO CANDIDATES :
1. SECTION-A contains SIX questions carrying FIVE marks each and students has
to attempt any FOUR questions.
2. 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.
3. SECTION-C is COMPULSORY carrying EIGHT marks.

SECTION-A
1. Draw the flowchart to generate the multiplication table of any integer number say ?n?.
2. What is meant by function declaration? Why it is required? Justify your answer
3. What is a union? How the values of union variable are initialized? How does a union
differ from a structure?
4. Write a C program to find sum of diagonal elements in a given square integer array.
5. Differentiate between while and do while loop .Give an example where do-while loop is
more suitable to use than while loop.
6. 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.

SECTION-B
UNIT-I
7. What is an operator? Describe several different types of operators that are included in C.
8. 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?
FirstRanker.com - FirstRanker's Choice
1 | M-70759 (S13)-1861

Roll No. Total No. of Pages : 02
Total No. of Questions : 15
MBA (2016 to 2017) (Sem.?3)
PROGRAMMING IN C
Subject Code : MBA-981
M.Code : 70759
Time : 3 Hrs. Max. Marks : 60

INSTRUCTION TO CANDIDATES :
1. SECTION-A contains SIX questions carrying FIVE marks each and students has
to attempt any FOUR questions.
2. 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.
3. SECTION-C is COMPULSORY carrying EIGHT marks.

SECTION-A
1. Draw the flowchart to generate the multiplication table of any integer number say ?n?.
2. What is meant by function declaration? Why it is required? Justify your answer
3. What is a union? How the values of union variable are initialized? How does a union
differ from a structure?
4. Write a C program to find sum of diagonal elements in a given square integer array.
5. Differentiate between while and do while loop .Give an example where do-while loop is
more suitable to use than while loop.
6. 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.

SECTION-B
UNIT-I
7. What is an operator? Describe several different types of operators that are included in C.
8. 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?
2 | M-70759 (S13)-1861

UNIT-II
9. Describe in brief storage classes in C. Discuss the usage of each with suitable example.
10. Write a program in C to generate multiplication table of numbers between 2 to 100.
UNIT-III
11. How 2-D arrays are represented in memory? Write a program in C to find transpose of a
given Matrix.
12. 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.
UNIT-IV
13. 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?
14. 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
15. 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.
FirstRanker.com - FirstRanker's Choice

This post was last modified on 22 March 2020