public static List<Question> getAllQuestions()
    {
              try
        {
            List<Question> allQuestions = new ArrayList<Question>();
            String query = "Select QuestionId from Question";
            
            ResultSet rs = getQueryResults(query);
            List<Integer> QuestionIds = new ArrayList<Integer>();
            while (rs.next())
            {
                QuestionIds.add(rs.getInt("QuestionId"));
            }
            for (int qid : QuestionIds)
            {
                allQuestions.add(getQuestionData(qid));
            }
            return allQuestions;
        }
        catch (SQLException ex)
        {
            return null;
        }
    }