黄色在线观看视频-黄色在线免费看-黄色在线视频免费-黄色在线视频免费看-免费啪啪网-免费啪啪网站

查看全部128種考試
軟件水平考試
 考試動態 報考指南 歷年真題 模擬試題 復習資料 心得技巧 專業英語 技術文章 軟考論壇 考試用書
 程序員 軟件設計師 網絡管理員 網絡工程師 系統分析師 數據庫系統工程師
1
2
3
4
5
6
7
8
9
10
xihuyu2000  
【字體: 1986年程序員考試試題
1986年程序員考試試題
spks.exam8.com 來源:考試吧(Exam8.com) 更新:2004-9-9 15:57:00 軟件水平考試 考試論壇

試題 1 (15%)

閱讀下列形成 4*5 矩陣 A 的流程圖 (a)和形成 5*4 矩陣 B 的流程圖 (b),

把應該填入其中的1-12處的字的句, 寫在答卷的對應欄內.

矩陣 A

1 2 3 4 5

6 7 8 9 10

11 12 13 14 15

16 17 18 19 20

矩陣 B

1 2 3 4

5 6 7 8

9 10 11 12

13 14 15 16

17 18 19 20

試題 2 (15%)

閱讀下列 pascal 程序, 把應該填入________處的字句寫在答卷的對應欄里.

[程序說明]

本程序在輸入給定數 n 后,打印出所有不超過 n 的, 其平方為回文的數.

回文指的的是字符串兩端的字符左右對稱. 例如 1, 22, 121, 121, 4224 等均

是回文.

[程序]

program palindrome(input,output);

const max=1000;

var n,m,i,j,s,:integer;

d:array [1..max] of integer;

begin

read(n);

for m:=1 to n do

begin

______________ ;

j:=0;

while ________ do

begin j:=j+1;

d[j]:=s mod 10;

______________;

end;

i:=1;

while (d[i]=d[j]) and _________ do

begin i:=i+1; j:=j-1;

end;

if __________ then writeln(m)

end

end.

試題 3 (20%)

[程序說明]

本程序將倉庫文件的前 100 個記錄按倉庫編號上升順序分類. 其余記錄的的

順序不變.

一個記錄物品代碼(deptcode), 倉庫編號(stockno)和單價(price)三部分組

成.

假定分類好的 100 個記錄仍放回原文件的前頭, 代替原來的 100 個記錄.

[程序]

program sort (stockfile,f,input,output);

const max=100;

type stockrecord=record deptcode:char;*

stockno:integer;

price:real

end

stock=array [1..max] of stockrecord;

var stocklist : stock;

f,stockfile : file of stock;

i,posnsmallest,next,next : integer;

begin reset (stockfile); rewrite(f);

while not eof(stockfile) do

begin f^:=stockfile^;; put(f); get(stockfile)

end;

reset(stockfile);

stocklist:==________________;

for i:=1 to max-1 do

begin posnsmall:=i;

for next:=________ to max do

if _____________________________<stocklist[posnsmall].stokno

then posnsmall:=_______;

temp:=stocklist[i];

stocklist[i]:=____________________________________;

________________________________:temp;;

end;

rewrite(stockfile); stockfile^:=_____________;

put(_________);

_____________; get(f);

while not eof(f) do

begin stockfile^:=f^;

put(stockfile); get(f)

end;

rewrite(f);

end.

試題 4 (25%)

[程序說明]

本程序輸入字符串長度(不為0)的字符串的所有排列. 例如,

輸入長度為 3 的字符ABC時, 打印出 ABC ACB BAC BCA CAB CBA

當輸入的字符串的長大于 10 時, 取前 10 個字符.

[程序]

program anagram(input,output);

var i,length:integer;

letter,newword:array[1..10] of char;

used:array[1..10] of boolean;

procedure permute(countdown:integer);

var j:integer;

begin

if countdown=___

then begin

for i:=______ downto __ do write(newword[i]);

writeln

end

else begin

for j:=1 to _________ do

begin if not used[j]

then begin

used[j]:=ture;

newword[countdown]:=letter[j];

_____________________________;

__________:=false

end

end

end

end;(*permute*)

begin

writeln('please type in----->);

read(length);

if __________ then length:= 10;

for i:=1 to length do

begin

used[i]:=false; read(letter[i])

end

permute(length)

end.


轉帖于:軟件水平考試_考試吧
文章搜索  
看了本文的網友還看了:
軟件水平考試權威輔導教材: 訂書電話:010-62168566  更多>>>
網友評論
昵 稱: *  評 分: 1分 2分 3分 4分 5分
標題:   匿名發表    (共有條評論)查看全部評論>>
版權聲明 -------------------------------------------------------------------------------------
  如果軟件水平考試網所轉載內容不慎侵犯了您的權益,請與我們聯系,我們將會及時處理。如轉載本軟件水平考試網內容,請注明出處。
關于本站  網站聲明  廣告服務  聯系方式  付款方式  站內導航  客服中心  友情鏈接  考試論壇  網站地圖
Copyright © 2004-2008 考試吧軟件水平考試網 All Rights Reserved    
中國科學院研究生院權威支持(北京) 電 話:010-62168566 傳 真:010-62192699
百度大聯盟黃金認證  十佳網絡教育機構  經營許可證號:京ICP060677
主站蜘蛛池模板: 欧美视频 亚洲视频 | 免费又黄又硬又大爽日本 | 亚洲国产成人九九综合 | 国产91在线视频 | 亚洲人成网站色7777 | 久久免费黄色 | 国产亚洲精品在天天在线麻豆 | 久久午夜夜伦伦鲁鲁片 | 日韩导航 | 天天夜夜狠狠一区二区三区 | 国产视频第一页 | 国产一区二区视频在线观看 | 无遮挡免费视频 | 高清一级做a爱过程不卡视频 | 免费在线观看的黄色网址 | 一个人看的免费视频www中国 | 动漫成年美女黄漫网站国产 | 两性色午夜视频免费网 | 亚洲一区二区观看 | 激情开心成人网 | www.国产精品视频 | 亚洲欧美国产精品久久久 | 国产大片一区 | 国精品午夜dy8888狼人 | 一个色在线视频 | 欧美性猛交ⅹxxx乱大交免费 | 一级特黄特黄的大片免费 | 波多野结衣啪啪 | 在线天堂中文在线资源网 | 久久精品国产精品亚洲艾 | 1717国产精品视频免费 | 99精品视频在线观看免费播放 | 天天综合天天干 | 五月丁香六月综合缴清无码 | 国产粉嫩嫩00在线正在播放 | www中文字幕在线观看 | 日韩午夜免费 | 日本三级特黄在线观看 | 欧美一区二区三区在观看 | 国产伦理精品 | 风流放荡的艳妇小说 |