《全国计算机等级考试四级笔试试题范文.docx》由会员分享,可在线阅读,更多相关《全国计算机等级考试四级笔试试题范文.docx(76页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、Four short words sum up what has lifted most successful individuals above the crowd: a little bit more.-author-date全国计算机等级考试四级笔试试题范文全国计算机等级考试四级笔试试题范文全国计算机等级考试四级笔试试题一、选择题。(共90题,分为1分题和2分题,满分120分。除标注2分题外,其它均为1分题。) (1) 若或非门的输入变量为A和B,输出变量为Y,则A和B分别为下述哪一种情况时, Y才为1?_。 A) 1,0 B) 0,1 C) 0,0 D) 1,1 (2) 已知寄存器A存
2、有带符号整数且只作算术移位,HA和LA分别代表其最高位和最低位。寄存器B存有带符号整数且只作逻辑移位,HB和LB分别代表其最高位和最低位。当寄存器A与B都有左移位发生时,下述哪一个命题是正确的? _。(2分) A) LA与LB均成为0 B) LA与LB均成为1 C) LA变成0但LB保持原值 D) LA保持原值但LB的值改变 (3) 下述哪一种情况称为指令周期? A) 取指令时间 B) 取操作数时间 C) 取指令和执行指令的时间 D) 存储操作结果的时间 (4)2010年网络中交易额最大的电子商城网站是下面哪个A)见效美白站B)114购物网C)淘宝网D)淘宝网男装 (5) 设Z是整数集,且设f
3、:ZZZ,对每一个ZZ,有f()=mn。集合0的原象为_。(2分) A) 0Z B) Z0 C) (0Z)(Z0) D) (0Z)(Z0) (6) 对于一个只有3个不同元素的集合A来说,A上的等价关系的总数为 _。 A) 2 B) 5 C) 9 D) 取决于元素是否为数值 (7) 设有命题:对于组成元素为集合的集合C,存在函数为f:CC,使得对每一个 SC,有f(S)S。 该命题的否命题是_。 A) 对于集合C,对每个函数f:CC,对每一个SC,都有f(S) S B) 对于集合C,存在函数f:CC,使对每一个SC,有f(S) S C) 对于集合C,对每一个函数f:CC,存在SC,使得f(S)
4、S D) 对于集合C,不存在函数f:CC,使对某些SC,没有f(S) S (8) 设(V,E)是一连通的无圈图,V包含 3个3度顶点 2个2度顶点 r个1度顶点 且V不再包含其他元素。E的元素个数为多少?_。 (2分) A) 6 B) 9 C) 15-r D) 5+5r (9) 设连通图G的顶点数与边数与一立方体相同,即有8个顶点和12条边。任意一棵G的生成树的总边数为_。 A) 7 B) 8 C) 9 D) 10 (10) 设图G的顶点为五边形P的顶点,其边为P的边加上另一条连接P的两个不相邻顶点的边。下列命题中哪个(或哪些)命题是真命题? . G中存在欧拉回路 . G中存在哈密尔顿回路 A
5、) 均不是 B) 只有 C) 只有 D) 和第11-13题是在已知下述Pascal程序的基础上,并设在程序执行过程中无错误发生。 for h:=1 to n-1 do begin x:=Ah+1; k:=h; while (k=1) and (Akx) do begin Ak+1:=Ak; k:=k-1 end; Ak+1:=x end; (11) 假设在程序开始执行时,数组A1.n是一个已排好序的递增序列。下列答案中,哪一个最好地描述了程序的执行时间(运行时间阶数)? _。 A) O(log2n) B) O(n) C) O(nlog2n) D) O(n) (12) 假设在程序开始执行时,数组
6、A1.n是一组随机整数。下列答案中,哪一个最好地描述了最差情况下的程序执行时间(运行时间阶数)? _。 A) O(log2n) B) O(n) C) O(nlog2n) D) O(n) (13) 上述程序算法的标准名称是_。 A) 起泡排序法 B) 插入排序法 C) 选择排序法 D) 快速排序法 (14) 下面关于B树和B+树的叙述中,不正确的结论是_。 A) B树和B+树都是平衡的多分树 B) B树和B+树都可用于文件的索引结构 C) B树和B+树都能有效地支持顺序检索 D) B树和B+树都能有效地支持随机检索 第(15)-(16)题基于下面的叙述:某二叉树结点的对称序序列为A,B,C,D,
7、E,F,G,后序序列为B,D,C,A,F,G,E。 (15) 该二叉树结点的前序序列为_。 (2分) A) E,G,F,A,C,D,B B) E,A,C,B,D,G,F C) E,A,G,C,F,B,D D) E,G,A,C,D,F,B (16) 该二叉树对应的树林包括多少棵树?_。 (2分) A) 1 B) 2 C) 3 D) 4 第(17)-(18)题是有关DOS操作系统的内容: (17) 设驱动器为D,下述哪一个命令可以用来分页显示根目录下的文件清单_。A) DIR D: B) DIR D: C) DIR /P D: D) DIR /P D: (18) 若将DOS的提示符改成MS-DOS
8、5FILE1 SORTFILE2 DEL FILE1 DATE TIME IF EXIST %1 ECHO % IF FOUND If all of the commands are successfully executed after IF1 FILE1 is typed, then the screen displays?_ A) None B) Date and time C) FILE1 IS FOUND D) FILE2 IS FOUND (70) If the files in the current directory are aac, abc, acb,acc, aca, a
9、o, al, a2, ab, ac, aa, and the command ls a?bc is executed, how many files will be listed?_ (2分) A) 3 B) 4 C) 5 D) 6 B) (71) In order to append a standard output to an existing file, which of the following operators is used in the UNIX system? _ A) | B) & C) D) (72) Consider the following figure, wh
10、ere the shaded parts represent already assigned blocks of memory, and the unshaded parts represent free blocks. (2分) If there is a request for 40KB of memory and the best-fit algorithm is used, then the beginning address of memory that is allocated in response to the request is _. A) 100KB B) 190KB
11、C) 330KB D) 410KB (73) On a certain disk, there are 200 tracks, numbered 0-199, the current position of the disk head is track 53. If the shortest-seek-time-first scheduling algorithm is used when the tracks 98, 183, 37, 122, 14, 124, 65, 67 are requested, then the head-moving sequence that results
12、will be (2分) A) 65, 67, 37, 14, 98, 122, 124, 183 B) 65, 67, 37, 98, 122, 124, 183, 14 C) 65, 67, 98, 122, 124, 183, 37, 14 D) 98, 183, 37, 122, 14, 124, 65, 67 (74) Whant operation on relations R and S produces the relation shown below?_. tupletupleRtuple S A) Union B) Difference C) Intersection D)
13、 Division (75) When embedding SQL in a C language program, the prefix that should be added to all SQL statements in order to distinguish SQL statements from the host language statements is_. A) : B) EXEC C) EXEC SQL D) SQL (76) In the ORACLE system,sets of SQL statements and control flow statements
14、that have been named,compiled,and stored tn the database are referred to as stored_. A) batches B) procedures C) triggers D) transactions (77) Which of the following statements about object oriented databases is NOT correct? _. (2分) A) Each object has a unique object identity in the system. B) Encap
15、sulation and inheritance are two important features of object oriented databases. C) A subclass can inherit the attributes and methods of all its superclasses. D) A superclass includes the attributes and methods of all its subclasses. (78) In the design phase of software engineering, decomposition o
16、f the program into modules should follow the principles of _. A) low cohesion with low corpling B) low cohesion with high coupling C) high cohesion with low coupling D) high cohesion with high coupling C) (79) Specifications for software should contain&nbs p;several components, e.g., specifications
17、of information flow, user interface, functional requirements, and design constraints. Two other important components are specifications of the_. (2分) A) methods of testing and ways to obtain quality assurance B) criteria for testing and ways to obtain quality assurance C) methods of testing and crit
18、eria for function assurane D) criteria for testing and methods of function assurance D) (80) Which of the following statements about testing software with data is (are) true?_. I. The primary purpose of such testing is to find errors. II. Such testing can demonstrate the existence of errors but cannot demonstrate the absence of errors. A) Neither B) only C) only D) and (81) The type of testing done during software implementation and beforemodule integration is called _. A) unit testing B)