⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abstractquestion.html

📁 考试系统
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<DD>to identify Binary Question
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#paper.AbstractQuestion.BINARY">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="CHOICE"><!-- --></A><H3>
CHOICE</H3>
<PRE>
public static final int <B>CHOICE</B></PRE>
<DL>
<DD>to identify Choice Question
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#paper.AbstractQuestion.CHOICE">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="FACTUAL"><!-- --></A><H3>
FACTUAL</H3>
<PRE>
public static final int <B>FACTUAL</B></PRE>
<DL>
<DD>to identify factual Question
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#paper.AbstractQuestion.FACTUAL">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="TYPENAME"><!-- --></A><H3>
TYPENAME</H3>
<PRE>
public static final java.lang.String[] <B>TYPENAME</B></PRE>
<DL>
<DD>Store Question Name
<P>
<DL>
</DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="AbstractQuestion(java.lang.String, paper.AbstractAnswerSet, java.lang.String, int, int)"><!-- --></A><H3>
AbstractQuestion</H3>
<PRE>
public <B>AbstractQuestion</B>(java.lang.String&nbsp;qutestionText,                        <A HREF="../paper/AbstractAnswerSet.html">AbstractAnswerSet</A>&nbsp;answers,                        java.lang.String&nbsp;hint,                        int&nbsp;score,                        int&nbsp;diff)</PRE>
<DL>
<DD>Create a question and initiate variables
<P>
<DT><B>Parameters:</B><DD><CODE>qutestionText</CODE> - question string to discribe the question<DD><CODE>answers</CODE> - answer of the question<DD><CODE>hint</CODE> - hint of the question<DD><CODE>score</CODE> - score of the question<DD><CODE>diff</CODE> - difficulty of the question</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="createNewQuestion(int)"><!-- --></A><H3>
createNewQuestion</H3>
<PRE>
public static <A HREF="../paper/AbstractQuestion.html">AbstractQuestion</A> <B>createNewQuestion</B>(int&nbsp;type)</PRE>
<DL>
<DD>create a new empty question with specifically type
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>type</CODE> - Question type<DT><B>Returns:</B><DD>Question</DL>
</DD>
</DL>
<HR>

<A NAME="check(paper.AbstractAnswer)"><!-- --></A><H3>
check</H3>
<PRE>
public int <B>check</B>(<A HREF="../paper/AbstractAnswer.html">AbstractAnswer</A>&nbsp;ans)</PRE>
<DL>
<DD>if ans is correct, return score else return 0
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ans</CODE> - the answer to be checked</DL>
</DD>
</DL>
<HR>

<A NAME="getQuestionScore()"><!-- --></A><H3>
getQuestionScore</H3>
<PRE>
public int <B>getQuestionScore</B>()</PRE>
<DL>
<DD>return the score of the question
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>score value</DL>
</DD>
</DL>
<HR>

<A NAME="getDifficulty()"><!-- --></A><H3>
getDifficulty</H3>
<PRE>
public int <B>getDifficulty</B>()</PRE>
<DL>
<DD>return the difficulty of the question
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>difficulty value</DL>
</DD>
</DL>
<HR>

<A NAME="getHint()"><!-- --></A><H3>
getHint</H3>
<PRE>
public java.lang.String <B>getHint</B>()</PRE>
<DL>
<DD>get hint of the question
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>string of hint</DL>
</DD>
</DL>
<HR>

<A NAME="getKey()"><!-- --></A><H3>
getKey</H3>
<PRE>
public <A HREF="../paper/AbstractAnswer.html">AbstractAnswer</A> <B>getKey</B>()</PRE>
<DL>
<DD>get key answer of the question
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>key answer</DL>
</DD>
</DL>
<HR>

<A NAME="getQuestionText()"><!-- --></A><H3>
getQuestionText</H3>
<PRE>
public java.lang.String <B>getQuestionText</B>()</PRE>
<DL>
<DD>return question text of the question
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>string of question text</DL>
</DD>
</DL>
<HR>

<A NAME="getType()"><!-- --></A><H3>
getType</H3>
<PRE>
public abstract int <B>getType</B>()</PRE>
<DL>
<DD>return the type of current question
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>type value</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/AbstractQuestion.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../paper/AbstractAnswerSet.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../paper/BinaryAns.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="AbstractQuestion.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT>  <!--  if(window==top) {    document.writeln('<A HREF="../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT><A HREF="../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>

</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -