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
Subject: I.T/CS/SE Time Allowed: 02:30 Hours University of Sargodha ADP/BS 1º Semester Examination 2025
Uploaded 9 months ago
Download ↓
Programming Fundamental (CMPC-102) UOS ADP-IT 2024 Paper 2nd Semester
Uploaded 1 year ago
Download ↓
Bs-IT-Cs-SE-Programming-Fundamentals University Of Sargodha -2024.
Uploaded 1 year ago
Download ↓
Programming-Fundamentals-Msc-IT UOS 2017.
Uploaded 1 year ago
Download ↓
BS-IT-CS-SE-Programming-Fundamentals UOS ( University Of Sargodha) -2023
Uploaded 1 year ago
Download ↓
Bs-CS-SE-IT-Programming-Fundamentals University of Sargodha -2022.
Uploaded 1 year 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