📄 pasq1002.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> </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>
if i<4 then writeln('Need more experience ...')<br>
else<br>
begin<br>
writeln('Yes, you have it !');<br>
if j<=3 then writeln('But, I would prefer better
ones.')<br>
else writeln('Superb !');<br>
writeln('Congratulations !');<br>
end;<br>
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>< 2</TD><TD>You are a baby !</TD></TR>
<TR><TD>2 <= age < 12</TD><TD>You are a kid !</TD></TR>
<TR><TD>12 <= age < 18</TD><TD>You are a teenager !</TD></TR>
<TR><TD>18 <= age < 24</TD><TD>You are a young adult !</TD></TR>
<TR><TD>24 <= age < 40</TD><TD>You are an adult !</TD></TR>
<TR><TD>40 <= age < 55</TD><TD>You are middle aged !</TD></TR>
<TR><TD>55 <= age < 65</TD><TD>(Give comments yourself)</TD></TR>
<TR><TD>age <= 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, © 1996, 2000</P>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -