Skip to content

Data Structure Lab

CIS · Final · Summer 25

Batch 21_A

This browser can’t show the PDF here

Open it, and your phone’s PDF viewer takes it, or download it.

Read the questions as text

Read off the PDF by AI, so it may have mistakes. The PDF is the original.

Lab Final Examination: Summer-2025 Course Code: CIS 122L (Batch: 21_A) Course Title: Data Structure Lab Date: 01/09/2025 Time: 1 Hour Total Marks: 40 1. Suppose a linked list contains 7 elements. Write a program to skip [21] printing any repeated occurrences of the first element if it appears later in the list. For Example: - Input: 10 20 30 10 40 10 50 - Output: 10 20 30 40 50 2. Suppose an array M contains 15 elements, with indices starting from 0. [19] Now, implement a C program that updates all odd elements by multiplying them by 5.