public static ArrayList<QuestionBean> getQuestions(String testid) {
		// TODO Auto-generated method stub
		try {
			ArrayList<String> qidlist=new ArrayList<String>();
			ArrayList<QuestionBean> qlist=new ArrayList<QuestionBean>();
			con=DBConnection.getConnection();
			Statement stmt=con.createStatement();

			ResultSet rs=stmt.executeQuery("select questionid from testquestion where testid='"+testid+"'");
			while(rs.next()){
				qidlist.add(rs.getString(1));
			}
			for(String questionid: qidlist){
				QuestionBean qb=new QuestionBean();
				rs=stmt.executeQuery("select * from question where QUESTIONID='"+questionid+"'");
				rs.next();
				qb.setQuestionid(rs.getString(1));
				qb.setQuestion(rs.getString(2));
				qb.setOption1(rs.getString(4));
				qb.setOption2(rs.getString(5));
				qb.setOption3(rs.getString(6));
				qb.setOption4(rs.getString(7));
				qlist.add(qb);
			}

			con.close();
			return qlist;
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}