Home /UO — University of Okara /Computer Science-1

Computer Science-1 BSCS UO — University of Okara 2026

Computer Science-1 BSCS UO — University of Okara 2026 — page 1

Discussion

Ask a question about this paper, or help someone else with theirs. Answers are emailed to whoever asked.

Your email is only used to send you replies and occasional Ustadni updates. It is never shown publicly.

Log in to post under your name

No questions yet — be the first to ask.

Need Paper? See all →

Need a paper or stuck on a question? Ask here — students reply and you get an email.

Ask about a paper
  • Annie· 11 hours ago

    Can you please tell me more past papers please because my exams are starting from next week

    0 replies Reply →
  • Ahmed· 4 days ago

    Did you provide the past papers of the science of society uos?

    1 reply Reply →
  • Muhammad Mustafa· 14 days ago

    KPK university of buner first semester 1th computer science papers programming fundamentals

    1 reply Reply →
  • Bushra· 22 days ago

    Kisi ka pass es subject ka notes hain Kiya TU kindly mujhy snd kar dy

    1 reply Reply →
  • Bushra· 22 days ago

    Agr Kisi ka pass es subject sa related notes hain TU mujhy dy

    1 reply Reply →

More Computer Science-1 papers

See all

Paper 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.