Prep Right
Questions › CSS › Computer Science › 2012
FPSC · CSS 2012

Computer Science

100 marks · 3 hours · 1 questions
This paper Computer Science · all yearsQ. 8 · Suppose a user vote for…With this paper← 20112013 →
3 hours · questions hide until you reveal them

Section C

Q. 8

Suppose a user vote for his favourite food from a dynamic combo box populated from database and the user must be able to make multiple food selections per request. You can use database of your choice. You are required to implement the following functionality.

  1. (a)Store the favourite foods and the number of votes for each food. [8]
  2. (b)Display all foods and their number of votes in alphabetical order back to the user. [6]
  3. (c)Display the top three foods. [6]

Related papers

About this paper

The 2012 CSS Computer Science paper set by the FPSC. Question wording only; questions marked “Not yet checked” have not been compared with the official paper yet.

Disclaimer Prep Right is independent and not affiliated with FPSC.