You are on page 1of 1

University of Science & Technology, Bannu

Bannu Township, Khyber Pakhtunkhwa, Bannu, Pakistan.


Ph # 0928–633825 Fax # 0928—633821 www.ustb.edu.pk

Subject: Introduction to Programming Exam: Final Term (Fall 2018) Department: Software Engg
Max Marks: 50 Batch: 8th Time Allowed: 2 hour

Solve all questions.

Answer the following questions

Q1. Write a program to store and print the roll no., name, age and marks of a student using structures. [5]

Q2. 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 20 customers in the bank. [6]
(a) Write a function to print the Account number and name of each customer with balance below Rs. 100.

Q3. Write a program that will display cube of only odd positioned values of a non linear array of size 4*3. [6]

Q4. Write a program to find the length of a string using user defined functions. [6]

Q5. Twenty-five numbers are entered from the keyboard into an array. Write a program to find out how
many of them are positive, how many are negative, how many are even and how many odd. [7]

Q6. Write a program that converts all lowercase characters in a given string to its equivalent uppercase
character. [5]

Q7. Answer the Following in Brief [5x3]

I. Automatic storage class


II. External storage class
III. What information does the name of an array store?
IV. Arrays Bounds Checking
V. Function Call

Page 1 of 1

You might also like