Object Oriented Programming BE UOG — University of Gujrat 2022
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 Paper?
See all →
Need a paper or stuck on a question? Ask here — students reply and you get an email.
Ask about a paper-
ICT 1st sister paper
0 replies Reply → -
BS Islamic Studies, 5th semester, ISL-511 Translation of Holy Quran (3) — Government College University Faisalabad (GCU…
0 replies Reply → -
Civics course code GCCE101
1 reply Reply → -
BS 4the semester2025 civics and community engagement past paper According UOs
0 replies Reply → -
Bs public administration 1st semester mid term past papers
0 replies Reply →
Ad
Paper text
UNIVERSITY OF GUJRAT
UNIVERSITY OF GUJRAT
Final Term - spring 2022
VOG
Subjective Part
Course: Object Oriented Programming (CS-103/106)
Total Marks: 35
Roll No: 21011519-050
Time Allowed (mins): 120
Question No 2- In the below code a function trap is called from the main function, what will be the output if the
[3 Marks]
code is successfully execute.
int Trap(int varl, int var2)
return var2*varl;
int main(
int valuel = 2, value2 = 3,
laue3 = 4;
value2 = Trap(Trap(valuel, value3), value3);
cout << valuel << endl << value3<