数据库英语综合测试题16

合集下载

英语十六级考试题目及答案

英语十六级考试题目及答案

英语十六级考试题目及答案### English Level Sixteen Exam: Questions and Answers#### Section A: Vocabulary and Grammar1. Question: Choose the correct word to complete the sentence. - "The _______ of the new policy has been met with mixed reactions from the public."- (A) implementation- (B) implication- (C) implication- (D) complicationAnswer: (A) implementation2. Question: Identify the grammatical error in the following sentence.- "She don't like to go to the beach because she is afraid of the sunburn."Answer: The correct sentence should be "She doesn't liketo go to the beach because she is afraid of getting sunburned."3. Question: Fill in the blank with the appropriate word form. - "The _______ of the ancient ruins has provided valuable insights into the history of the region."- (A) examination- (B) exploration- (C) exploitation- (D) degradationAnswer: (B) exploration#### Section B: Reading ComprehensionPassage:In the heart of the city, a new park has been developed to provide a green space for residents. The park, named "Green Haven," features a variety of amenities including walking trails, a children's playground, and a community garden. The local government has invested heavily in this project to promote a healthier lifestyle among its citizens.Questions:1. Question: What is the main purpose of the new park?- (A) To provide a space for sports- (B) To promote a healthier lifestyle- (C) To host community events- (D) To attract touristsAnswer: (B) To promote a healthier lifestyle2. Question: What amenities are mentioned in the passage?- (A) Sports facilities and a library- (B) Walking trails and a community garden- (C) A museum and a theater- (D) A swimming pool and a restaurantAnswer: (B) Walking trails and a community garden#### Section C: WritingTask: Write a short essay on the importance of environmental conservation.Answer:Environmental conservation is a critical issue that affectsthe well-being of our planet and its inhabitants. It is essential for maintaining the ecological balance and ensuring the survival of various species. Through conservation efforts, we can preserve natural habitats, reduce pollution, and promote sustainable practices. This not only benefits the environment but also contributes to the health and prosperity of human societies. By protecting our natural resources, weare ensuring a better future for generations to come.#### Section D: Listening ComprehensionAudio Script:A new study has found that regular exercise can significantly improve cognitive function in older adults. The research involved participants aged 65 and above who were asked to engage in moderate physical activity for 30 minutes a day,five days a week. After six months, the participants showed noticeable improvements in memory and attention span.Questions:1. Question: What is the main finding of the study?- (A) Exercise can improve cognitive function in older adults.- (B) Older adults should limit their physical activity.- (C) Memory and attention span decline with age.- (D) The study involved participants under the age of 65.Answer: (A) Exercise can improve cognitive function in older adults.2. Question: How long did the participants engage in physical activity each day?- (A) 15 minutes- (B) 30 minutes- (C) 45 minutes- (D) 60 minutesAnswer: (B) 30 minutesThis exam paper is designed to test a range of English language skills, including vocabulary, grammar, reading comprehension, writing, and listening comprehension. It is important for examinees to demonstrate their understanding and application of the language in various contexts.。

高中英语数据处理单选题30题

高中英语数据处理单选题30题

高中英语数据处理单选题30题1. In data processing, a(n) ______ is a set of related data.A. databaseB. datumC. data setD. data point答案:C。

本题考查数据处理中的基础词汇。

选项A“database”指数据库;选项B“datum”是数据的单数形式;选项C“data set”意为数据集,符合题意;选项D“data point”指数据点。

2. When handling large amounts of data, we often use ______ to organize and manage it.A. spreadsheetsB. graphsC. diagramsD. tables答案:A。

此题涉及数据处理中的常用工具。

选项A“spreadsheets”即电子表格,常用于处理大量数据;选项B“graphs”指图表;选项C“diagrams”意为图解;选项D“tables”指表格,但在处理大量数据时,电子表格更为常用。

3. The process of ______ data means removing incorrect or irrelevant information.A. cleaningB. sortingC. analyzingD. collecting答案:A。

本题考查数据处理的步骤。

选项A“cleaning”意为清理,即去除不正确或不相关的信息;选项B“sorting”是排序;选项C“analyzing”是分析;选项D“collecting”是收集。

4. To present data clearly, we can use ______ to show trends and patterns.A. chartsB. mapsC. picturesD. texts答案:A。

2021年XX学校《Access 2016数据库技术及应用》章节练习题带答案题库测试题模拟题复习题

2021年XX学校《Access 2016数据库技术及应用》章节练习题带答案题库测试题模拟题复习题

章节练习题第1章练习一、问答题1.简单叙述Access2016的功能特点?2. Access 2016 用户界面的三个主要组件是什么?3. Access2016主体结构包括哪几个对象?4. 说明数据库关系表的特点是什么?5. 窗体和报表的区别是什么??二、选择题1. Access2016主体对象不包括()。

A.表B.查询C.关系模型D.窗体2. 打开Access2016数据库时,应打开扩展名为()的文件。

A.mdaB.mdbC. accdbD.DBF3.常见的数据库软件系统不包括()A.Access B.SQL C.Oracle D.DBMS4.在关系数据库中,显著的特征是()A.关系B.二维表C.有层次D.有结构5. 查询的结果是()A.关系B.二维表C.有层次D.有结构第2章练习一、问答题1. 什么是数据库管理系统?2. 在Access2016中创建数据库有哪几种方法?3. 关系数据库的特点包括什么?4. 建立数据库表间关系的目的是什么?5. 数据库设计包含哪几个步骤?6.数据库系统与文件管理系统相比,有哪些优点?7.说明“层次”、“网状”、和“关系”模型的特点。

8. 常用的一种数据模型是什么?9. 简述数据库,数据库管理系统,数据库系统三者的联系。

10. 数据模型的主要作用是什么?11. 三类基本数据模型的划分依据是什么?各有哪些优缺点?12. 什么是web数据库?其特点是什么?13. 关系模型的完整性规则有哪几类?试举例说明。

14. 关系运算分哪两大类?其具体含义是什么?15. 给出2NF,3NF,BCNF的形式化定义,并说明他们之间的区别和联系。

16. 什么叫关系模式分解?为什么需要关系模式分解?17. 模式分解要遵循什么准则?18. 关系数据库有哪些完整性规则,各包括哪些内容?19. 用E-R图表示概念模式有什么好处?20.规范化理论对数据库设计有什么指导意义?二、选择题1. ACCESS的数据库类型是()A.层次数据库B.网状数据库C.关系数据库D.面向对象数据库2. 关系型数据库管理系统中所谓的关系是指()A.各条记录中的数据彼此有一定的关系B.一个数据库文件与另一个数据库文件之间有一定的关系C.数据模型符合满足一定条件的二维表格式D.数据库中各个字段之间彼此有一定的关系3. 下列说法中正确的是()A.两个实体之间只能是一对一联系B.两个实体之间只能是一对多联系C.两个实体之间只能是多对多联系D.两个实体之间可以是以上三种之一的联系4. 数据库系统的核心是()A.数据模型B.数据库管理系统C.软件工具D.数据库5. 在数据库中能够唯一标识一个元组的属性或属性组称为A.记录B.字段C.域D.主键6. 为了合理组织数据,应遵从的数据原则是()A.一个表描述一个实体或实体间的一种联系B.表中的字段必须是原始数据和基本数据元素,并避免在之间出现重复字段C.用外部关键字保证有关联的表之间的联系D.以上各条件都包括7. 数据模型反映的是()A.事物本身的数据和相关事物之间的联系B.事物本省所包括的数据C.记录中所包含的全部数据D.记录本身的数据和相互关系8. 退出ACCESS数据库管理系统可以实用的快捷键是()A.ALT+F+X B.ALT+X C.CTRL+C D.CTRL+O9. 在ACCESS数据库中,表就是()A.关系B.记录C.索引D.数据库10. ACCESS中表和数据库的关系是()A.一个数据库可以包含多个表B.一个表只能包含两个数据库C.一个表可以包含多个数据库D.数据库就是数据表11. 将两个关系拼接成一个新的关系,产生的新关系中包含满足条件的元组,这种操作称为()A.选择B.投影C.连接D.并12. 按数据的组织形式,数据库的数据模型可分为三种模型,他们是()A.网状、关系和语义B.网状、关系和层次C.环状、关系和层次D.字段名、字段类型和记录13. “商品”和“顾客”两个实体集之间的联系一般是()A.一对一B.一对多C.多对多D.多对一14. 下列关于数据库系统的叙述中正确的是()A.数据库系统减少了数据冗余B.数据库系统避免了一切冗余C.数据库系统中数据的一致性是指数据类型一致D.数据库系统比文件系统能管理更多的数据15. 在数据库管理技术的发展过程中,经历了人工管理阶段、文件管理阶段和数据库系统阶段。

计算机等级考试四级数据库原理第16套试题及答案

计算机等级考试四级数据库原理第16套试题及答案

计算机等级考试四级数据库原理第16套试题及答案一、单项选择题(共30分;每题1分)1、下列关于信息的叙述中,哪一条是正确的()。

A)信息是数据的语法定义B)信息是数据的外延C)信息无法用物理符号表示D)信息是具有社会属性的资源2、下列关于数据库的叙述中,哪一条是错误的()。

A)数据库是大量相关数据的集合B)数据库中的数据在逻辑上要保持一致C)数据库中的数据按一定的数据模型组织、描述和存储D)数据库中的数据具有较小的冗余、以及较小的独立性3、1968年,IBM公司推出的数据库管理系统IMS是基于下列哪一种模型实现的()。

A)层次模型B)网状模型C)关系模型D)对象-关系模型4、数据模型一般不考虑下面哪一项要求()。

A)能比较真实地模拟现实世界B)充分考虑数据的安全性问题C)易于被人们所理解D)便于在计算机上实现5、下列关于概念层模型的叙述中,哪一条是错误的()。

A)概念层模型主要用于数据库设计中的概念设计B)概念层模型是一种语义抽象模型C)E-R模型是最常用的概念模型D)概念模型与具体的逻辑模型相关6、下列关于E-R图的叙述中,哪一条是错误的()。

A)E-R图提供了表示实体型、属性和联系的方法B)实体与属性之间用无向边相连C)实体有属性,联系没有属性D)实体型用矩形表示,矩形框内写有实体名7、下列关于关系数据结构的叙述中,哪一条是错误的()。

A)关系数据结构是关系数据模型的基本要素之一B)关系模型中数据的逻辑结构是一张二维表C)关系模型的数据结构单一D)在关系模型中实体间的联系通过指针来表示8、有两个关系模式,分别为学生登记表(学号,姓名,性别,年龄,系号),和系信息表(系号,系名,办公室,主任,电话)。

下列叙述中,哪一条是错误的()。

A)学生登记表是参照关系B)系信息表与学生登记表之间的联系是n:1联系C)学生登记表中的外码是“系号”D)系信息表是被参照关系9、学生关系STUDENT(s#,sname,sex,age,dept)中,主码为学号s#,则s#不能取空值。

高中英语数据处理练习题40题含答案解析

高中英语数据处理练习题40题含答案解析

高中英语数据处理练习题40题含答案解析1. In order to collect data for a research project, we can use a(n) _____.A.interviewB.observationC.experimentD.literature review答案解析:A 选项interview( 访谈)是一种数据收集方法,可以直接从被调查者那里获取信息;B 选项observation( 观察)主要是通过观察行为等收集数据;C 选项experiment( 实验)通常用于验证假设等收集数据;D 选项literature review( 文献综述)主要是对已有文献进行分析,不是直接的数据收集方法。

本题强调为研究项目收集数据,interview 比较符合。

2. When conducting a survey, which method is NOT a common way of data collection?A.distributing online questionnairesB.making phone callsC.guessing randomlyD.conducting face-to-face interviews答案解析:A 选项distributing online questionnaires( 发放在线问卷)是常见的数据收集方式;B 选项making phone calls( 打电话)也可以收集数据;D 选项conducting face-to-face interviews 进行面对面访谈)是常见方法。

C 选项guessing randomly( 随机猜测)不是数据收集的正确方法。

3. Which of the following is an effective way of data collection for understanding people's opinions?A.speculatingB.analyzing existing dataC.conducting a questionnaire surveyD.imagining答案解析:A 选项speculating( 猜测)和D 选项imagining( 想象)都不是有效的数据收集方法。

数据库模拟试题及答案(英文)

数据库模拟试题及答案(英文)

数据库模拟试题及答案(英⽂)Exam of Database Technology & Applications1. Describe the three levels and data independence.2. What are key constraints and foreign constraints?3. Explain LEFT JOIN, OUTER JOIN and INNER JOIN.4.For the following relation schema an d sets of FD’s: R is (A, B, C, D, E, F,G) with FD’s A-> B, B-> C, A-> E, CD->G.1) Identify the candidate key(s) for R.2) Identify the best normal form that R satisfies3) Decompose it in 3NF if necessary.5. Explain the ACID properties.6. Notown Records has decided to store information about musicians who perform on its albums (as well as other company data) in a database. The company has chosen to hire you as a database designer.●Each musician that records at Notown has an SSN, a name, an address, and aphone number.●Each instrument used in songs recorded at Notown has a name (e.g., guitar,synthesizer,flute) and a musical key (e.g., C, B-flat, E-flat).●Each album recorded on the Notown label has a title, a copyright date, a format(e.g.,CD or MC), and an album identifier.●Each song recorded at Notown has a title and an author.●Each musician may play several instruments, and a given instrument may beplayed by several musicians.●Each album has a number of songs on it, but no song may appear on more thanone album.●Each song is performed by one or more musicians, and a musician may perform anumber of songs.●Each album has exactly one musician who acts as its producer. A musician mayproduce several albums, of course.1) Defining the completed E-R diagram.2) Defining information for each relation.7. Consider the following relational schema and give T-SQL expressions for the following queries.Sailors(sid, sname, age)Boats(bid, bname, color)Reservers(sid, bid , day)1)Create the table Sailors (sid, sname , age). It includes the domain of values associated with each attribute and integrity constraints.2) Change the attribute sname V ARCHAR(12).3) Delete all tuples in the Sailors relation for sailors whose age is less than 18.4) Find the names of sailors who have reserved a boat on ‘2010-1-1’.5) Find the names of sailors who have reserved a red boat.6) Find the names of sailors who have reserved at least one boat.7) Find the sid of sailors who have reserved a red boat and a green boat.8) Find the names of sailors who have reserved all boats.8. Consider the Buys_computer Relation shown in Figure 1. The first four columns show the age and salary of a potential customer and the Buys_computer column shows whether the person buys a computer. We want to use this data to construct aANSWER1. The three levels are physical level, logical level and view level. Physical level describes all relations that are stored in the database. Logical level summarizes how the relations are actually stored on secondary storage devices. Each view level consists of a collection of one or more views and relations from the conceptual level.There are actually two mappings: the conceptual/internal mapping and the external/conceptual mapping. Theconceptual/internal mapping lies between the conceptual and internal levels. If the structure of the stored database is changed, then the conceptual/ internal mapping must also be changed accordingly so that the view from the conceptual level remains constant. It is thismapping that provides physical data independence for the database.The external/conceptual view lies between the external and conceptual levels. If the structure of the database at the conceptual level is changed, then the external/conceptual mapping must change accordingly so the view from the external level remains constant. It is this mapping that provides logical data independence for the database.2. Primary key constraints assure that the keys of any two records are not same in a table. The primary key constraints enforce the entity integrity of the table.Foreign key constraints control the data that can be stored in the foreign key table, it also controls changes to data in the primary key table. This constraint enforces referential integrity by ensuring that changes cannot be made to data in the primary key table if those changes invalidate the link to data in the foreign key table.3. The LEFT OUTER JOIN includes all rows in the left table in the results, whether or not there isa match on the join column in the right table.FULL OUTER JOIN includes all rows from both tables, regardless of whether or not the other table has a matching value.This INNER JOIN is known as an equi-join. It returns all the columns in both tables, and returns only the rows for which there is an equal value in the join column.4.1)(A,D) is the primary key for R2) R∈1NF3) R1(A,B,E) ,R2(B,C,F),R3(C,D,G)5. Atomicity: This property guarantees that a set of records that are part of a transaction is indivisible. Thus either all operations of the transaction are properly reflected in the database or none are.Consistency: Database consistency is the property that every transaction sees a consistent database instance. Database consistency follows from transaction atomicity, isolation, and transaction consistency.Isolation: Although multiple transactions may execute concurrently, each transaction must be unaware of other concurrently executing transactions. Intermediate transaction results must be hidden from other concurrently executed transactions.Durability: After a transaction completes successfully, the changes it has made to the database persist, even if there are system failures.6.1)2)musician (SSN, m_name, address, phone number.)instrument ( i_name, musical key)album (a_title, copyright date, format , album identifier, SSN)song ( s_title, author, a_title)play(SSN,i_name)produce(SSN, s_title)7.1)CREATE TABLE Sailors(sid INT PRIMARY KEY,sname VARCHAR(10) NOT NULL,age INT CHECK( age BETWWEN 0 AND 100))2) ALTER TABLE Sailors ALTER COLUMN sname V ARCHAR(12)3) DELETE FROM Sailors WHERE age<184) SELECT sname FROM Sailors S JOIN Reserves R ON S.sid=R.sid WHERE rday='2010-1-1'5) SELECT snameFROM Sailors S JOIN Reserves R ON S.sid=R.sidJOIN Boats B ON B.bid=R.bidWHERE color='red'6) SELECT snameFROM Sailors S JOIN Reserves R ON S.sid=R.sid7) SELECT snameFROM Sailors S1 JOIN Reserves R1 ON S1.sid=R1.sid JOIN Boats B1 ON B1.bid=R1.bid WHERE B1.color='red' AND sid IN(SELECT sid FROM Sailors S2 JOIN Reserves R2 ON S2.sid=R2.sid JOIN Boats B2ON B2.bid=R2.bid WHERE B2.color='green' )8) SELECT sname FROM Sailors S WHERE NOT EXISTS(SELECT * FROM Boats B WHERE NOT EXISTS (SELECT * FROM Reserves R WHERE R.bid=B.bid AND R.sid=S.sid)) 8.Info(D)= —149log 2(149)—145log 2(145)=0.940 Info age (D)= 145×(—52log 2(52)—53log 2(53)) + 144×(—44log 2(44)—40log 2(40 ))+145×(—53log 2(53)—52log 2(52))=0.694 Gain (age )= Info(D)—Info age (D)=0.246 Info salary (D)=154 ×(—43log 2(43)—41log 2(41) ) + 156× (—64log 2(64)—62log 2(62)) + 154×(—42log 2(42)—42log 2(42))=0.911 Gain (salary )= Info(D)—Info salary (D)=0.029。

高中英语数据处理单选题30题

高中英语数据处理单选题30题

高中英语数据处理单选题30题1. When collecting data, we need to make sure the information is _____.A. accurateB. inaccurateC. approximatelyD. inaccurately答案:A。

本题考查形容词的用法。

“accurate”表示“准确的”,符合收集数据时对信息的要求。

“inaccurate”表示“不准确的”,与题意相悖。

“approximately”是副词“大约”,不符合此处语境。

“inaccurately”是副词形式,也不正确,此处需要形容词修饰“information”。

2. In the process of data collection, we should ______ all the relevant details.A. includeB. excludeC. concludeD. refuse答案:A。

“include”意思是“包括”,在数据收集过程中应该包括所有相关细节。

“exclude”表示“排除”,不符合。

“conclude”意为“得出结论”。

“refuse”是“拒绝”,均不符合数据收集的语境。

3. Before整理data, we need to ______ it first.A. classifyB. realizeC. recognizeD. memorize答案:A。

“classify”有“分类”的意思,整理数据前先分类。

“realize”是“意识到”,“recognize”是“认出”,“memorize”是“记住”,都不符合整理数据前的动作。

4. To collect useful data, we have to ______ a proper method.A. chooseB. loseC. refuseD. use答案:A。

“choose”是“选择”,收集有用数据要选择合适方法。

高中英语数据处理单选题30题

高中英语数据处理单选题30题

高中英语数据处理单选题30题1.There are various methods for data collection. We can use questionnaires, interviews or _____.A.observationsB.inventionsC.invitationsD.instructions答案:A。

本题考查数据收集的方法。

选项A“observations”(观察)是数据收集的一种方法;选项B“inventions”( 发明)与数据收集无关;选项C“invitations”(邀请)和选项D“instructions”(说明)也与数据收集场景不相关。

2.When collecting data, we should ensure its _____.A.quantityB.qualityC.quantity and qualityD.neither quantity nor quality答案:C。

数据收集时我们应该确保其数量和质量。

选项A 只提到数量;选项 B 只提到质量;选项 D 既不数量也不质量不符合数据收集的要求。

3.The first step in data collection is to _____.A.analyze the dataB.collect the dataC.define the problemD.present the data答案:C。

数据收集的第一步是定义问题。

选项A“analyze the data” 分析数据)是在收集后进行;选项B“collect the data” 收集数据)不是第一步;选项D“present the data” 展示数据)在收集之后。

4.Which of the following is NOT a way of collecting data?A.Making assumptionsB.Doing experimentsC.Conducting surveysD.Observing phenomena答案:A。

MySQL数据库考试试题及答案

MySQL数据库考试试题及答案

专业:移动通信科目:MySQL数据库一、单项选择题1.以下聚合函数求数据总和的是( )A.MAXB.SUMC.COUNTD.AVG答案:B2.可以用( )来声明游标A.CREATE CURSORB.ALTER CURSORC.SET CURSORD.DECLARE CURSOR答案:D3.SELECT语句的完整语法较复杂,但至少包括的部分是( )A.仅SELECTB.SELECT,FROMC.SELECT,GROUPD.SELECT,INTO答案:B4.SQL语句中的条件用以下哪一项来表达( )A.THENB.WHILEC.WHERED.IF答案:C5.使用CREATE TABLE语句的( )子句,在创建基本表时可以启用全文本搜索A.FULLTEXTB.ENGINEC.FROMD.WHRER答案:A6.以下能够删除一列的是( )A.alter table emp remove addcolumnB.alter table emp drop column addcolumnC.alter table emp delete column addcolumnD.alter table emp delete addcolumn答案:B7.若要撤销数据库中已经存在的表S,可用()。

A.DELETE TABLE SB.DELETE SC.DROP SD.DROP TABLE S答案:D8.查找表结构用以下哪一项( )A.FINDB.SELETEC.ALTERD.DESC答案:D9.要得到最后一句SELECT查询到的总行数,可以使用的函数是( ) A.FOUND_ROWSB.LAST_ROWSC.ROW_COUNTD.LAST_INSERT_ID答案:A10.在视图上不能完成的操作是( )A.查询B.在视图上定义新的视图C.更新视图D.在视图上定义新的表答案:D11.UNIQUE惟一索引的作用是( )A.保证各行在该索引上的值都不得重复B.保证各行在该索引上的值不得为NULLC.保证参加惟一索引的各列,不得再参加其他的索引D.保证惟一索引不能被删除答案:A12.用于将事务处理写到数据库的命令是( )A.insertB.rollbackC.commitD.savepoint答案:C13.查找条件为:姓名不是NULL的记录( )A.WHERE NAME ! NULLB.WHERE NAME NOT NULLC.WHERE NAME IS NOT NULLD.WHERE NAME!=NULL答案:C14.主键的建立有( )种方法A.一B.四C.二D.三答案:D15.在视图上不能完成的操作是( )A.更新视图数据B.在视图上定义新的基本表C.在视图上定义新的视图D.查询答案:B16.在SQL语言中,子查询是()。

数据库试题 英文卷

数据库试题 英文卷

哈尔滨理工大学2007- 2008学年 第一学期考试试题 B 卷 软件学院软件工程系 出题教师: 刘欢 系主任:蒋慧民考试科目: 数据库系统 考试时间:120分钟 试卷总分100分 考试班级: 题号 I II III IV V 总分 得分 评卷教师 I . Blank-filling questions in DBS situation.(2 marks × 15 = 30 marks ) 1、To illustrate the concept of a data model, we outline two data models in this section : the _________________ model and the _____________ model. 2、Since many database-systems users are not computer trained, developers hide the complexity from users through several levels of abstraction, to simplify users‟ interactions with the system:________ level, _______ level and view level. 3、A database system provides a language to specify the database schema and a data manipulation language to express database queries and updates. 4、Assume that we have 100 tuples in table A and 100 tuples in table B,then there are tuples in A B. 5、Indices whose search key specifies an order different from the sequential order of the file are called secondary indices,also called indices. 6、There are two modes in which a data item may be locked, shared and . 7、An index record consists of a search-key value and to one or more records with value as their search-key value. 8、There are four different types of database-system users :_______________,_________________, sophisticated users and specialized users.9、A _____________ is a unit of program execution that accesses and possibly updates various data items.10、A data _________ is a file that stores metadata about the structure of the database.11、A database-management system is a collection of interrelated _________ and a set of ________ to access those data.II . Briefly-answer questions. ( 5 marks × 4 = 20 marks)1、Given the following relation SCT and two functional dependencies:软件专业班级:学号:姓名:Is the relation schema in BCNF? Why? If it isn‟t, decompose it into BCNF.2、Please list the five duties of a database administrator.3、Please give the definition of “trigger” in database system.4、Explain the distinctions among the terms superkey, candidate key and primary key.III.C omplete the following queries in the relational algebra. ( 4 marks × 3 =12 marks)Consider the relational database of a banking enterprise with the following relation schemas, where the primary keys are underlined.branch (branch_name, branch_city, assets)customer (customer_name, customer_street, customer_city)loan (loan_number, branch_name, amount)borrower (customer_name, loan_number)account (account_number, branch_name, balance)depositor (customer_name, account_number)1、Find the names of all customers who have a loan, an account, or both, from the bank.2、Delete all account records in the Perryridge branch.3、Insert information in the database specifying that Smith has $1200 in account A-973 at the Perryridge branch.IV.Answer the following questions and queries in SQL. ( 4 marks ×5 = 20marks)From the database schema above, give an expression in SQL for each of queries 2, 3, 4 and 5.1.Define the relation …account‟ in SQL.Tip: Describe primary keys, foreign keys and check constrains if necessary. 2.To find all loan number for loans made at the Perryridge branch with loanamounts greater than $1200.3.Find all customers who have both a loan and an account4.Find the names of all branches where the average account balance is morethan $1,200.哈尔滨理工大学2007-2008学年第一学期考试试题B卷5.Find all loan number which appear in the loan relation with null values foramountV.Resolve the following questions of designing. (10marks+8marks =18marks) A university registrar‟s office maintains data about the following entities:(a)students,including student-id,name, sex,age,class.(b)instructors,including id,name,and title.(c)courses,including c-number,title,credits.(d)department,including d-number,name,director,telephone.The relations among the entities are:(a)There are many instructors, students and courses in a department. Ainstructor can work in one department at most. A student can study in one and only one department. A course can only belong to a single department, too.(b)A student can take several courses as elective courses. A course can be takenas an elective course by some students. Grades awarded to students in each course must be enrolled.(c)An instructor can teach a few courses, a course can be taught by someinstructors in each semester.1.Construct an E-R diagram for the university registrar‟s office. Express the mapping constraints.( 10marks)2.Design a relational database corresponding to the preceding E-R diagram.List their primary keys and foreign keys. ( 8marks)。

数据库英语综合测试题15

数据库英语综合测试题15

Part 1:True or False1.The relational data model was proposed by Dr. Edgar Codd in early 1970’s.2.Schema normalization not only reduces potential data redundancy but alsoenhances query efficiency.3.SQL stands for Structured Query Language.4.Any relationship satisfying referential integrity constraint will satisfy single valueconstraint as well.5. A schema in BCNF will be in 3NF as well.6.If A → B and C → D hold, then AC → BD also holds.7.Given a relation with attributes A, B, C, D, E : if AB → C, BC → AD, and D → Ehold, then AB is a key.8.SQL is a declarative query language, in which we simply declare what we want,but not how to compute, in formulating a query.9.With the six basic operations (union, difference, selection, projection, product,and renaming),relational algebra is Turing complete. Other operations are just syntactic sugar and can be derived from the basic operations.10.In SQL, a view can be used like a stored relation in any operations.11.In SQL, the value NULL is ignored in any aggregation.12.For any SQL query, there exists a unique translation into relation algebra.13.An aggregate function, e.g., Sum and Avg, returns a value computed from a set ofvalues. Thus, Min and Max are not aggregate, since they only return a singlevalue.14.If two relations are both in BCNF, their join must also be in BCNF.15.When translating an E-R diagram to the relational model, there are multiple waysto translate a sub-class relationship.16.Schema normalization is a technique that will lead to more efficient queryprocessing.17.An E-R diagram with m entities and n relationships will translate to m+n tables.18.A table with two attributes, such as R(A,B), must be in BCNF.19.In relational algebra, join is a derived operator.20.Schema normalization often contributes to enhancement of query processingefficiency.21.For relation R(A,B,C), if A is a key, then the decomposition into R(A,B) and。

计算机等级考试三级数据库技术第16套试题及答案

计算机等级考试三级数据库技术第16套试题及答案

计算机等级考试三级数据库技术第16套试题及答案一、单项选择题(共40分;1-20题每题1分,21-30题每题2分)1、在数据库应用系统分析与设计中,事务规范可以用来表示数据库应用系统的()。

A)业务规则需求B)安全性需求C)性能需求D)数据处理需求2、下列不属于数据库应用系统日常维护工作的是()。

A)备份与恢复B)模式调整C)完整性检查D)安全性维护3、数据流图必须是正确的、一致的。

下列关于数据流图的说法,错误的是()A)一个处理必须有唯一的输入流和输出流B)一个存储必须有流入的数据流和流出的数据流C)父图中描述过的数据流必须在相应的子图中出现D)一个数据流至少有一端是处理框4、对关系模式进行去规范化处理,这属于数据库结构设计中的()。

A)概念结构设计B)逻辑结构设计C)物理结构设计D)存取结构设计5、从功能角度数据库应用系统可以划分为四个层次来实现。

在B/S体系结构的数据库应用系统中,Web浏览器实现的是()。

A)表示层功能B)业务逻辑层功能C)数据持久层功能D)数据访问层功能6、在编写事务时尽量使所有事务都按照相同顺序访问资源,这样做的主要好处是()A)降低了发生活锁的可能性B)降低了发生死锁的可能性C)提高了事务的并发度D)提高了系统的事务吞吐率7、下列关于选择在哪些属性上建立索引的说法,错误的是()。

A)在group by后面出现的分组属性B)在where后面出现的筛选属性C)在select后面出现的查询属性D)在order by后面出现的排序属性8、在IDEF1X数据建模方法中,学生和图书之间的“借阅”多对多联系属于()。

A)标定型联系B)非标定型联系C)分类联系D)非确定联系9、在UML中,系统的微观设计可用对象图、状态机图和时间图从不同的侧面进行表达。

下列关于系统的微观设计说法,错误的是()。

A)状态机图用于陈述系统有关事件或对象的状态转移,可以有一个或多个起始状态,也可以有多个结束状态B)对象图可以看成是系统在某一时间点的快照,用于描述特定时间点上所有对象在系统中的结构C)一般情况下,时间图作为状态机图的辅助说明工具,一张时间图通常会对应至少一张状态图D)对象图主要用于解释类图以及验证所设计的类图是否符合实际状况,也可用于协助程序设计人员理解复杂的类图结构10、设在SQL Server2008某数据库中有商品表(商品号,商品名,类别,单价)和销售表(商品号,销售时间,销售数量)。

数据库英语综合测试题15答案免费范文精选

数据库英语综合测试题15答案免费范文精选

Part 1:True or False1. The relational data model was proposed by Dr. Edgar Codd in early 1970¨s.2. Schema normalization not only reduces potential data redundancy but alsoenhances query efficiency.3. SQL stands for Structured Query Language.4. Any relationship satisfying referential integrity constraint will satisfy single valueconstraint as well.5. A schema in BCNF will be in 3NF as well.6. If A ★ B and C ★ D hold, then AC ★ BD also holds.7. Given a relation with attributes A, B, C, D, E : if AB ★ C, BC ★ AD, and D ★ Ehold, then AB is a key.8. SQL is a declarative query language, in which we simply declare what we want,but not how to compute, in formulating a query.9. With the six basic operations (union, difference, selection, projection, product,and renaming),relational algebra is Turing complete. Other operations are just syntactic sugar and can be derived from the basic operations.10. In SQL, a view can be used like a stored relation in any operations.11. In SQL, the value NULL is ignored in any aggregation.12. For any SQL query, there exists a unique translation into relation algebra.13. An aggregate function, e.g., Sum and Avg, returns a value computed from a set ofvalues. Thus, Min and Max are not aggregate, since they only return a single value.14. If two relations are both in BCNF, their join must also be in BCNF.15. When translating an E-R diagram to the relational model, there are multiple waysto translate a sub-class relationship.16. Schema normalization is a technique that will lead to more efficient queryprocessing.17. An E-R diagram with m entities and n relationships will translate to m+n tables.18. A table with two attributes, such as R(A,B), must be in BCNF.19. In relational algebra, join is a derived operator.20. Schema normalization often contributes to enhancement of query processingefficiency.21. For relation R(A,B,C), if A is a key, then the decomposition into R(A,B) and。

高二英语数据分析单选题50题

高二英语数据分析单选题50题

高二英语数据分析单选题50题1.The most common data types are numbers, text and _____.A.picturesB.graphsC.booleansD.sounds答案:C。

本题考查常见数据类型。

选项A“pictures”( 图片)、选项B“graphs” 图表)和选项D“sounds” 声音)都不是常见的数据类型。

而选项C“booleans” 布尔值)与数字、文本一起是最常见的数据类型之一。

2.Which of the following is a statistical method for analyzing data?A.DrawingB.WritingC.CountingD.Painting答案:C。

本题考查统计方法。

选项A“Drawing”(绘画)、选项B“Writing”(写作)和选项D“Painting”(绘画)都不是统计方法。

而选项C“Counting” 计数)是一种基本的统计方法。

3.Data analysis often involves collecting, organizing and ____ data.A.analyzingB.readingC.watchingD.listening答案:A。

本题考查数据分析的流程。

数据分析通常包括收集、组织和分析数据。

选项B“reading”( 阅读)、选项C“watching”( 观看)和选项D“listening” 听)与数据分析的流程不相关。

4.One of the main purposes of data analysis is to find ____.A.problemsB.solutionsC.patternsD.questions答案:C。

本题考查数据分析的目的。

数据分析的主要目的之一是发现模式。

选项A“problems”(问题)、选项B“solutions”(解决方案)和选项D“questions” 问题)不是数据分析的主要目的。

高中英语数据处理单选题50题

高中英语数据处理单选题50题

高中英语数据处理单选题50题1. We can collect data by doing surveys, interviewing people or _____.ing the interneted the internete the internetD.to use the internet答案:C。

本题考查并列结构。

by 后面接doing 形式,or 连接的部分也应该与前面保持一致,用动词原形use。

A 选项using the internet 形式不对;B 选项used the internet 是过去式,不符合;D 选项to use the internet 是不定式,也不符合要求。

2. Which way is not a common method of collecting data?A.Reading booksB.Watching moviesC.Doing experimentsD.Making predictions答案:D。

本题考查数据收集方法。

A 选项Reading books 可以收集书中的数据信息;B 选项Watching movies 可以收集关于电影的一些数据;C 选项Doing experiments 是一种常见的数据收集方式;D 选项Making predictions 是预测,不是数据收集方法。

3. Data can be collected through questionnaires, observations and _____.A.experimentsB.experimentingC.experimentedD.to experiment答案:A。

本题考查并列结构。

through 后面接名词,questionnaires 和observations 都是名词,所以此处也应填名词experiments。

B 选项experimenting 是动词的现在分词形式;C 选项experimented 是过去式或过去分词;D 选项to experiment 是不定式,都不符合。

高中英语数据处理练习题20题含答案解析

高中英语数据处理练习题20题含答案解析

高中英语数据处理练习题20题含答案解析1.The bar chart shows the sales of different products. Product A sold 50 units. Product B sold 30 units. Product C sold 40 units. Which product had the highest sales?A.Product AB.Product BC.Product C答案解析:A。

题干中明确指出Product A 卖了50 单位,Product B 卖了30 单位,Product C 卖了40 单位,所以Product A 销量最高。

2.The pie chart shows the percentage of students who like different subjects. Math is 30%. Science is 25%. English is 45%. Which subject is liked by the most students?A.MathB.ScienceC.English答案解析:C。

饼图中显示喜欢英语的学生占比45%,高于数学的30%和科学的25%,所以喜欢英语的学生最多。

3.The line graph shows the temperature changes over a week. On Monday, it was 20 degrees. On Tuesday, it was 22 degrees. On Wednesday, it was 21 degrees. Which day had the highest temperature?A.MondayB.TuesdayC.Wednesday答案解析:B。

根据折线图可知,周一温度20 度,周二22 度,周三21 度,周二温度最高。

高中英语数据处理单选题30题

高中英语数据处理单选题30题

高中英语数据处理单选题30题1.The company is trying to collect data through _____.A.interviewsB.interviewingC.interviewedD.to interview答案:A。

本题考查介词后的名词用法。

through 是介词,后面需要接名词。

选项A“interviews”是名词复数形式,符合语法;选项B“interviewing”是动名词形式,一般不与through 搭配;选项C“interviewed”是过去分词,不能单独作宾语;选项D“to interview”是动词不定式,也不与through 搭配。

2.We need to collect data from different _____.A.sourcesB.resourceC.resourcesD.sourcing答案:A。

本题考查词汇辨析。

“data”通常与“sources”搭配,表示“数据来源”;选项B“resource”主要指资源,与数据不搭配;选项C“resources”也主要指资源,且单复数形式与本题语境不符;选项D“sourcing”是动词“source”的现在分词形式,不是名词形式。

3._____ is an important way to collect data.A.SurveyB.SurveysC.SurveyingD.To survey答案:C。

本题考查动名词作主语的用法。

“Surveying”动名词形式可以作主语;选项A“Survey”是名词单数形式,作主语时需有特定语境;选项B“Surveys”是名词复数形式,作主语时通常表示多个调查,但不如动名词形式更符合语法;选项D“To survey”是动词不定式,一般表示目的,不太适合作主语。

4.The researchers are using questionnaires to collect data. The questionnaires are distributed to _____.A.participantsB.participatesC.participatingD.participation答案:A。

高三英语英语学习大数据分析练习题40题(带答案)

高三英语英语学习大数据分析练习题40题(带答案)

高三英语英语学习大数据分析练习题40题(带答案)1. In the big data analysis of English learning, the term “data - driven” is often used. Which of the following sentences uses this term correctly?A. Our English study is data - driven, which means we rely on instincts rather than data.B. A data - driven approach in English learning means making decisions based on data analysis.C. Data - driven English learning ignores all traditional methods.D. The data - driven method in English learning only focuses on grammar data.答案解析:B。

“data - driven”的意思是“数据驱动的”。

在英语学习中,数据驱动的方法意味着基于数据分析来做决策。

A选项中说依赖本能而非数据,与“data - driven”的含义相悖;C选项说数据驱动的英语学习忽略所有传统方法过于绝对;D选项说只关注语法数据太片面。

2. Big data shows that the frequency of certain words can reflect their importance in English learning. The word “frequency” here means _.A. 频率;频繁程度B. 长度C. 难度D. 宽度答案解析:A。

“frequency”的基本含义是“频率;频繁程度”,在大数据显示某些单词的频率能反映它们在英语学习中的重要性这个语境中,就是指单词出现的频率,B、C、D选项均不符合该词在此处的意义。

关系数据库试题(英文版以及答案)

关系数据库试题(英文版以及答案)

关系数据库(高级)01一、填空题(每空2分,共20分)1. Once a user enters the data for his transaction, he can either commit the transaction to make the changes permanent or ______________________ the transaction to undo the changes.2. SQL consists of three components:Data Definition Language (DDL)Data Manipulation Language (DML)___________________________3. By use of the SQL statement ALTER, delete the column Item_Size from the table ITEMCOPY.__________________________________________________________________4. Using the SELECT option of the SQL statement CREATE TABLE, create a table named ITEMCOPY which is a copy of the table ITEM.__________________________________________________________________ 5. Create an index for the following column that allows duplicate data to be entered:Table: HOME Column: Home_Name__________________________________________________________________6. Create a view named ITEM_PRICELIST, on the table ITEM, which only includes the columns:Item_No, Item_Description, Item_Wholesale_Price, Item_Retail_Priceand sorts the result by the Item_Description.__________________________________________________________________ 7. Assign the appropriate privileges on the table ITEMCOPY to the last one of the users detailed below(HN92):__________________________________________________________________8. Create a synonym named ANOTHER_ITEM on the table ITEMCOPY.__________________________________________________________________ 9. Insert the following record into the Franchise table:Franchise No MF999Franchise Name Mature Fashions (Shetlands)Franchise Address 1, Lonely Spot, LerwickFranchise Postcode 2E1 1AAFranchise Tel 01595 1245Franchise Fax 01595 2356Franchise Start Date 22nd January 2002__________________________________________________________________ 10.Update the above record and change the address to 1, Main Street, Lerwick and the Start Date 15th February 2002.__________________________________________________________________二、判断以下的说法是否正确,如果正确,将在括号中,填入T(TRUE),否则,填入F(FALSE)。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Part 3: Questions and Answers1.Consider the following relational schema:student (student no, _rst name, last name)book (isbn, title, authors, publisher, year)loan (student no, isbn, checkout date, duration)Use SQL to write the following queries:A. Create the table for the book table appropriate domain and required contraints.B. Change the data type of the checkout date attribute of the loan table to date.C. Add a constraint into the loan table to make sure the loan duration is no more than 180 days.D. Grant Arvil and Amy select and update authrorization on the book table.2.What are 6 basic operators of relational algebra?3.Explain how natural-join operation can be accomplished by basic relational algebra operations?4.Explain how the division operation can be accomplished by basic relational algebra operations?5.The database of a research center contains the following three tables about employees,projects, and the time spent by the employees on the projects. Employee(ssn: int, name: string, jobTitle: string)Project(pid: int, name: string, sponsor: string, startYear: int, endYear: int) WorkedOn(ssn: int, pid: int, year: int, month: int, noHours: int).The table Employee lists all the employees of the centre. The table Project lists all the projects of the centre with their sponsor and the start and end year of the project. The table WorkedOn records how many hours the employees have spent on which project in which month. For each table, the attributes that make up the primary key are underlined.Express each of the following queries in relational algebra.A. Return the names of the projects that were active in 2008.B. Return the names of those programmers who in some month spent more than 60 hours on a project sponsored by the EU.C.Return the names of those programmers who never worked on a project sponsored by the EU.6.Consider the relational schema of Question 5. Write SQL queries over this schema that answer the following questions.A. How many projects that were active in 2008 were sponsored by the EU?B. For each project, year, and month, how many hours of work have been spent? (Return only data for a project, year and month if some time has been spent.)C. How many programmers are there who have experience in working on a project sponsored by the EU? (Note that a programmer who worked on two or more projects should be counted only once.)D. Return the names of the programmers who worked on no more than two projects sponsored by the EU. (Note that this includes the programmers who never worked on any project sponsored by the EU.)E. Which programmer(s) spent the maximal total number of hours on EU projectsamong all programmers working on EU projects?7.Consider the following relation that keeps track of the bookings in a hotel: Booking(guestID, guestName, creditCard, roomNo, roomCat, from, to).Suppose the following functional dependencies hold on the relation:guestID → guestName, creditCardroomNo → roomCatroomNo, from → guestID, toroomNo, to → guestID, from.A. Decompose the relation in smaller relations such that– each of the smaller relations is in BNCF with respect to the projection of the original dependencies;– the decomposition is a lossless join decomposition.B.Is your decomposition dependency preserving? If your answer is “yes”, argue why. If y our answer is “no”, show which dependencies have been lost.8.Draw an ER diagram that captures all the following information:_ Patients are identified by an SSN, and their names, addresses and ages must be recorded._ Doctors are identified by an SSN. For each doctor, the name, specialty and years of experience must be recorded._ Each pharmacy has a name, address and phone number. A pharmacy must have a manager._ A pharmacist is identified by an SSN, he/she can only work for one pharmacy. For eachpharmacist, the name, qualification must be recorded._ For each drug, the trade name and formula must be recorded._ Every patient has a primary physician. Every doctor has at least one patient._ Each pharmacy sells several drugs, and has a price for each. A drug could be sold at several pharmacies, and the price could vary from one pharmacy to another._ Doctors prescribe drugs for patients. A doctor could prescribe one or more drugs for several patients, and a patient could obtain prescriptions from several doctors. Each prescription has a date and quantity associated with it.9.Convert the following E/R design (for a simple banking application) into a relational design. Give the relational design as a relational diagram with arrows to indicate the foreign key relationships. Underline all attributes that correspond to primary keys.。

相关文档
最新文档