Programming Fundamentals (CMPC-5201) I.T/CS/SE University of Sargodha - ADP/BS 1' Semester Examination 2025
Discussion
Ask a question about this paper, or help someone else with theirs. Answers are emailed to whoever asked.
No questions yet — be the first to ask.
More Programming Fundamentals papers
See all
Programming Fundamentals BS 1 Semester/Term UOS — University of Sargodha 2023
Uploaded 26 days ago
Download ↓
Programming Fundamentals ADP/BS 1 Semester/Term PU — University of the Punjab 2025
Uploaded 11 months ago
Download ↓
Programming Fundamentals ADP 2 Semester/Term University Of Sargodha (UOS) 2024
Uploaded 1 year ago
Download ↓
Programming Fundamentals BS 1 Semester/Term University Of Sargodha (UOS) 2024
Uploaded 2 years ago
Download ↓
Programming Fundamentals MPhil Information Technology/MS Information Technology/MSc Information Technology 1 Semester/Term University Of Sargodha (UOS) 2017
Uploaded 2 years ago
Download ↓
Programming Fundamentals BS/MS Software Engineering/PhD Software Engineering 1 Semester/Term University Of Sargodha (UOS) 2023
Uploaded 2 years ago
Download ↓
Paper text
Subject: I.T/CS/SE
Time Allowed: 02:30 Hours
University of Sargodha
ADP/BS 1' Semester Examination 2025
Paper: Programming Fundamentals (CMPC-5201)
Maximum Marks: 40
Note: Objective part is compulsory. Attempt any three questions from subjective part.
Objective Part
(Compulsory)
Q.1. Write short answers of the following in 2-3 liness each on your answer sheet.
i. What are the basic step's involved in problem-solving?
UStal - What is the role of a compiler and a linker in programming? How do they differ?
ill. - What are conditional statements? Give an example.
IV. - How do repetitive staternents (loops) work in programming? Provide an example.
v. Explain the concept of multidimensional lists. How are they useful in programming?
vi. - What is modular programming? How cloes it help in software developrent?
vil. → How do pointers and references work in C++? Provide a simple example.
vili. Differentiate between static and dynarnic memory allocation with an example.
(2*8)
Subjective Part (3*8)
Explain the Von-Neumann architecture. How does it influence modern programming?
2.3. Write a program in C++ that takes two numbers as input and perferms arithmetic, comparison, and
logical operations on them. Explain the code.
Q.4. L Discuss different types of loops used in programming. Write ?, program to print the first 10 even
numbers using a loop of your choice.
Explain the importance of function definition and calling in modular programming. Write a program
to demonstrate the use of functions in solving a real-world problem.
Discuss the concept of static and dynamic memory allocation. Write a C++ program to demonstrate
dynamic nemory allocation using pointers.
LK-6165/29-04-25
ustadni.com
ustadni.com
ustadni.com
ustadni.com