Computer Science BSCS UOG — University of Gujrat 2024
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
Fall-2024
Course Code: CS-303
Course Title: Advance Programming Techniques
Time Allowed: 120 Minutes
Marks: 35
Roll #:
Sir Awais
BSCS-22-EVE
SUBJECTIVE PART
Q2. Answer the following questions.
Explain the architecture of WPF, including its key components. Write a function that make a List as
input and returns sorted list of Tehsil from your district with respect to their ID number.
(Hint: Make class Tehsil and add properties Teh_ID, Teh_Name and District.)
(05)
How does WPF differ from Windows Forms? Also explain What is XAML and why is it used in WPF? (05)
What is Network Programming and why is it important? Describe the role of the System.Net namespace in C#
.NET.
(05)
Create a form that ask the user to input First Name, Last name, Position and Salary. The data will be stored in
database. Write down the steps to connect databases of your choice (ADO/ SQL Server/ ORACL Server etc.)
with WPF. The records of employees should be displayed in RichTextBox under List of Employee.(10)
v. Create a form as given bellow.
(10)
a) Explain the UI of this windows form.
b) Write the appropriate code on "Open File" button which open windows explorer to choose
a (.txt) file (also apply filters to only show .txt files)
c) Write the appropriate code on "Save File" to open a save file dialog box, which asks user to
save a file on some storage media.