Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.testapp;
- public class Questionbank {
- public String m_question[]={"What is the capital of BD?",
- "What is the national fruit of BD?",
- "What is the national Flower of BD?"};
- public String m_choice[][]={{"Khulna","Barisal","Dhaka"},{"Mango","Jackfruit","Banana"},{"Rose","Water Lily","Sun Flower"}};
- public String m_correctans[]={"Dhaka","Jackfruit","Water Lily"};
- public String getquestion(int a){
- String question=m_question[a];
- return question;
- }
- public String getChoice1(int a){
- String Choice1=m_choice[a][0];
- return Choice1;}
- public String getChoice2(int a){
- String Choice2=m_choice[a][1];
- return Choice2;}
- public String getChoice3(int a){
- String Choice3=m_choice[a][2];
- return Choice3;}
- public String getCorrectans(int a){
- String answer=m_correctans[a];
- return answer;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement