Computer Science-1 BSCS UO — University of Okara 2026
Discussion
Ask a question about this paper, or help someone else with theirs. Answers are emailed to whoever asked.
No questions yet — be the first to ask.
Need a paper or stuck on a question? Ask here — students reply and you get an email.
Ask about a paper-
Can you please tell me more past papers please because my exams are starting from next week
0 replies Reply → -
Did you provide the past papers of the science of society uos?
1 reply Reply → -
KPK university of buner first semester 1th computer science papers programming fundamentals
1 reply Reply → -
Kisi ka pass es subject ka notes hain Kiya TU kindly mujhy snd kar dy
1 reply Reply → -
Agr Kisi ka pass es subject sa related notes hain TU mujhy dy
1 reply Reply →
More Computer Science-1 papers
See allPaper text
FACULTY OF COMPUTING
Valid / Invalid
Variable Name
double
final marks
price_2
Q5. IPO Chart (3)
Prepare an IPO (Input-Process-Output) chart for a program that accepts the price of an
item and the discount percentage, then calculates the discount amount and the final
price to pay-
Output
Process
Input
Q6, Flowchart (3)
Draw a flowchart for a program that inputs the base and height of a triangle, calculates
its area using Area = ½ × base × height, and displays the result.
Q7. Order of Precedence (3)
Evaluate each expression step by step and write the final result. (1 each)
1.9+12/3*2
2.(9+12)/3*2
3.
47%5+2*(6-3)
Q8. Write complete C++ programs for the following problems. (7)
a. Area of a Circle (3)
Write a program that takes the radius of a circle from the user and displays its area. Use 3.14159 for n
(Area = n × r × r).
b. Total and Percentage (4)
Write a program that takes the marks of four subjects (each out of 100) from the user. Calculate and
display the total marks and the percentage.
