Discrete Structures/Object Oriented Programming/Programming Fundamentals AD/ADP/BBA 2 Semester/Term VU — Virtual University of Pakistan 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.
Need a paper or stuck on a question? Ask here — students reply and you get an email.
Ask about a paper-
BS ZOOLOGY first semester Animal diversity ZOOL 101 - university of Punjab 2025
0 replies Reply → -
Literary criticism
1 reply Reply → -
this paper consists of 60 marks but now we have 35 marks paper.
1 reply Reply → -
Can you please tell me more past papers please because my exams are starting from next week
1 reply Reply → -
Did you provide the past papers of the science of society uos?
1 reply Reply →
More Discrete Structures papers
See all
Discrete Structures AD/BS 2 Semester/Term PU — University of the Punjab 2025
Uploaded 1 day ago · by Itxme
Download ↓
Discrete Structures ADP Islamia University Bhawalpur (IUB) 2024
Uploaded 1 day ago · by Itxme
Download ↓
Discrete Structures BS 3 Semester/Term UOG — University of Gujrat 2020
Uploaded 2 days ago · by Itxme
Download ↓
Discrete Structures BS Mathematics/MS Mathematics 2 Semester/Term PU — University of the Punjab 2024
Uploaded 3 days ago · by Hifza
Download ↓
Discrete Structures BS 1 Semester/Term PU — University of the Punjab 2021
Uploaded 3 days ago · by Hifza
Download ↓
Discrete Structures University Of Sargodha (UOS) 2025
Uploaded 4 months ago
Download ↓
Paper text
Time Allowed: 02:30 Hours
University of Sargodha
BBA/BS/ADP 2nd Semester (F-24) Examination 2025
Paper:
Pakistan Studies (URCG-5128)
(For All Programs)
Note: Objective part is compulsory. Attempt any three questions from subjective part.
The students can attempt the whole questions paper either in English OR Urdu.
Maximum Marks: 60
Objective Part
(Compulsory)
0.1.a
Write short answers of the following in 2-3 lines each on your answer sheet.
i. Two Nation Theory.
• Lahore Resolution.
ili. * First President of Pakistan.
iv. Plateaus of Pakistan.
٧.١
• Indus Valley Civilization.
vi. • Climatic Regions of Pakistan.
VII
GDP
viii. • First Defense Minister of Pakistan.
ix. First Martial Law.
x. ~ What do you know about the Pakistan National Alliance (PNA)?
X1.
Who is the author of "The Struggle for Pakistan"?.
xii.
What do you know about the Kargil conflict?
(2*12)
ustadni.com
Subjective Part
(3*12)
Q.2.
Discuss in detail the military interventions and democratic transitions in Pakistan.
0.3.
Analyze the evolution of Muslim nationalism in British India.
Q.4. Discuss in detail the economic challenges of Pakistan.
Q.5.
Write a comprehensive note on the Kashmir issue.
Q.6. Highlight the importance of Two Nation Theory in the creation of Pakistan.
ustadni.com
ustadni.com
ustadni.com
University of Sargodha
ADP/BS 1" Semester Examination 2025
Paper: Programming Fundamentals (CMPC-5201)
Subject: IT/CS/SE
Time Allowed: 02:30 Hours
Maximum Marks: 40
Note: Objective part is corpulsory. Attempt any three questions from subjective part.
Objective Part
(Compulsory)
Q.1. Write short answers of the following in 2-3 lines each on your answer sheet.
- What are the basic step's involved in problem-solving?
- What is the role of a compiler and a linker in programming? How do they differ?
III. •What are conditional statements? Give an example.
Iv. - How do repetitive staternents (loops) work in programming? Provide an example.
Explain the concept of multidimensional lists. How are they useful in programming?
vi. - What is modular programming? How dioes it help in software developroent?
Vil. ~ How do pointers and references work in C++? Provide a simple example.
viii.
Differentiate between static and dynarnic memory allocation with an example.
(2*8)
Subjective Part (3*8)
Q.2.
Explain the Von-Neumann architecture. How does it influence modern programming?
Q.3.Write a program in C++ that takes two numbers as input and performs arithmetic, comparison, and
logical operations on them. Explain the code.
Q.4. -Discuss different types of loops used in programming. Write
2. program to print the first 10 even
numbers using a loop of your choice.
Q.5.4 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
University of Sargodha
AD/BS 2°d Semester (F-24) Examination 2025
Paper: Object Oriented Programming (CMPC-5202)
Maximum Marks: 40
Subject: CS/IT/SE
Time Allowed: 02:30 Hours
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 lines each on your answer sheet.
What is an abstract class?
i.
What is the purpose of a Constructor?
What are Access Modifiers? name any two?
IV.
How private data members of a class are made available outside the class?
Write the name of two operators that cannot be overloaded.
What is function overriding?
Can a constructor call another constructor using this keyword? Give example.
vili.
How many destructors can be defined in a class? Argue with reasoning.
(2*8)
.CON
Subjective Part
(3*8)
Q.3.
Q.4.
Q.5.
0.6.
Write a program that creates a class Square having data members as sides X and Y of Square. A
parameterized constructor to assign values to data members X and Y. Overload comparison operator
to compare side of two square class objects and display message in main) that two of the square
objects are equal or not.
Write a complete program to create a class called Account with protected attributes such as account
number and balance. The attributes should be initialized through constructors. The class contains a
public method named as show O to display the initialized attributes. Provide a mechanism to create an
array of Account objects. The array size should be given by the user at run time.
Compare single, multiple and multilevel inheritance.
Create a class employee with four data members emp_name, emp_salary, emp_
scale, bonus.
Create the following members functions
A Constructor to assign initial values to data members.
getdetail O to initialize the data members
showdetail to display the values of data members
addbonus to add the bonus in salary. If emp scale is 17 or greater then add 30% of salary as a bonus
in salary, other wise if the scale is less then 17 the add bonus 15%.
withbonus following function will display the salary after adding the bonus.
Write a C++ program to simulate a Bank Account system using exception handling.
Create a class BankAccount with the following data members:
Acc_name (string), Acc_num (string or int), and Acc_balance (float or double).
Add a constructor to initialize all data members. If the user tries to enter a negative balance, throw a
user-defined exception named NegativeBalanceException.
Define a member function displayDetails to print the account information.
In the main) function, create an object of BankAccount class and use a try-catch block to handle any
exceptions thrown when initializing the account. Display an appropriate error message when the
exception is caught.
din
LK-9288/14-11-25 --
Ustadni.com
ustadni.com
Subject: CS/IT/SE
Time Allowed: 02:30 Hours
University of Sargodha
ADP/BS 1" Semester Examination 2025
Paper: Discrete Structures (URCO-5101/URCO-5102/URCO-5103)
Maximum Marks: 60
Note: Objective part is compulsory. Attempt any three questions from subjective part.
(Illustrate your answer with diagram where needed).
Objective Part
(Compulsory)
Q.1. Write short answers of the following in 2-3 lines each on your answer sheet.
Find dual of (p V
F) ^ (q VT).
Show that the conditional statement is tautology without using truth table
-(p→9→79
iii
1.
Write applications of minimum spanning tree.
Using laws of logic, show that -(p ^ q) ^(p v q) = p.
What is a Satisfiable statement?
vi.
Differentiate between a Function and a Relation.
vii.
What is complete graph? C
viitc
What do mean by best case complexity and worst complexity of an algorithm.
ix.
What do mean by necessaries and sufficient condition give an example?
x. • Show that -(pq) and p +→ q are logically equivalent.
xi. • State Modus Ponen rule of Inference.
xii.
Define depth of a Node in a Tree.
(2*12)
Subjective Part
Q.2.
(3*12)
Let S(x) be the predicate "x is a student," F(x) the predicate "x is a faculty member," and A (x, y)
the predicate "x has asked y a question," where the domain consists of all people associated with
your school. Use quantifiers to express each of these statements.
1. Every student has asked Professor Gross a question. V (S(x) →
ii. Some student has not asked any faculty member a question. 9x Slu) A F(x) A(My)
1)→ Aujji, There is a faculty member who has asked every other faculty member a question. 3x (P(x)
0.3
Define a Function, describe One-to-one, Onto, Into and Bijective Functions. Give example of each
one with diagram.
Q.4.
How many license plates can be made using either two uppercase English letters followed by four
digits or two digits followed by four uppercase English letters?
Q.5.
Q.6.
Encrypt the message HOMEWORK using RSA system with n=55 and e=18.
a) Draw graph with given Adjacency Matrix
2
4
b) Find Incidence Matrix of the Graph given below
1
2
2
3
usta
ustadni.com
LK-5091, 6180/28-04-25
ustadni.com