0% found this document useful (0 votes)
24 views1 page

ITP FinalTerm Paper Fall 2018

This document is an exam for the final term of the Introduction to Programming course at the University of Science & Technology in Bannu, Pakistan. It consists of 7 questions worth a total of 50 marks. Question 1 asks students to write a program to store and print student data using structures. Question 2 asks students to create a structure for bank customer data and write a function to print customers with balances below Rs. 100. Question 3 asks students to write a program to display the cube of odd positioned values in a 4x3 array. Question 4 asks students to write a function to find the length of a string. Question 5 asks students to write a program to count the positive, negative, even, and odd numbers in an array

Uploaded by

Syed Yaqoob Shah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views1 page

ITP FinalTerm Paper Fall 2018

This document is an exam for the final term of the Introduction to Programming course at the University of Science & Technology in Bannu, Pakistan. It consists of 7 questions worth a total of 50 marks. Question 1 asks students to write a program to store and print student data using structures. Question 2 asks students to create a structure for bank customer data and write a function to print customers with balances below Rs. 100. Question 3 asks students to write a program to display the cube of odd positioned values in a 4x3 array. Question 4 asks students to write a function to find the length of a string. Question 5 asks students to write a program to count the positive, negative, even, and odd numbers in an array

Uploaded by

Syed Yaqoob Shah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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