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

📄 pasq1002.html

📁 This is programing tutorial for people who wants to know programing in PASCAL.Pascal might be not th
💻 HTML
字号:
<HTML>
<HEAD><LINK href="../style.css" rel="stylesheet" type="text/css">
<TITLE>Pascal Lesson 1 : Quiz 3</TITLE></HEAD>
<BODY background="../tile01.jpg">
<P><CENTER><H1>Quiz for Chapter 3</H1></CENTER>
<P>&nbsp;</P>
<P>Now, we'll begin the quiz.
If you haven't got a good grip on <A HREF="pasl1002.html">
chapter 3</A>, read that chapter first.</P>
<H3>Time : 45 minutes.</H3>
<P>Number 1 to 5 scores 12 each, number 6 and 7 scores 20 each.</P>
<OL>
<LI>What does Pascal provide in order to perform conditional branching ?</LI>
<LI>Explain briefly each syntax !</LI>
<LI>How could we do nested branching ? Is it legal ?</LI>
<LI>Tell us how to trap arrow keys !</LI>
<LI>How could we trap function keys (<TT>F1</TT>  through
   <TT>F10</TT>) ? How is it similar  to
   trapping arrow keys ?</LI>
<LI>Determine the output  <TT>if i=5 and j=3</TT>  for the following excerpt :<BR>
  <br><TT>
  &nbsp;&nbsp; if i&lt;4 then writeln('Need more experience ...')<br>
  &nbsp;&nbsp; else<br>
  &nbsp;&nbsp; begin<br>
  &nbsp;&nbsp;&nbsp;&nbsp; writeln('Yes, you have it !');<br>
  &nbsp;&nbsp;&nbsp;&nbsp; if j&lt;=3 then writeln('But, I would prefer better
  ones.')<br>
  &nbsp;&nbsp;&nbsp;&nbsp; else writeln('Superb !');<br>
  &nbsp;&nbsp;&nbsp;&nbsp; writeln('Congratulations !');<br>
  &nbsp;&nbsp; end;<br>
  &nbsp;&nbsp; writeln('Thank you for using this program !');<br></TT>
  </LI>
<LI>Make a program to ask ages. Classify the ages into these categories :
   <CENTER><TABLE BORDER=2><TR><TH>Age</TH><TH>Comment</TH></TR>
   <TR><TD>&lt; 2</TD><TD>You are a baby !</TD></TR>
   <TR><TD>2  &lt;= age &lt; 12</TD><TD>You are a kid !</TD></TR>
   <TR><TD>12 &lt;= age &lt; 18</TD><TD>You are a teenager !</TD></TR>
   <TR><TD>18 &lt;= age &lt; 24</TD><TD>You are a young adult !</TD></TR>
   <TR><TD>24 &lt;= age &lt; 40</TD><TD>You are an adult !</TD></TR>
   <TR><TD>40 &lt;= age &lt; 55</TD><TD>You are middle aged !</TD></TR>
   <TR><TD>55 &lt;= age &lt; 65</TD><TD>(Give comments yourself)</TD></TR>
   <TR><TD>age &lt;= 65</TD><TD>(Give comments yourself)</TD></TR>
   </TABLE></CENTER>
</LI></OL><hr>
<P>That's all folks ! Good luck !</P>
<H3>Where to go ?</H3>


<A HREF="pasl1002.html">Back to chapter 3</A><BR>
<A HREF="pasl1003.html">Advance to chapter 4</A>, about constants<BR>
<A HREF="pasles01.html">To lesson 1 contents</A><BR>
<a HREF="../news.html">My main tutorial homepage</a><BR>
<a HREF="../mylink.html">My programming links</a><BR>
<a HREF="../faq.html">Contact me</a>

<hr>
<P class="cpy">By : Roby Joehanes, &copy; 1996, 2000</P>
</body></html>

⌨️ 快捷键说明

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