SHARE
TWEET

Untitled

a guest Oct 19th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.example.myapplication;
  2.  
  3. public class QuestionBank {
  4.  
  5.     public String m_question[] = {"What is the capital of BD?",
  6.                                     "What is the national fruit of BD?",
  7.                                     "What is the national flower of BD? "};
  8.  
  9.     public String m_choices[][] = {{"Khulna", "Barishal", "Dhaka"},
  10.             {"Mango", "Jackfruit", "Banana"}, {"Rose","Water Lily", "Sun Flower"}};
  11.  
  12.     public String m_correctants[] = {"Dhaka", "Jackfruit", "Water Lily"};
  13.  
  14.     public String getQuestion(int a){
  15.         String question = m_question[a];
  16.         return  question;
  17.     }
  18.  
  19.     public String getChoice1(int a){
  20.         String Choice1 = m_choices[a][0];
  21.         return Choice1;
  22.     }
  23.     public String getChoice2(int a){
  24.         String Choice2 = m_choices[a][1];
  25.         return Choice2;
  26.     }
  27.     public String getChoice3(int a){
  28.         String Choice3 = m_choices[a][2];
  29.         return Choice3;
  30.     }
  31.  
  32.     public String getCorrectants(int a){
  33.         String answer = m_correctants[a];
  34.         return answer;
  35.     }
  36.  
  37. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top