Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Govt.

Degree College (w) Zahir Peer Rahim Yar Khan


Examination: December Test Maximum Marks: 40
Paper: Programming using C++ Time: 2 Hrs.

Note: Attempt any four questions.

Q.No.1: Write a program that inputs character from user and checks whether it is a Vowel or
Consonant.

Q.No.2: Write a program that inputs a number from user and displays a table of that number using
While-Loop.

Q.No.3: Write a program that displays the sum of following series.

1+3+5+7+…+100

Q.No.4: Write a program that gets five inputs from user in an Array and then sorts this Array in
Ascending order using Bubble sort.

Q.No.5: Write program that inputs a number and display whether it is even or odd.

You might also like