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

PF Lab Final

Uploaded by

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

PF Lab Final

Uploaded by

subhanjutt4422
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

COMSATS University Islamabad

Sahiwal Campus
(Department of Computer Science)
Course Title: Programming Fundamental Course Code: CSC103 Credit Hours: 1
Course Instructor: Rehana Ghulam Programme Name: BSCS
Semester: 2nd Batch: FA-23 Section: G Date: June 25th, 2024
Time Allowed: 3 hrs Maximum Marks: 25
Student’s Name: Reg. No. CUI/ /SWL
Important Instructions / Guidelines:
Read the question paper carefully and answer the questions according to their statements.
Mobile phones are not allowed. Calculators must not have any data/equations etc. in their memory.
Lab Midterm Examinations Spring-2024

Answer the Following question in detail

Question#1. Write a function findMax that takes an array and its size as arguments and
returns the maximum element in the array. 10 marks

Question#2. Print the following pattern using loops

*
* *
* * *
* *
*
10 marks
Question#3. Write a function sortStrings that takes an array of strings and its size as
arguments, and sorts the strings in alphabetical order. 10 marks

Question#4. Viva 20 marks

Page 1 of 1

You might also like