Advertisement
Guest User

M. Israk Ahmed

a guest
Oct 19th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.97 KB | None | 0 0
  1. package com.example.testapp;
  2.  
  3. public class Questionbank {
  4.     public String m_question[]={"What is the capital of BD?",
  5.                                 "What is the national fruit of BD?",
  6.                                 "What is the national Flower of BD?"};
  7.     public String m_choice[][]={{"Khulna","Barisal","Dhaka"},{"Mango","Jackfruit","Banana"},{"Rose","Water Lily","Sun Flower"}};
  8.  
  9.     public String m_correctans[]={"Dhaka","Jackfruit","Water Lily"};
  10.  
  11.     public String getquestion(int a){
  12.         String question=m_question[a];
  13.         return question;
  14.     }
  15.  
  16.     public String getChoice1(int a){
  17.     String Choice1=m_choice[a][0];
  18.     return Choice1;}
  19.     public String getChoice2(int a){
  20.     String Choice2=m_choice[a][1];
  21.     return Choice2;}
  22.     public String getChoice3(int a){
  23.     String Choice3=m_choice[a][2];
  24.     return Choice3;}
  25.  
  26.     public String getCorrectans(int a){
  27.         String answer=m_correctans[a];
  28.         return answer;
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement