Advanced Computer Programming-QuestionPaper

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

INTERNATIONAL ISLAMIC UNIVERSITY ISLAMABAD

DEPARTMENT OF COMPUTER SCIENCE AND SOFTWARE ENGINEERING

Final Examination Fall 2020


__________________________________________________________________________________
Course Title: Advanced Computer Programming Exam Date: 21st Jan,2021
Course Code: SE-241 Total Marks: 60
Class/Batch: BSCS F18 Time Allowed: (3+3) hours
Section: A & B Weight-age of the Paper: 60%
Instructor: Saima Nadeem
Instructions: Attempt all questions.
Q#1 (25)
Develop a Semester Management System for your personal use. You can use this system
to add the information about an upcoming assignment, quiz, project etc. The
information can include course name,PART A type (mcq, short questions, programming),
topic,
current date, due date, marks. Use the classes from java Library to manage the current
date. Your program should throw an exception if the current date is greater than the
due date. The system must give you the option to search for the assignments/quizzes
etc for a certain course and it must also have a Reminder option that displays the detail
of all quizzes/assignments/presentations whose due date is near.
Read the problem thoroughly and please note the following
a) You must create a graphical user interface. Use the simplest possible layout and
do not waste time in positioning of input controls.
b) Design the database(MySQL) keeping the database principles in mind
c) Design the Java classes keeping OOP principles in mind.
d) Assume that you have created the database including tables through MYSQL but
do mention the database design using a diagram.
e) Write down the assumptions if you are not clear about anything.
No need to write the import statements and getter/setters.

Q#2 (18+7)
i. Suppose you are maintaining a list of users currently logged on to your Server.You
already have a list of registered users. As soon as a user tries to log in, you check his
email id and password from the existing list and then if valid, you add him to your list of
the users currently logged in. When a user logs off, you remove him from your current
list. Write a program that contains functions to
a) Add an object of class User to the current list
b) Search the User by his email ID
c) Remove a user from the list based on his emailId.
d) Inform about the total number of users currently logged in.
e) Display the data of all the users currently logged in.
The User class should have the instance variables of name, emailId, password and
country (all private). Use appropriate classes from Collection framework to maintain
the two lists. You will also save the email ID of the users into a file when a user logs
in for later use. (Your program doesn’t offer regisistration of new users and GUI is
not required) No need to write the import statements and getter/setters.
ii. Answer the following in short.
a) What is the purpose of Synchronized method in java?
b) Why do we need the wait() and notify() methods?

Q#3 (10)
You have done a Project in this course. Write down the code of one of the java classes
in your Project.

_______________________________ Page 1 of 1

You might also like