Sunteți pe pagina 1din 16

Mid-Term Exam (Take-Home) Fall - 2020

Subject: Visual Programming Language Lab Submission Day: Sunday


Instructor: Tooba Rashid, Qazi Shahab Submission Date: 28-11-2020
Program: BS (CS/SE) Max. Marks: 25

Department of Faculty of Engineering Sciences and Technology

Please follow the instructions carefully:


1. Write your answers in a Word file and upload the file before the due date on BlackBoard.

2. Write your name and registration ID on the first page of your Word file.

3. Answer scripts can be uploaded on BlackBoard any time before its deadline.
Therefore, do not wait for the last hour to avoid any unforeseen problems.

4. Submission of answer copy(ies) will be considered acceptable through BlackBoard


only. Therefore, do not submit your document through email or any other medium.

5. Use 12 pt. font size and Times New Roman font style along with 1-inch page margins.

6. Follow the requirements of the word limit and the marking criteria while writing your
answers.

7. Provide relevant, original and conceptual answers, as this exam aims to test your ability to
examine, explain, modify or develop concepts discussed in class.

8. Do not copy answers from the internet or other sources. The plagiarism of your answers
may be checked through Turnitin.

9. Recheck your answers before the submission on BlackBoard to correct any content or
language related errors.

10. Double check your word file before uploading it on BlackBoard to ensure that you have
uploaded the correct file with your answers.
Q no. 1 10 Marks

Design a “4 pics 1 word” game. You need to add five levels with increasing difficulty. You may
choose different category for each level like Name, thing, animal, place, and more.

Consider the following image for your game, you need to provide 4 pictures for 1 word guessing.
Your pictures must be related to each other in order to guess the word. Use the random letters
shown below for guessing the 1 word.

Use pictureBox and image list for images. You can use buttons or labels for random letters. Use
Label or any suitable control for the word to be guessed. Use Timer component to hold the time
limit of the game (i.e. each level is of 2 min. Game must be stop after reaching this limit). Score
board should be pop up after losing or winning game.

Q no. 2 15 Marks

Design a quiz application having a database based on tables like quiz_category (id, name),
Quiz_questions(id, question , choices, answer, category id ), users(user id, username, email
password), and result(result id, user id, score, category name).

The user can select the category of his choice to take the quiz (You can keep categories like IQ,
Religion, and General Knowledge etc.). Display different questions to the user from the selected
category. Keep difficulty level Easy, Medium and Difficult. Each level shall contain at least 05
questions.

Keep a time limit of 60 seconds for every question to be answered if the user fails to answer skip and
move to the next question. Maintain the scoreboard. If the user gives the correct answer increment
the score. When the game finish displays the score board displaying the count of correct answers
along with the score.
Use the Ado.net framework to maintain the database connectivity for your application.

GUI guidelines

User panel
1. Create sign up for user with validation (use regex patterns for validation)
2. Create a form for choosing category.
3. Display one question at a time. Use label and radio button.
4. Use datagridview to main scoreboard.
Admin panel
1. Create form to add question
2. Use combox to search question based on categories.
3. Admin may perform update, remove, or select operations.
4. Use datagridview to hold information

S-ar putea să vă placă și