PF Lab Final
PF Lab Final
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
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
*
* *
* * *
* *
*
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
Page 1 of 1