Home /PU — University of the Punjab /Computer Science

Computer Science BS 6 Semester/Term PU — University of the Punjab 2019

Computer Science BS 6 Semester/Term PU — University of the Punjab 2019 — 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
  • Saqlain Abbas· 2 hours ago

    ADP sociology 4 semester social statistics 1 past paper 2025

    0 replies Reply →
  • Guest· 1 day ago

    2025 ka past paper dy

    0 replies Reply →
  • Danish Yasin· 2 days ago

    ICT 1st sister paper

    1 reply Reply →
  • Bushra· 4 days ago

    BS Islamic Studies, 5th semester, ISL-511 Translation of Holy Quran (3) — Government College University Faisalabad (GCU…

    0 replies Reply →
  • Khadija· 5 days ago

    Civics course code GCCE101

    1 reply Reply →
Ad

Paper text

UNIVERSITY OF THE PUNJAB B.S. 4 Years Program / Sixth Semester – 2019 Paper: FORTRAN Computer Language Course Code: STAT-318 Part – II Time: 2 Hrs. 45 Min. Marks: 50 ATTEMPT THIS (SUBJECTIVE) ON THE SEPARATE ANSWER SHEET PROVIDED Q.2.a) Write a program to find the sum of geometric series. (5) b) Find the final value of K (5) i) K=2 ii) K=3 10 DO 20 I=3, 8, 2 M=2 IF(I. EQ. 5) GOTO 20 DO 10 J=4, 9, M K=K+I IF(J. EQ. 6) GOTO 10 20 continue K=K+2*J K=2*K 10 continue K=3*K c) write a note on Fortran worksheet. (5) d) write the types of main memory. (5) Q.3. Write a function subprogram to compute f(x) where (7) if x < 0 0 <= x < 9.5 x >= 9.5 Q.4. Write a Fortran program which reads an array and then sort this array in (7) ascending order. Q.5. Write a Fortran program which prints multiplication table from 2 to 10. (7) Q.6. Define subprogram and differentiate between function subprogram and (7) subroutine subprogram. Q.7. Differentiate between I specification and F specification. (2)