public ArrayList<MCQ> getList(String whereString) {

        StringBuffer sql = new StringBuffer("");
        sql.append("SELECT Question_ID,QType_ID,Question_Text");
        sql.append(" FROM `MCQ`");
        if (whereString.trim() != "") {
            sql.append(" where " + whereString);
        }
        SQLHelper sQLHelper = new SQLHelper();
        sQLHelper.sqlConnect();
        ResultSet rs = sQLHelper.runQuery(sql.toString());
        ArrayList<MCQ> mcqs = new ArrayList<MCQ>();
        try {
            while (rs.next()) {
                MCQ mcq=new MCQ();
                mcq.setQtype_ID(rs.getInt("Qtype_ID"));
                mcq.setQuestion_ID(rs.getInt("Question_ID"));
                mcq.setQuestion_Text(rs.getString("Question_Text"));
                mcqs.add(mcq);
            }
        } catch (SQLException ex) {
            Logger.getLogger(Section_DAO.class.getName()).log(Level.SEVERE, null, ex);
        } 
        
        sQLHelper.sqlClose();
        //sQLHelper.sqlClose();
        return mcqs;
    }