?? 程序員考試模擬試卷——下午題[4] - 學賽網軟考學院.htm
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0052)http://www.educity.cn/rk/prog/200804111009281140.htm -->
<HTML lang=zh-CN xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>程序員考試模擬試卷——下午題[4] - 學賽網軟考學院</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content=程序員 name=keywords>
<META
content=學賽網是IT在線教育平臺和IT教育在線平臺,內容包括軟考,計算機等級考試,等考,計算機專業考研,計算機自學考試,計算機考研,計算機自考,同城拜師,職業規劃,學習資料下載,IT認證,IT英語,IT教育論壇,IT教育博客.學賽網是希賽公司旗下的專業關注IT教育的網站,由希賽IT教育研發中心負責運維工作.
name=description><LINK href="程序員考試模擬試卷——下午題[4] - 學賽網軟考學院.files/Article_cnt.css"
type=text/css rel=stylesheet>
<SCRIPT src="程序員考試模擬試卷——下午題[4] - 學賽網軟考學院.files/Article_head_func.js"
type=text/javascript></SCRIPT>
<SCRIPT>
function StorePage(){
var win_open;
if(window.confirm("您確定要加入學賽收藏夾嗎?")==1)
{win_open=window.open("http://bbs.educity.cn/bbs/add2Favorite.asp?Title=%B3%CC%D0%F2%D4%B1%BF%BC%CA%D4%C4%A3%C4%E2%CA%D4%BE%ED%A1%AA%A1%AA%CF%C2%CE%E7%CC%E2%5B4%5D&URL=http%3A%2F%2Fwww%2Eeducity%2Ecn%2Frk%2Frk%2Fprog%2F200804111009281140%2Ehtm&Class=3","_blank","top=200,left=200,width=300,height=200,Toolbar=no,scrollbars=no");
if(!win_open) alert('頁面已被瀏覽器攔截,收藏失敗。');}
}
</SCRIPT>
<META content="MSHTML 6.00.2900.3395" name=GENERATOR></HEAD>
<BODY><!-- 導航 -->
<SCRIPT src="程序員考試模擬試卷——下午題[4] - 學賽網軟考學院.files/Article_head.js"
type=text/javascript></SCRIPT>
<!-- end -->
<DIV class=blank1></DIV>
<DIV class=PageLineH></DIV><!-- 內容開始 -->
<DIV id=gPageCnt>
<DIV id=CntMain>
<DIV class=nowpz>您現在的位置:<A href="http://www.educity.cn/">學賽首頁</A> > <A
href="http://www.educity.cn/rk/"><FONT color=#bc2931>軟考學院</FONT></A> > <A
href="http://www.educity.cn/rk/category.asp?class=prog">程序員</A> > 正文</DIV>
<DIV class=article>
<DIV class=title>程序員考試模擬試卷——下午題[4]</DIV>
<DIV class=info><FONT color=#bc2931>http://www.educity.cn</FONT> 作者:<A
href="http://www.educity.cn/incSearch/search_author.asp?in=%C8%ED%BF%BC%D1%A7%D4%BA"
target=_blank>軟考學院</A> 來源:希賽教育 2008年4月11日 <A
href="http://www.educity.cn/incSearch/search_bbstitle.asp?t=%B3%CC%D0%F2%D4%B1%BF%BC%CA%D4%C4%A3%C4%E2%CA%D4%BE%ED%A1%AA%A1%AA%CF%C2%CE%E7%CC%E2%5B4%5D&c=%C8%ED%BF%BC%D1%A7%D4%BA%7C%7C%B3%CC%D0%F2%D4%B1"
target=_blank>發表評論</A> <A
href="http://www.educity.cn/incSearch/search_board.asp?c=%C8%ED%BF%BC%D1%A7%D4%BA%7C%7C%B3%CC%D0%F2%D4%B1"
target=_blank>進入社區</A> </DIV>
<DIV id=ArticleCnt><!-- Google廣告代碼 -->
<DIV style="FLOAT: left; MARGIN: 5px">
<SCRIPT type=text/javascript><!--
google_ad_client = "pub-7544158037619893";
/* 250x250, 創建于 08-6-3 */
google_ad_slot = "3368625097";
google_ad_width = 250;
google_ad_height = 250;
//-->
</SCRIPT>
<SCRIPT src="程序員考試模擬試卷——下午題[4] - 學賽網軟考學院.files/show_ads.js"
type=text/javascript>
</SCRIPT>
</DIV>
<P></P>
<P> int key , num=0;</P>
<P> printf("\nPlease input the telegraph: \n");</P>
<P> while ( num<255 && ( old[num++] = getchar()) != '\n' );</P>
<P> old [ (num==255)?num:num-1] = '\0';</P>
<P> do</P>
<P> { printf( "\nPlease input Key ( Key>1 ):" );</P>
<P> scanf("%d",&key);</P>
<P> } while ( key<=1 );</P>
<P> printf( "\nThe decode of telegraph:'%s' is:\n'%s'\n",old,decode( old,key )
);</P>
<P> }</P>
<P> 本文摘自<A href="http://www.educity.cn/incsearch/search.asp?key=%CF%A3%C8%FC"
target=_blank>希賽</A>數字圖書《<A
href="http://www.educity.cn/incsearch/search.asp?key=%B3%CC%D0%F2%D4%B1"
target=_blank>程序員</A>模擬試題分析與解答》,更多的詳細內容請見:http://book.csai.cn/viewbook.asp?id=77</P>
<P> <STRONG>試題五</STRONG>(15分,每空3分)</P>
<P> 閱讀以下說明及<A
href="http://www.educity.cn/incsearch/search.asp?key=Visual+Basic"
target=_blank>Visual Basic</A> 程序代碼,將應填入___(n)___處的字句寫在答題紙的對應欄內。</P>
<P> <STRONG> [說明]</STRONG></P>
<P> 本程序實現如下功能:首先,單擊“生成”按鈕,生成一個由10個隨機大寫字母組成的字符串,并在文本框中顯示。然后,單擊“排序”按鈕,將此隨機字符串中的各個字母按遞增順序添加到列表框中。</P>
<P> 程序運行界面如下:</P>
<P align=center><IMG
src="程序員考試模擬試卷——下午題[4] - 學賽網軟考學院.files/20084116553.jpg"></P>
<P> <STRONG>[程序]</STRONG></P>
<P> As String</P>
<P> Private Sub get_Click()</P>
<P> Dim i As Integer</P>
<P> Randomize</P>
<P> For i = 1 To 10</P>
<P> str1 = Trim(str1) & Chr(Int( ___(1)___ ))</P>
<P> Next</P>
<P> Text1.Text = str1</P>
<P> End Sub</P>
<P> Private Sub sort_Click()</P>
<P> Dim i As Integer</P>
<P> Dim j As Integer</P>
<P> For i = 1 To 26</P>
<P> j = ___(2)___</P>
<P> Do While j > 0</P>
<P> ___(3)___</P>
<P> j = j - 1</P>
<P> Loop</P>
<P> Next</P>
<P> End Sub</P>
<P> Private Function search(str1 As String, str2 As String) As Integer</P>
<P> Dim int1 As Integer, int2 As Integer</P>
<P> int1 = 1</P>
<P> Do</P>
<P> int1 = ___(4)___</P>
<P> If int1 = 0 Then Exit Do</P>
<P> int2 = int2 + 1</P>
<P> int1 = int1 + 1</P>
<P> Loop</P>
<P> search = ___(5)___</P>
<P> End Function (
<P align=right>[<A
href="http://www.educity.cn/rk/prog/200804111009281842.htm">1</A>] [<A
href="http://www.educity.cn/rk/prog/200804111009281120.htm">2</A>] [<A
href="http://www.educity.cn/rk/prog/200804111009281201.htm">3</A>] [4]
[<A href="http://www.educity.cn/rk/prog/200804111009291173.htm">5</A>]
[<A href="http://www.educity.cn/rk/prog/200804111009291689.htm">6</A>]
[<A href="http://www.educity.cn/rk/prog/200804111009291137.htm">7</A>]
[<A href="http://www.educity.cn/rk/prog/200804111009291055.htm">8</A>]
</P></DIV>
<DIV class=page></DIV>
<SCRIPT language=javascript>function T(n){document.getElementById("ArticleCnt").style.fontSize=n+"px";}</SCRIPT>
<DIV class=t1>【<A href="javascript:T(16);">大</A> <A
href="javascript:T(14);">中</A> <A href="javascript:T(12);">小</A>】【<A
href="javascript:StorePage();">收藏到我的學賽</A>】 【<A
href="http://www.educity.cn/incSearch/search_bbstitle.asp?t=%B3%CC%D0%F2%D4%B1%BF%BC%CA%D4%C4%A3%C4%E2%CA%D4%BE%ED%A1%AA%A1%AA%CF%C2%CE%E7%CC%E2%5B4%5D&c=%C8%ED%BF%BC%D1%A7%D4%BA%7C%7C%B3%CC%D0%F2%D4%B1"
target=_blank>發表評論</A>】【<A
href="http://www.educity.cn/incSearch/search_board.asp?c=%C8%ED%BF%BC%D1%A7%D4%BA%7C%7C%B3%CC%D0%F2%D4%B1"
target=_blank>進入社區</A>】 </DIV></DIV>
<DIV class=adv><!-- <div class="ttl">學賽廣告推廣</div> -->
<DIV class=cnt>
<SCRIPT language=JavaScript
src="程序員考試模擬試卷——下午題[4] - 學賽網軟考學院.files/article_ad.js"></SCRIPT>
</DIV></DIV>
<DIV id=AboutLink>
<SCRIPT language=JavaScript
src="程序員考試模擬試卷——下午題[4] - 學賽網軟考學院.files/article_api.htm"></SCRIPT>
</DIV></DIV>
<DIV id=CntR>
<SCRIPT language=JavaScript
src="程序員考試模擬試卷——下午題[4] - 學賽網軟考學院.files/Article_rightlist.js"></SCRIPT>
</DIV>
<DIV class=clr></DIV></DIV><!-- end -->
<DIV class=PageLineH></DIV>
<DIV class=blank1></DIV>
<DIV id=CSAIBottomFoot align=center>
<SCRIPT src="程序員考試模擬試卷——下午題[4] - 學賽網軟考學院.files/Article_foot.js"
type=text/javascript></SCRIPT>
</DIV>
<SCRIPT src="程序員考試模擬試卷——下午題[4] - 學賽網軟考學院.files/Article_foot_func.js"
type=text/javascript></SCRIPT>
</BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -