C15110课后测验
2011年1月C++统考试卷_B

华中农业大学本科课程考试试卷考试课程: C++语言程序设计 学年学期:2010-2011-1一、单项选择题(从下列各题四个备选答案中选出一个正确答案,并将其字母代号写在下面的表格中。
答案错选或未选者,该1. 下面合法的变量名是________。
【 】A. doB. 3xC. Books_PriceD.-x2. ________不是面向对象程序设计的主要特征。
【 】 A .封装 B .继承 C .多态 D .结构3. 下面的________不是转义字符。
【 】A .\\B .\nC .\0D .\ff4. 预处理命令都是以________开头的。
【 】 A. * B. # C. : D./5. 每个C++程序中都必须包含有这样一个名为________函数。
【 】 A. main B. MAIN C. Name D. function6. x 和y 均为bool 类型的变量,则x && y 为真的条件是________。
【 】 A. x 和y 均为真 B. x 和y 有一个为真 C. x 和y 均为假 D. x 和y 有一个为假 7. 逻辑运算符两侧运算对象的数据类型________。
【 】 A. 只能是0或1 B. 只能是0或非0正数C .只能是整型或字符型的数据 D. 可以是任何类型的数据8. 有变量定义语句为int i=2.8*6;得到的i 的结果为________。
【 】 A. 12 B. 16 C .17 D. 189. 循环体至少要执行一次的语句为________。
【 】 A. for 循环 B. while 循环 C .do … while 循环 D. 任意一种循环10.下面关于break 语句功能的叙述中,正确的是________。
【 】 A. 在switch 语句中必须使用break 语句 B. break 语句只能用于switch 语句中………………………………… 装 ……………………………… 订 ……………………………… 线 …………………………………C. break语句只能用于循环语句中D. break语句只能用于循环语句和switch语句中11.C++语言规定,函数返回值的类型是由________。
C15030课后测试100分

C15030课后测试100分第一篇:C15030课后测试100分试题一、单项选择题1.下列关于反垄断法所禁止的垄断协议的说法错误的是()。
A.横向垄断协议是在生产或销售过程中处于同一阶段的企业之间订立的关于购买、销售特定商品或服务的限制竞争协议B.相关市场的认定是反垄断法律制度中所涉及的违法行为首先需要认定的问题C.横向垄断协议和纵向垄断协议执法的标准和规则是不同的D.混合协议是处于不同生产或销售阶段的企业之间订立的关于购买、销售特定商品或服务的限制竞争协议描述:null 您的答案:D 题目分数:10 此题得分:10.0 2.下列有关全球反垄断立法发展的进程,描述不正确的是()。
A.上世纪八十年代,北美、欧洲部分国家以及日本率先实行了反垄断法B.进入21世纪以来,实行反垄断法已逐渐成为世界通行趋势C.上世纪六十年代,日本实行反垄断法,是亚洲地区最早实行反垄断法的国家D.澳大利亚于上上世纪八十年代开始实行反垄断法描述:null 您的答案:A 题目分数:10 此题得分:10.0二、多项选择题3.认定其他协同行为,应当考虑以下()等方面因素。
A.经营者的市场行为是否具有一致性B.经营者之间是否进行过意思联络或者信息交流C.经营者能否对一致行为作出合理的解释D.相关市场的结构情况、竞争状况、市场变化情况、行业情况描述:null 您的答案:B,C,A,D 题目分数:10 此题得分:10.0 4.以下属于我国反垄断法禁止的具有竞争关系的经营者达成的垄断协议的是()。
A.固定或者变更商品价格B.限制商品的生产数量或者销售数量C.分割销售市场或者原材料采购市场D.限制购买新技术、新设备或者限制开发新技术、新产品描述:null 您的答案:B,D,A,C 题目分数:10 此题得分:10.0 5.下列情形中,属于我国反垄断法规定的豁免和例外情形的是()。
A.经营者能够证明所达成的协议属于为改进技术、研究开发新产品的B.经营者能够证明所达成的协议属于为提高产品质量、降低成本、增进效率,统一产品规格、标准或者实行专业化分工的C.经营者能够证明所达成的协议属于为提高中小经营者经营效率,增强中小经营者竞争力的D.经营者能够证明所达成的协议属于为实现节约能源、保护环境、救灾救助等社会公共利益的描述:null 您的答案:D,C,A,B 题目分数:10 此题得分:10.0 6.关于《谢尔曼法》,下列表述正确的是()。
C++程序设计实践_北京科技大学中国大学mooc课后章节答案期末考试题库2023年

C++程序设计实践_北京科技大学中国大学mooc课后章节答案期末考试题库2023年1.Raptor流程通过拖动顺序、选择、循环、赋值等流程图框进行算法描述,能够根据输入数据得到运行结果吗?答案:可以,只要raptor流程图正确描述了算法,九能够根据输入执行得到正确结果2.Hanoi塔问题,现要求将塔座A上的所有圆盘移到塔座B上,并仍按同样顺序叠置,移动圆盘时遵守Hanoi塔问题的移动规则,由此设计出解Hanoi塔问题的递归算法正确的是()答案:void Hanoi(int n, int A,int B,int C){ if(n>0){ Hanoi (n-1,A,C,B);Move(n,a,b); Hanoi(n-1,C,B,A);} }3.在寻找n个元素中第k小元素问题中,如快速排序算法思想,运用分治算法对n个元素进行划分,如何选择划分基准?下面()答案解释最合理。
答案:以上皆可行,但不同方法,算法复杂度上界可能不同4.使用分治法求解不需要满足的条件是( )。
答案:子问题必须是一样的5.实现合并排序利用的算法是( )答案:分治策略6.求递归次数,请问当调用f(10)时, f() 被调用()次?int f(int x) { if(x <= 2) return1; returnf(x - 2) + f(x -4) + 1; }答案:157.设计模式一般用来解决什么样的问题( )答案:同一问题的不同表相8.关于继承表述错误的是:()答案:继承本质上是“白盒复用”,对父类的修改,不会影响到子类。
9.应用设计模式的一个优点是【】。
答案:适应需求变化10.某公司欲开发一个软件系统的在线文档帮助系统,用户可以在任何一个查询上下文中输入查询关键字,如果当前查询环境下没有相关内容,则系统会将查询按照一定的顺序转发给其他查询环境。
基于上述需求,采用【】最为合适。
答案:责任链模式11.已知int a[10] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }, *p = a;,不能表示数组a中元素的式子是()。
重庆理工大学大一高等数学C1练习册答案

高等数学1C 习题解答习题一一.单项选择题1、A2、D3、C 二.填空题1、22)1(133-+-x x x 2、(-9,1)三.计算题 1、(1)解 函数要有意义,必须满足⎩⎨⎧≥-≠0102x x 即⎩⎨⎧≤≤-≠110x x 定义域为]1,0()0,1(⋃- (2)解 函数要有意义,必须满足⎪⎪⎩⎪⎪⎨⎧≤≤-≠≥-111003x x x 解得1-≤x 或31≤≤x 3.(1)解 由1-=x e y 得 1ln +=y x 交换x 、y 得反函数为1ln +=x y(2)解 由11+-=x x y 得 yyx -+=11 交换x 、y 得反函数为x x y -+=11 4.(1)解 只有t=0时,能;t 取其它值时,因为 112>+t ,x arcsin 无定义(2)解 不能,因为11≤≤-x ,此时121-=x y 无意义 5.解(1)12arccos 2-====x w w v v u ey u(2) 令22y y y += 则11ln 21+=+==x u u v v y x w e m m x v v u ey wu2)sin(32==+===6.解 ⎪⎩⎪⎨⎧-≤+≤<-+->-=1101)1(0)]([22x x x x x x x f g7.解 设c bx ax x f ++=2)(所以⎪⎩⎪⎨⎧==++=++41242c c b a c b a 解得 25214-===b a c习题二一.单项选择题1、A2、B3、D 二.填空题1、>12、单调增加 三.计算题1、(1)解 因为)(sin )sin()(x f x x x x x f ==--=- 所以函数是偶函数 (2)解 因为)()1ln(11ln )1ln()(222x f x x xx x x x f -=-+-=-+=++=-所以函数是奇函数(3)解 )(0)1(000)1(010001)(x f x x x x x x x x x x x f -=⎪⎩⎪⎨⎧>+-=<--=⎪⎩⎪⎨⎧<---=->-+-=- 所以函数是奇函数 2.解 因为 x x y 2cos 2121sin 2-== 而x 2cos 的周期为π,所以x y 2sin =是周期函数,周期为π 3.解 由h r V 231π=得23rv h π= 表面积: )0(919221226224222222≥++=++=+⋅+=r r v r r r r v r r r r h r s πππππππ四 证明 )()1()1(11)(x f e e e e e e x f xx x x x x -=+-=+-=--- 习题三一.单项选择题1、C2、C3、B4、C 二.填空题1、12、a3、≥4、2,05、1 三.判断正误1、对;2、对;3、错 四.(1) 证明 令12+=n nx n ε<=<+=-n nn n n x n 11022 只要ε1>n ,取]1[ε=N当N n >时,恒有ε<-0n x所以01lim2=+∞→n nn(2)证明 因为)0()(lim >=+∞→A A x f x ,对取定的2A=ε,存在M>0,当x>M 时,有 2)()(A A x f A x f <-<- 故当x>M 时,2)(A x f > 习题四一.单项选择题1、B2、B3、B4、D 二.填空题1、ae 2、0,6 3、6 4、2,-2 三.判断正误1、错;2、错;3、错; 四.计算题 1、原式=2112lim )1)(1()1)(2(lim11=+--=+---→→x x x x x x x x2、原式=01111lim11lim=++=+++∞→+∞→x xxx x x 3、原式=2311lim)1)(1()1)(1(lim32313231=+++=-+++-→→xx x x x x x x x x 4、原式=31)32(131)32(31lim )32(13233lim 1111=-⋅+=-++∞→++++∞→n n n n n n n n n 5、原式=]21)121121(21)5131(21)311[(lim ⋅+--++⋅-+⋅-+∞→n n n21)2112121(lim =⋅+-=∞→n n 6、、原式=23232223)12)(1(21lim 3)21(3lim n n n n n n nn n n -++=-+++∞→+∞→ 2132123lim 22=+=∞→n n n n 7、因为 0lim =-+∞→xx e1s i n ≤x 所以 0s i n lim =-+∞→x exx习题五一、1.B , 2.A, 3. B二、1.sin tan x x x << 2.0 三、1.(1)0sin 77lim tan 55x x x →=解:(2)0lim sin0x x xπ→=解:这是有界函数乘无穷小量,故(3)000sin 5sin 5115sin 55lim lim lim 1sin 3sin 3sin 31133x x x x x x x x x x xx x x x→→→---===-+++解: (4)00sin 1lim lim sin 1()x x x x x x++→→+=解:原式=后一项是无穷小量乘有界函数 2.(1)22222222222lim(1)lim[(1)]lim(1)1n nn n n e e n n n⨯+→∞→∞→∞=+=++==原式 (2)()1()1111lim(1)lim 1x x x x xx e ---∙-→∞→∞⎡⎤⎛⎫-=-=⎢⎥ ⎪⎝⎭⎢⎥⎣⎦原式= (3)22322(3)3332233lim(1)lim(1)22x x x x e x x -++-∙---→∞→∞⎡⎤-=-=⎢⎥++⎢⎥⎣⎦原式= (4)13330lim(13)xx x e ∙→=+=原式(中间思维过程同前)(5)222222lim ln()lim ln(1)lim ln(1)lim ln(1)1nn n n n n nn n n n nn∙→∞→∞→∞→∞+==+=+=+=原式 四.1.证明:2......n n π<+<+1,,.n n ==而故由夹逼准则知原式成立2.证明:只要证明原数列单调有界就可以达到目的()()2211112,110,0,.n n n n n n n n n n n n n n n x x x x x x x x x x x x x x x ++++=-+-=-=-->->>n 即而0<x <1,故即故数列单调递增且有界,极限存在.22212(21)11(1)1lim 1n n n n n n n n x x x x x x x +→∞=-+=--++=--<∴=习题六一、1.B,2.B,3.B,4.B,5。
51单片机复习题及参考答案答案.doc

R6,#100R7,#5R7,$R6QEL1A.@DPTRDPTR,#0FF2BH A,92HR1 .#27R2,#250R2,$R1QEL2RO,DEL1AJMP INT_T0ORG 0030HSTART:MOVSP,#60HMOV TMOD.#01HMOV TH0.#9EHMOV TL0.#58HMOV R0,#0MOV R1 .#20MOV SCON,#OOHSETB TROSETB ETOSETB EASJMP $INT_T0: MOV TL0.#58HMOV TH0,#9EHDJNZ R1,EXITMOV R1 .#20MOV A,#0B6HMOV SBURAMOV R6,#5DJNZ R6,$MOV A,#02HMOV SBURAEXIT: RETIEND10.每0.331s读一次开关,当开关K=0时在数码管上显示片外7003H单元的数据,K=1时显示片内10H 单元的数据。
用定时器定时。
1、程序文件名有什么规定?将试验箱与计算机联通有哪些操作步骤?连接失败如何处理解:文件名不能用中文,只能用英文字符、下划线及数字作为文件名,其字符总数不能大于8。
打开试验箱电源,然后按一下复位按钮,再按一下试验箱键盘上的“PCDBG”键即可。
若连接失败,重复上面操作,然后点击DVCC工具栏上的“连接”选项。
2、IN6接模拟最,Y4接地址线,写出启动0809进行A/D转换及读入数据的指令解:MOV A,#6MOV DPTR,#0C000HMOVX @DPTR、AMOVDELI: MOVDJNZDJNZMOVX3、欲将8255PA. PB 口设为输入(方式0), PC 口设为输出,写出相关指令。
解:MOVMOVMOVX @DPTR 44、已知0809参考电压为5V,输入的模拟电压为3.5V, 经A/D转换后,对应的数字鼠是多少?解:3.5/5 X 255= 178二B2H5、已知00H〜FFH对应的0832输出模拟量是-5V-+5V,若要输出 2.5V,写出相应指令。
华中师范大学职业与继续教育学院《组合数学》练习题库及答案

华中师范大学职业与继续教育学院《组合数学》练习题库及答案一、选择题1. 把101本书分给10名学生,则下列说法正确的是()A.有一名学生分得11本书B.至少有一名学生分得11本书C.至多有一名学生分得11本书D.有一名学生分得至少11本书2. 8人排队上车,其中A ,B 两人之间恰好有4人,则不同的排列方法是()A.!63⨯B.!64⨯C. !66⨯D. !68⨯3. 10名嘉宾和4名领导站成一排参加剪彩,其中领导不能相邻,则站位方法总数为()A.()4,11!10P ⨯B. ()4,9!10P ⨯C. ()4,10!10P ⨯D. !3!14-4. 把10个人分成两组,每组5人,共有多少种方法()A.⎪⎪⎭⎫ ⎝⎛510B.⎪⎪⎭⎫ ⎝⎛⎪⎪⎭⎫ ⎝⎛510510 C.⎪⎪⎭⎫ ⎝⎛49 D.⎪⎪⎭⎫⎝⎛⨯⎪⎪⎭⎫ ⎝⎛4949 5. 设x,y 均为正整数且20≤+y x ,则这样的有序数对()y x ,共有()个A.190B.200C.210D.2206. 仅由数字1,2,3组成的七位数中,相邻数字均不相同的七位数的个数是()A.128B.252C.343D.1927. 百位数字不是1且各位数字互异的三位数的个数为()A.576B.504C.720D.336 8. 设n 为正整数,则∑=⎪⎪⎭⎫ ⎝⎛nk k n 02等于()A.n 2B. 12-nC. n n 2⋅D. 12-⋅n n9. 设n 为正整数,则()k k n k k n 310⎪⎪⎭⎫ ⎝⎛-∑=的值是()A.n 2B. n 2-C. ()n 2-D.010. 设n 为正整数,则当2≥n 时,∑=⎪⎪⎭⎫ ⎝⎛-nk k k 22=()A.⎪⎪⎭⎫ ⎝⎛3nB. ⎪⎪⎭⎫ ⎝⎛+21n C. ⎪⎪⎭⎫ ⎝⎛+31n D. 22+⎪⎪⎭⎫ ⎝⎛n 11. ()632132x x x +-中23231x x x 的系数是()A.1440B.-1440C.0D.112. 在1和610之间只由数字1,2或3构成的整数个数为() A.2136- B. 2336- C. 2137- D. 2337- 13. 在1和300之间的整数中能被3或5整除的整数共有()个A.100B.120C.140D.16014. 已知(){}o n n f ≥是Fibonacci 数列且()()348,217==f f ,则()=10f ()A.89B.110C.144D.28815. 递推关系3143---=n n n a a a 的特征方程是()A.0432=+-x xB. 0432=-+x xC. 04323=+-x xD. 04323=-+x x16. 已知()⋯⋯=⨯+=,2,1,0232n a n n ,则当2≥n 时,=n a () A.2123--+n n a a B. 2123---n n a aC.2123--+-n n a aD. 2123----n n a a17. 递推关系()⎩⎨⎧=≥+=-312201a n a a n n n 的解为()A.32+⨯=n n n aB. ()221+⨯+=n n n aC. ()122+⨯+=n n n aD. ()n n n a 23⨯+=18. 设()⋯⋯=⨯=,2,1,025n a nn ,则数列{}0≥n n a 的常生成函数是() A.x 215- B. ()2215x - C.()x 215- D. ()2215x -19. 把15个相同的足球分给4个人,使得每人至少分得3个足球,不同的分法共有()种A.45B.36C.28D.2020. 多重集{}b a S ⋅⋅=4,2的5-排列数为()A.5B.10C.15D.2021. 部分数为3且没有等于1的部分的15-分拆的个数为()A.10B.11C.12D.1322. 设n,k 都是正整数,以()n P k 表示部分数为k 的n-分拆的个数,则()116P 的值是()A.6B.7C.8D.923. 设A ,B ,C 是实数且对任意正整数n 都有⎪⎪⎭⎫ ⎝⎛⋅+⎪⎪⎭⎫ ⎝⎛⋅+⎪⎪⎭⎫ ⎝⎛⋅=1233n C n B n A n ,则B 的值是()A.9B.8C.7D.624. 不定方程1722321=++x x x 的正整数解的个数是()A.26B.28C.30D.3225. 已知数列{}0≥n n a 的指数生成函数是()()t t e e t E 521⋅-=,则该数列的通项公式是() A.n n n n a 567++= B. nn n n a 567+-=C. n n n n a 5627+⨯+=D. n n n n a 5627+⨯-=26、6名同学排成一排,其中甲,乙两人必须排在一起的不同排法有()种。
51单片机练习题附答案.docx

第一.二章单片机概述与结构一、填空题1.单片机复位后,SP、PC和I/O 口的内容分别为__________ 02.单片机有四个工作寄存器区,由PSW状态字中的RS1和RSO两位的状态來决定。
单片机复位后,若执行SETB RSO指令,此时只能使用1 区的工作寄存器, 地址范围是一08H…OFH o3.51单片机驱动能力最强的并行端口为P0端口。
4.51单片机PC的长度为16位,SP的长度为—8 _____ 位,DPTR的长度为」6—位。
5.访问51单片机程序存储器地址空间、片内数据存储器地址、片外数据存储器地址的指令分别为—move ____ , MOV 和—movx _____ 。
6.若A中的内容为63H,那么P标志位的值为 ________ o7 .当扩展外部存储器或I/O 口时,P2 口用作高八位地址总8.51单片机内部RAM区有—个工作寄存器区。
9.51单片机内部RAM区有128 个位地址。
10.外部中断1 (而i)的中断入口地址为0013 ;定时器1的中断入口地址为001B 。
11.51单片机有4 个并行I/O 口,P0〜P3是准双向口,所以由输出转输入时必须先写入 1 012.51单片机的堆栈建立在 _______ 内开辟的区域。
二、选择题1.访问片外部数据存储器时,不起作用的信号是(C)。
A./RDB. /WEC. /PSEND. ALE2.51单片机P0 口用作输出时,应外接(A )。
A.上拉电阻B.二极管C.三极管D.下拉电阻3.进位标志CY在(C )中。
A.累加器B.算逻运算部件ALUC.程序状态字寄存器PSWD. DPTR4.堆栈数据的进出原则是(D )。
A.先进先出B.进入不出C.后进后出D.先进后出5.51单片机系统中,若晶振频率为6MHz, 一个机器周期等于(D )阴。
A. 1.5B. 3C. 1D. 26.在家用电器中使用单片机应属于微计算机的(B )。
A.辅助设计应用B.测量、控制应用C.数值计算应用D.数据处理应用7.PC的值是(C )。
VCP510最新题库288题6.26_考过

Click the Exhibit button.An administrator has deployed a new virtual machine on an ESXi 5.x host. Users are complaining of poor performance on the application running on the virtual machine. Performance tools display the results shown in the exhibit.Which two tasks might improve the user experience? (Choose two.)A. Add a vCPU to the virtual machineB. Remove CPU affinity on the advanced CPU setting of the virtual machineC. Migrate the virtual machine to another ESXi hostD. Remove the limit on the CPU settings of the virtual machineAnswer: A,DQUESTION NO: 2An administrator notices that when a virtual machine is placed into a resource pool, a warning indicates that the virtual machine will receive a very large percentage of the total shares for memory.Which action can be taken to resolve this problem?A. Increase the memory resource allocation to the resource pool.B. Increase the share value for the resource pool.C. Change the shares setting from custom to high, medium, or low for the virtual machine.D. Decrease the memory allocation for the virtual machine.Answer: CAn administrator views the Fault Tolerance pane of the Summary tab of a virtual machine and finds that the current status is Not Protected.What are two vSphere Fault Tolerance states that would cause the virtual machine to not be protected? (Choose two.)A. Stopped - Fault Tolerance has been stopped on the secondary virtual machine.B. Need Secondary VM - The primary virtual machine is running without a secondary virtual machine and is not protectedC. Need Primary VM - The secondary virtual machine is running, and a new primary virtual machine cannot be generated.D. Disabled - Fault Tolerance is disabled.Answer: B,DQUESTION NO: 4Which two conditions prevent the application of a host profile to an ESXi 5.x host? (Choose two.)A. The host has multiple profiles attached.B. The host has not been placed into maintenance mode.C. The host is running virtual machines.D. The host is an ESXi host.Answer: B,CQUESTION NO: 5An administrator is editing the IP allocation policy for a vApp.Which three options are available? (Choose three.)A. AutomaticB. RoamingC. TransientD. DHCPE. FixedAnswer: C,D,EQUESTION NO: 6ACME Junkmail Incorporated has been utilizing templates in their environment. They are running a 10-node ESXi 5.x Cluster and DRS has not been configured. Several virtual machines have been deployed from this template and successfully powered on, but a newly deployed virtual machine will not power on. There appear to be adequate CPU and Memory resources available on the host.Which three things can be done to allow more virtual machines to be deployed into the cluster from this template? (Choose three.)A. Select a different datastore for the virtual machineB. Move the swap file to a different locationC. Deploy the virtual machine to a different host using the same datastoreD. Enable DRS on the cluster to balance the virtual machine load out across hostsE. Increase the virtual machine memory reservationAnswer: A,B,EQUESTION NO: 7What are three valid objects to place in a vApp? (Choose three.)A. FoldersB. HostsC. Resource poolsD. vAppsE. Virtual machinesAnswer: C,D,EQUESTION NO: 8Which three Storage I/O Control conditions might trigger the Non-VI workload detected on the datastore alarm? (Choose three.)A. The datastore is connected to an ESX/ESXi 4.0 host that does not support Storage I/O Control.B. The datastore is on an array that is performing system tasks such as replication.C. The datastore is utilizing active/passive multipathing or NMP (Native Multi-Pathing).D. The datastore is storing virtual machines with one or more snapshots.E. The datastore is connected to an ESX/ESXi 4.0 host that is not managed by vCenter.Answer: A,B,EQUESTION NO: 9An administrator has just finished deploying a vApp for a web service.What three options are available to the administrator for IP allocation within the vApp? (Choose three.)A. TransientB. FixedC. DHCPD. BridgedE. NATAnswer: A,B,CQUESTION NO: 10An administrator is working to implement Storage Profiles in their environment.Which two ways can storage capabilities be generated? (Choose two.)A. They are generated by Datastore Clusters as LUNs are added to the cluster.B. They are automatically determined by the Storage Profile when it is created.C. They can be retrieved from the array through the VMware APIs for Storage Awareness (VASA).D. They can be manually generated by the administrator.Answer: C,DQUESTION NO: 11Which VMware solution uses the security of a vSphere implementation and provides linked-clone technology to virtual desktops?A. VMware ACEB. VMware ViewC. VMware WorkstationD. VMware ThinAppAnswer: BQUESTION NO: 12Which two conditions will prevent a virtual machine from being successfully migrated using Storage vMotion? (Choose two.)A. The virtual machine has an RDM.B. The virtual machine has Fault Tolerance enabled.C. The virtual machine is running on a vSphere 5.x Standard host.D. The virtual machine has a disk stored on an NFS datastore.Answer: B,CQUESTION NO: 13Under which two conditions can vStorage APIs for Array Integration (VAAI) provide a performance benefit? (Choose two.)A. When a virtual disk has VMDK files stored on an NFS datastore.B. When a virtual disk is created using the New Virtual Machine wizard.C. When cloning a virtual machine with snapshots.D. When a virtual disk is deleted.Answer: A,DQUESTION NO: 14An administrator is enabling Enhanced vMotion Compatibility (EVC) in a DRS cluster. The administrator wants only hosts with the newest Intel processors added to the cluster.Which setting satisfies this requirement?A. The baseline with the most CPUs listedB. The baseline with the fewest CPUs listedC. Any baseline that contains Future Intel processorsD. Create a new baseline and add only the latest processor familyAnswer: DQUESTION NO: 15Which two conditions must exist on all hosts in the cluster if Enhanced vMotion Compatibility (EVC) is used? (Choose two.)A. The cluster must be enabled for DRS.B. All hosts in the cluster must be running ESX/ESXi 3.5 Update 2 or later.C. All hosts in the cluster must have hardware virtualization support enabled.D. The cluster must be enabled for HA.Answer: B,CQUESTION NO: 16Users are experiencing performance issues when updating their database hosted on a virtual machine. The administrator determines that disk I/O is high across one of the HBAs on the ESXi host containing thevirtual machine.What is the action will most likely correct the issue without significantly impacting other users or datastores?A. Manually configure the disk multipathing policy to Round Robin for the datastoreB. Migrate the virtual machine to an NFS datastore using Storage vMotionC. Use Storage vMotion to migrate the virtual machine to a new VMFS5 datastoreD. Map additional LUNs to the ESXi host and extend the datastoresAnswer: AQUESTION NO: 17An administrator takes a vSphere snapshot of a virtual machine and applies an OS update. After confirming the update the administrator cannot enable Fault Tolerance on the virtual machine and suspects there are snapshots that have not been consolidated.Which two operations can the administrator perform to verify consolidation is needed? (Choose two.)A. Expose the Needs Consolidation column in the virtual machines tab of the host.B. Browse the datastore containing the vmdk files and look for files with the "-delta.vmdk" extension.C. Expose the Needs Consolidation column in the virtual machine summary tab.D. Select and run the vSphere Cluster HealthCheck from the right-click menu of the cluster object. Answer: A,BQUESTION NO: 18An administrator has created a virtual machine that will be accessed from a public kiosk. Management has requested that the virtual machine be reset to a known state once a week or on demand if requested. Which method is the simplest way to meet this requirement?A. Configure the storage array to be vSphere aware and script routine array snapshot restores of the datastore.B. Implement a 3rd party imaging server and PXE boot the virtual machine off a static image.C. Set the VMDKs of the virtual machine to be Independent-Nonpersistent and schedule restarts of the virtual machine.D. Create Nonpersistent disks for the virtual machine and set the guest OS to reboot once a week. Answer: CQUESTION NO: 19What are three true statements about quiescing virtual machine snapshots? (Choose three.)A. vSphere snapshot quiescing only occurs on Windows guest OSes.B. The quiescing operation is automatic with any snapshot.C. The quiescing operation varies by guest OS.D. Quiescing should occur before array-based snapshots to ensure consistency.E. VMware Tools is required for quiescing to be successful.Answer: C,D,EQUESTION NO: 20An administrator has deployed vCenter Data Recovery and wants the largest possible de-duplication store. Which three storage options can be used? (Choose three.)A. Two CIFS sharesB. Two RDMs on a FCP arrayC. One NFS mount on the ESXi host and one RDMs on an iSCSI arrayD. One CIFS share and one FCP RDME. Two NFS mounts on the ESXi hostAnswer: B,C,EQUESTION NO: 21An administrator has recently upgraded their Update Manager infrastructure to vSphere 5.x. Several hosts and virtual machines have not been upgraded yet.Which vSphere component when upgraded will have the least impact to the existing environment?A. Virtual Machine HardwareB. ESX HostsC. VMFS datastoresD. VMware ToolsAnswer: DQUESTION NO: 22An administrator is using Update Manager 5.x to update virtual appliances in a vSphere environment. The environment is using the vCenter Server Virtual Appliance (vCSA).What would cause the remediation to fail?A. Updating of the appliance can only be done if the vCenter Server Virtual Appliance (vCSA) has been put into Maintenance Mode.B. Remediation must be configured on the Appliance Administration page before use.C. Remediation of the vCenter Server Virtual Appliance (vCSA) with Update Manager is not supported.D. Remediation requires the hosts to be connected to vCenter using an IPv4 address.Answer: DQUESTION NO: 23An administrator is working to update the hosts and virtual machines in a vSphere 5.x deployment using Update Manager Baselines.Other than host patches, which three items require a separate procedure or process to update? (Choose three.)A. Operating system patchesB. Virtual Appliance updatesC. Virtual Machine Virtual Hardware upgradesD. VMware Tools on machines without VMware Tools already installedE. Application patches within the virtual machineAnswer: A,D,EQUESTION NO: 24An administrator selects the Profile Compliance tab of an vSphere cluster, then selects Check Compliance Now.Which features requirements are not checked by this?A. vMotionB. Fault ToleranceC. DRSD. Host ProfilesAnswer: DQUESTION NO: 25An administrator is troubleshooting an ESXi 5.x host and needs to export diagnostic information. The host is currently managed by a vCenter Server instance.Which two ways can the information be gathered using the vSphere Client? (Choose two.)A. Select Home. Under Administration, click System Logs and click the Export System Logs button. Select the affected ESXi host. Select Select All. Select a location and click Finish.B. In the vSphere Client, select the affected ESXi host. Right-click the host and select Export Diagnostic Data. Select a location and click OK.C. Log in to the ESXi host locally, Select Export System Logs.D. In the vSphere Client, select the affected ESXi host. Select File, Export and Export System Logs. Select Select All. Select a location and click Finish.Answer: A,DQUESTION NO: 26An ESXi 5.x host displays a warning icon in the vSphere console and its summary page lists a configuration issue "SSH for the host has been enabled." What are two ways to clear this warning? (Choose two.)A. Using the Security Profile pane of the Configuration tab in the vSphere ClientB. Using the Direct Console User Interface (DCUI)C. Using the Advanced Settings pane of the Configuration tab in the vSphere ClientD. Using the Networking pane of the Configuration tab in the vSphere ClientAnswer: A,BQUESTION NO: 27vCenter reports a connectivity problem with a ESXi 5.x host that is not a member of a cluster. An administrator attempts to connect directly to the host using the vSphere Client but fails with the message "An unknown connection error occurred." Virtual machines running on the host appear to be running and report no problem.What two methods would likely resolve the issue without affecting the virtual machines? (Choose two.)A. Enter the service mgmt-vmware restart command from either SSH or local CLIB. Select Restart Management Agents in the Direct Console User Interface (DCUI)C. Select Reboot Host in the Direct Console User Interface (DCUI)D. Enter the services.sh restart command from either SSH or the local CLIAnswer: B,DQUESTION NO: 28Click the Exhibit button.ACME Catering Services is using esxtop to troubleshoot a performance problem with one of their ESXi5.x hosts. Host disconnections from vCenter Server as well as sluggish performance when performing tasks on the host have been observed.Based on the output in the exhibit, how many vCPU's have been assigned to FileServer01?A. 1B. 2C. 4D. 8Answer: DQUESTION NO: 29An administrator notices that log files kept on an ESXi 5.x host are being rotated very quickly, inhibiting the troubleshooting of an issue.Which two configuration changes will resolve the issue? (Choose two.)A. Configure syslog to send the logs a syslog serverB. Increase the number of logs keptC. Increase the logging levelD. Increase the size of the partition where log files are storedAnswer: A,BQUESTION NO: 30A series of Auto Deploy ESXi 5.x hosts which utilize vSphere Standard Switches are unable to boot. In prior testing, all of the hosts were able to boot successfully.Which two conditions might cause this issue? (Choose two.)A. The Hosts are unable to connect to the SAN.B. The TFTP server is down.C. The DNS server is down.D. The DHCP server is down.Answer: B,DQUESTION NO: 31An administrator wants to monitor the health status of an ESXi 5.x host. However, when the administrator clicks the Hardware Status tab the following error is displayed.This program cannot display the webpageWhat might cause this problem?A. The VMware VirtualCenter Management Webservices Service is not started.B. The required plug-in is not enabled.C. The VMware ESXi Management Webservices Service is not startedD. The name of the vCenter Server system could not be resolved.Answer: AQUESTION NO: 32An iSCSI array is being added to a vSphere 5.x implementation. An administrator wants to verify that all IP storage VMkernel interfaces are configured for jumbo frames.What are two methods to verify this configuration? (Choose two.)A. Run the esxcli network ip interface list commandB. Run the esxcfg-vswif -l commandC. Ensure that the Enable Jumbo Frames box is checked in the VMkernel interface properties in the vSphere clientD. Ensure that the MTU size is set correctly in the VMkernel interface properties in the vSphere client Answer: A,DQUESTION NO: 33An administrator has configured a vSphere Distributed Switch to send all network traffic to a collector virtual machine for analysis. However, after checking the collector virtual machine several hours later the administrator finds that no data has been collected. vSphere 5.x has been deployed in the datacenter. Which two items below could be causing this issue? (Choose two.)A. The source virtual machine does not have Promiscuous Mode enabled.B. The source and target virtual machines are not both be on the same vSphere Distributed Switch.C. The port group or distributed does not have Promiscuous Mode enabled.D. The port group or distributed port does not have NetFlow enabled.Answer: B,DQUESTION NO: 34A vSphere 5 implementation consists of a fully automated DRS cluster with two ESXi 5.x hosts with the following vSphere Standard Switch configuration.1. Switch A. three vmnics, one port group named sFTP-PG2. Switch B. two vmnic, one port group named Web-PG3. All vmnics are trunked to the same physical switch.DRS has been configured with an anti-affinity rule for all virtual machines in the Web-PG so that no more than half of the virtual machines run on any given host. The virtual machines on WebPG are experiencing significant network latency. The network team has determined that a performance bottleneck is occurring at the ESXi host level.Which solution will require the least amount of administrative work and the least amount of service interruption?A. Migrate Web-PG to Switch A and sFTP-PG to Switch B on each hostB. Move a vmnic from Switch A to Switch B on each hostC. Convert the three Switch Bs to a single vSphere Distributed SwitchD. Use vMotion to redistribute some of the VMs in Web-PG to a different ESXi hostAnswer: BQUESTION NO: 35A user attempts a remote SSH connection to a newly-installed ESXi 5.x host to execute some commands. The SSH connection attempt fails, though the user is able to receive a ICMP ping back from the host. What must the administrator do to enable SSH? (Choose two.)A. Enable root logon on the ESXi server.B. Open the SSH port on the ESXi firewall.C. Start the SSH service on the ESXi server.D. Create a local user on the ESXi server.Answer: B,CQUESTION NO: 36An administrator is setting up vMotion in a vSphere environment. A migration is run to test the configuration, but fails.What could the administrator do to resolve the issue?A. Ensure the VMkernel port group is configured for Management Traffic.B. Enable VMkernel port group for the vSphere cluster.C. Ensure the vMotion enabled adaptors configured for the same subnet.D. Use a vDS instead of a standard switch.Answer: CQUESTION NO: 37An administrator is unable to connect a vSphere Client to an ESXi 5.x host.Which option can be selected from the direct console to restore connectivity without disrupting running virtual machines?A. Restore the Standard Switch from the ESXi host.B. Restart the Management Agents from the vSphere client.C. Restart the Management Agent from the ESXi hostD. Disable the Management Network from the vSphere client.Answer: CQUESTION NO: 38An administrator receives a complaint that a virtual machine is performing poorly. The user attributes the issue to poor storage performance.If the storage array is the bottleneck, which two counters would be higher than normal? (Choose two.)A. Average ESXi VMKernel latency per command, in millisecondsB. Average ESXi highest latency, in millisecondsC. Average virtual machine operating system latency per command, in millisecondsD. Number of SCSI reservation conflicts per secondAnswer: B,CQUESTION NO: 39An administrator must decommission a datastore.Before unmounting the datastore, which three requirements must be fullfilled? (Choose three.)A. No virtual machines reside on the datastore.B. The datastore is not used for vSphere HA heartbeat.C. No registered virtual machines reside on the datastore.D. The datastore must not have any extents.E. The datastore must not be part of a datastore cluster.Answer: B,C,EQUESTION NO: 40An administrator is informed that there will be a storage maintenance window and that failovers may occur.What is the expected length of time that a Windows 2008 virtual machine storage I/O will pause during a path failover?A. 0 to 30 secondsB. 90 to 120 secondsC. 60 to 90 secondsD. 30 to 60 secondsAnswer: DQUESTION NO: 41A company wants to increase disk capacity for their vSphere environment.Management mandates that.1. vMotion must work in this environment.2. The existing LAN infrastructure must be used.Which storage option best meets the company objectives?A. iSCSIB. Fibre ChannelC. SATAD. NFSAnswer: DQUESTION NO: 42Which resource management technique can be used to relieve a network bottleneck caused by a virtual machine with occasional high outbound network activity?A. Convert the switch from a vSphere Standard Switch to a vSphere Distributed Switch.B. Create a new portgroup for the virtual machine and enable traffic shaping.C. Apply traffic shaping to the other virtual machines in the same port group.D. Apply traffic shaping to the virtual machine with high activity.Answer: BQUESTION NO: 43An administrator has determined that storage performance to a group of virtual machines is reduced during peak activity. The virtual machines are located in a VMFS datastore called Production1 on an active-active storage array. The ESXi 5.x host running the virtual machines is configured with an MRUmultipathing policy.Which two actions can be taken to improve the storage performance of these virtual machines? (Choose two.)A. Add virtual storage, create a VMFS datastore called Production2 on the new storage, and then migrate some of the virtual machines from Production1 to Production2.B. Change the storage multipathing policy to Round Robin.C. Add physical storage, create a VMFS datastore called Production2 on the new storage, and then migrate some of the virtual machines from Production1 to Production2.D. Change the storage multipathing policy to Fixed with default settings.Answer: B,CQUESTION NO: 44Which of these factors indicates a high likelihood that the performance of a virtual machine disk is being constrained by disk I/O?A. A large number of commands issuedB. A high device latency valueC. A high disk used valueD. A large number of kilobytes read and writtenAnswer: BQUESTION NO: 45Click the Exhibit button.An administrator is configuring vMotion in their environment. As part of the implementation, an administrator is examining resource mapping for virtual machines.What is a likely cause of the error shown in the exhibit?A. vMotion has been disabled because the are no other hosts in the cluster with vMotion enabled.B. vMotion has not been enabled on the Production port group.C. The administrator has not created a Managent network.D. vMotion has not been enabled on a VMkernel port group.Answer: CQUESTION NO: 46Which two circumstances might cause a DRS cluster to become invalid? (Choose two.)A. DRS has been disabled on one or more ESXi hosts.B. An ESXi host has been removed from the cluster.C. A migration on a virtual machine is attempted while the virtual machine is failing over.D. Virtual machines have been powered on from a vSphere Client connected directly to an ESXi host. Answer: B,DQUESTION NO: 47Click the Exhibit button.An administrator has a DRS/HA cluster with five ESXi 5.x hosts. When the administrator tries to start a new Web server virtual machine, an error is displayed saying insufficient resources exist for HA.Based on the HA configuration in the exhibit, which two changes can resolve the issue? (Choose two.)A. Shut down one or more virtual machines on the cluster.B. Set VM Restart Priority to Disabled for the Web server.C. Set Host Isolation response to Shut down.D. Suspend one or more virtual machines in the cluster.Answer: A,DQUESTION NO: 48Click the Exhibit button.An administrator is applying patches to a batch of ESXi 5.x hosts in an under-allocated HA/DRS cluster. An attempt is made to place the host into maintenance mode, but the progress has stalled at 2%. DRS is configured as shown in the exhibit. Of the four choices below, two would effectively resolve this issue. Which two steps could be taken to correct the problem? (Choose two.)A. Enable VMware EVC.B. Set the virtual machines on the host to Fully Automated.C. Shut down the virtual machines on the host.D. Move the virtual machine swap file off the local datastore.Answer: B,CQUESTION NO: 49An administrator is configuring Storage DRS in their environment. The Datastore cluster iscomposed of 4 VMFS3 volumes and 9 VMFS5 volumes. Storage DRS has been enabled, but is showing as disabled on several virtual machine disks in the datastore cluster.Which two conditions would cause this error to occur? (Choose two.)A. The virtual machine is stored on a VMFS 3 volume.B. One or more virtual machines have Persistent disks.C. The virtual machine is stored on a NFS datastore.D. The virtual machine is stored on a datastore with a 2mb block size.Answer: A,BQUESTION NO: 50An administrator finds that vMotion and Storage vMotion operations do not succeed on a virtual machine. The virtual machine has been configured with N_Port ID Virtualization. The virtual machine has two data RDMs, one using a RAID5 LUN and one using a RAID0+1 LUN. The mapping file for the RAID5 LUN was created on the same datastore as the virtual machine, and the mapping file for the RAID0+1 LUN was placed in a datastore used for production data virtual disks.Which two statements are true about this configuration? (Choose two.)A. Storage vMotion cannot be used unless both mapping files are placed on the same datastore.B. vMotion cannot be used unless both mapping files are placed on the same datastore.C. vMotion cannot be used with RDMs.D. Storage vMotion cannot be used with NPIV.Answer: B,DQUESTION NO: 51A company has converted several physical machines to virtual machines but are seeing significant performance issues on the converted machines. The host is configured with sufficient memory and storage does not appear to be a bottleneck.Which metric can be checked to determine if CPU contention exists on an ESXi 5.x host?A. %RUNB. %WAITC. %USEDD. %RDYAnswer: DQUESTION NO: 52Which three statements regarding Network I/O Control (NIOC) are accurate? (Choose three.)A. NIOC enforces traffic bandwidth limits on the overall vDS set of dvUplinks.B. NIOC limits maximum throughput control on connected virtual machines.C. Load based teaming efficiently uses a vDS set of dvUplinks for network capacity.D. Isolation provides priority to any one traffic flow.E. Relative shares fairly allocates available bandwidth among multiple flows.Answer: A,C,EQUESTION NO: 53Which three requirements must be met in order to use Storage I/O Control? (Choose three.)A. The datastore must contain multiple VMFS extents.B. The datastore must contain a single NFS volume.C. The datastore must not include virtual machines with snapshots.D. The datastore must be managed by a single vCenter Server.E. Array-based automated storage tiering must be explicitly certified.Answer: B,D,EQUESTION NO: 54What number of IOPS should be used with Storage I/O Control to limit disk throughput to roughly 10 MBps if the guest application writes 64KB blocks?。
统计学导论曾五一课后习题答案(完整版)

统计学导论习题参考解答第一章(15-16)一、判断题1.答:错。
统计学和数学具有不同的性质特点。
数学撇开具体的对象,以最一般的形式研究数量的联系和空间形式;而统计学的数据则总是与客观的对象联系在一起。
特别是统计学中的应用统计学与各不同领域的实质性学科有着非常密切的联系,是有具体对象的方法论。
2.答:对。
3.答:错。
实质性科学研究该领域现象的本质关系和变化规律;而统计学则是为研究认识这些关系和规律提供合适的方法,特别是数量分析的方法。
4.答:对。
5.答:错。
描述统计不仅仅使用文字和图表来描述,更重要的是要利用有关统计指标反映客观事物的数量特征。
6.答:错。
有限总体全部统计成本太高,经常采用抽样调查,因此也必须使用推断技术。
7.答:错。
不少社会经济的统计问题属于无限总体。
例如要研究消费者的消费倾向,消费者不仅包括现在的消费者而且还包括未来的消费者,因而实际上是一个无限总体。
8.答:对。
二、单项选择题1. A;2. A;3.A;4. B。
三、分析问答题1.答:定类尺度的数学特征是“=”或“≠”,所以只可用来分类,民族可以区分为汉、藏、回等,但没有顺序和优劣之分,所以是定类尺度数据。
;定序尺度的数学特征是“>”或“<”,所以它不但可以分类,还可以反映各类的优劣和顺序,教育程度可划分为大学、中学和小学,属于定序尺度数据;定距尺度的主要数学特征是“+”或“-”,它不但可以排序,还可以用确切的数值反映现象在两方面的差异,人口数、信教人数、进出口总额都是定距尺度数据;定比尺度的主要数学特征是“⨯”或“÷”,它通常都是相对数或平均数,所以经济增长率是定比尺度数据。
爱轮滑儿童轮滑鞋轮滑鞋什么牌子好旱冰鞋2.答:某学生的年龄和性别,分别为20和女,是数量标志和品质标志;而全校学生资料汇总以后,发现男生1056,女生802人,其中平均年龄、男生女生之比都是质量指标,而年龄合计是数量指标。
数量指标是个绝对数指标,而质量指标是指相对指标和平均指标。
瑞翼教育大数据导论课后答案

瑞翼教育大数据导论课后答案大数据导论课后题的答案都会在下面的文章中为大家揭晓。
如果您也对大数据导论课后题感兴趣请继续关注。
我们现在已经有了()和()系统。
首先,让我们来看一下题型的划分。
从应用实践到理论阐述各个方面。
首先从分类上来看,不同学科需要不同类别分。
比如,计算机科学需要分类结构化编程();金融科学需要分值分类();统计学需要分值分类()。
其次从应用情况来看,根据不同分类结构化编程可以获得不同类型分值有哪些();基于此种分类结构化编程方法中,有哪些方法属于不同类型分值类别;金融计算机领域中有哪些用来进行不同类型分值类别处理,需要采用哪些方法;应用数学领域中用于分类结构化编程();信息安全领域中适用于()和();分布式计算领域中有哪些用来处理分布式计算();统计测量领域中用做哪一类计算量比较大;数据处理领域中有哪种数据类型处理比较快;应用心理学领域有多么依赖于()。
1.根据《计算机应用基础知识》分类,对通用数据库的功能进行划分的方法主要有()和()。
解析:通用数据库是为处理较复杂的信息而设计的。
主要包括对象数据库、逻辑数据库和内存数据库等;关系数据库是以结构为基础,通过数据存储过程对单个查询或事务执行的过程进行记录的分布式信息数据库;逻辑数据库是将已知数据库视为存储对象,根据其关系结构,能够实现对相关数据库间关系的记录处理。
解析:该题目考查的是对通用数据库功能进行划分的方法,属于基础知识方面的知识。
通用数据库是指提供给各应用领域开发人员使用并且可以单独使用到一种或几种功能并具有不同组合功能的数据库文件系统。
常用的有:集合数据库、日志数据库、状态数据库等。
选项 A适用于面向对象编程、 MapReduce和动态资源管理软件;选项 B适用于面向对象服务/任务设计;选项 C是对数据库功能划分中应用广泛的功能的扩展; D仅适用于是分布式数据库应用,适用于一般意义上的非核心系统之间没有直接关联或独立运作。
(整理)郭天祥十天学通单片机实验板所有课后作业+答案,特别整理

郭天祥《十天学通单片机》———“ TX-1C单片机实验板”所有课后作业+答案,特别整理,供单片机爱好与学习者使用第一讲学单片机预备知识、如何点亮一个发光管单片机能做什么,基本电子知识,如何用TX-1C单片机学习板学习单片机,C51知识简介,如何申请免费芯片样品。
点亮一个发光管,第二讲流水灯设计、蜂鸣器发声、继电器控制简单延时程序、子程序调用、带参数子程序设计、流水灯同时蜂鸣器响、如何驱动蜂鸣器,及如何驱动继电器,集电极开路的概念及应用。
第三讲数码管显示的原理、数码管的静态显示共阳、共阴数码管显示原理、定时器工作方式介绍、重点讲述工作方式2、中断概念及中断函数写法、外部中断试验、定时器中断应用第四讲数码管的动态显示原理及应用实现动态扫描概念、定时器、中断加深用单片机的定时器及中断设计一个60秒定时器第五讲独立键盘、矩阵键盘的检测原理及实现键盘用来做什么、如何键盘检测、消抖、键盘编码、带返回值函数写法及应用第六讲AD、DA的工作原理及实现、运放电路模拟电压与数字电压的关系、为什么要使用AD及DA、ADC0804的操作方法、DAC0832的操作方法第七讲串口通讯原理及操作流程串口通讯工作方式、10位数据通讯、波特率概念、如何根据波特率计算定时器初值、串口打印在调试程序中的应用。
第八讲1602液晶、12864液晶显示原理及实现最简单液晶工作原理、如何开始对一个没有任何概念的芯片开始单片机的操作第九讲IIC总线AT24C02芯片工作原理IIC总线工作原理、目前非常通用的一种通信机制第十讲利用51单片机的定时器设计一个时钟综合运用51单片机知识设计一个可以随意调节时间、带整点闹铃的时钟。
(其中用到定时器、中断、按键、蜂鸣器、数码管或串口通信)第十一讲用DS12C887时钟芯片设计一个高精度时钟DS12C887内部带有锂电池,系统掉电情况下可自行精确走10年,并带有闹钟功能、年、月、日、时、分、秒等。
(本节由学生自己设计电路)第十二讲使用Protell99绘制电路图全过程Protell99软件使用、元件库、封装库设计、绘制原理图、错误检查、生成PCB、手动、自动布线、送去加工第十三讲Altium designer 6.5绘制电路图全过程最顶级电路板设计软件Altium Designer使用、元件库、封装库设计、绘制原理图、错误检查、生成PCB、手动、自动布线、送去加工lesson1对照TX-1C单片机学习板原理图写程序,用位操作和总线操作两种方法完成以下题目1.熟练建立KEIL工程2.点亮第一个发光管.3.点亮最后一个发光管4.点亮1、3、5、75.点亮二、四、五、六6.尝试让第一个发光管闪烁7.尝试设计出流水灯程序====================================================== lesson2第一个发光管以间隔200ms闪烁8个发光管由上至下间隔1s流动,其中每个管亮500ms,灭500ms,亮时蜂鸣器响,灭时关闭蜂鸣器,一直重复下去。
80c51单片机习题与解答

则:DPH=(),DPL=(),SP=()
答:DPH=3CH , DPL=5FH , SP=4FH
3-17:假定,SP=60H,A=30H,B=70H,执行下列指令:
PUSHAPUSHB
后,SP的内容为(),61H单元的内容为(),62H单元的内容为()。
答:程序、数据
3-10:在寄存器间接寻址方式中,其“间接”体现在指令中寄存器的内容不是操作数,而是操作数的()。
答:地址
3-11:下列程序段的功能是什么?
PUSHA
PUSHB
POPA
POPB
答:交换A、B的内容
3-12:已知程序执行前有A=02H,SP=52H,(51H)=FFH,(52H)=FFH。下述程序执行后:
000AHRET;2个机器周期
*向大地址转移:rel=目标地址-[源地址+02H]
*向小地址转移:rel=FFH+01H+{目标地址-[源地址+02H]}
答:
偏移量DL2=FFH+01H+[0004H-(0006H+02H)]=0FCH
偏移量DL1=FFH+01H+[0002H-(0008H+02H)]=0F8H
2-15:判断下列说法是否正确(对应新教材P24 12)
A、程序计数器PC不能为用户编程时直接使用,因为它没有地址。(不开放,无地址)
B、内部RAM的位寻址区,只能供位寻址使用,而不能供字节寻址使用。(也是20~2F的16个字节寻址区)
C、8031共有21个特殊功能寄存器,它们的位都是可以用软件设置的,因此,是可以进行位寻址的。(11个可字节寻址)
1Z0-514模拟题(20110222)

本材料是针对1Z0-514考试的模拟练习,目的在于掌握本考试相关的一些知识点。
在考试中遇到的题目如有雷同,切勿在不理解含义的情况下仅根据关键字眼直接选出答案。
答案仅供参考,可能存在有些答案不完全正确的情况。
1.Identify two situations in which you can use Data Recovery Advisor for recovery.(Choose two)A.The database files are corrupted when the database is open.B.The user has dropped an important table that needs to be recovered.C.The archived redo log files are missing for which the backup is not available.D.The database is not opening because the required database files are missing.Answer:AD2.You are managing an Oracle Database 11g database. The database is open, and you plan to perform Recovery Manager(RMAN) backups. Which three statements are true about these backups?(Choose three)A.The backups would be consistent.B.The backups would by inconsistent.C.The backups would be possible only if the database is running in ARCHIVELOG mode.D.The backups would be possible only if the database is running in NOARCHIVELOG mode.E.The backups need to be restored and the database has to be recovered in case of a media failure. Answer:BCE3.Which three statements are correct about temporary tables?(Choose three)A.Indexes and views can be created on temporary tables.B.Both the data and the structure of temporary tables can be exported.C.Temporary tables are always created in as user's temporary tablespace.D.The data inserted into a temporary table in a session is available to other sessions.E.DML locks are never acquired on the data of temporary tables.Answer:ACE4.Which statement is true about the UNDO_RETENTION parameter when retention guarantee is not enabled?A.It is the time period after which the undo data becomes obsolete.B.It is the time period after which the committed undo data would be transferred to a temporary tablespace.C.It is the minimum time period up to which the committed undo data would be retained if free undo space is available.D.It is the time period after which the undo data is transferred to the Flash Recovery Area to provide read consistency.Answer:CSQL>DROP TABLE scott.item CASCADE CONSTRAINTS PURGE; Which two statements are true about the effect of the command?(Choose two.)A.No flashback is possible to bring back the ITEM table.B.The ORDERS table is dropped along with the ITEM table.C.The dependent referential integrity constraints in the ORDERS table are disabled.D.The dependent referential integrity constraints in the ORDERS table are removed.E.The table definition of the ITEM table and associated indexes are placed in the recycle bin.Answer:AD6.Which three statements regarding the server parameter file(SPFILE) are true?(Choose three)A.An SPFILE is a binary file.B.An SPFILE cannot reside on a client.C.An SPFILE cannot contain static parameters.D.An SPFILE can store changes persistently across instance restarts.E.An SPFILE can be read by the database, but it is not written to by the server.F.An SPFILE must be created manually, before creating a database, even if you use the DBCA to create the DB.Answer:ABD7.You plan to move data from a flat file to a table in your database. You decide to use SQL*Loader direct path load method to perform this task. The table in which you plan to load data is an important table having various integrity constraints defined on it. Which constraints will remain enabled by default during this operation?(Choose all that apply)A.CHECKB.UNIQUEC.NOT NULLD.PRIMARY KEYE.FOREIGN KEYAnswer:BCD8.Which three operations require undo data?(Choose three)mitting a transaction.B.Flashing back a transaction.C.Recovering a failed transaction.D.Running a read-consistent query.E.Changing a tablespace status from READ ONLY to READ WRITE.Answer:BCD9.In an OLTP system, the user SCOTT has started a query on a table in the peak transactional hour thatORA-01555:snapshot too oldWhat could be the reason for this error?A.The query is unable to get a read-consistent image.B.There is not enough space in Flash Recovery Area.C.There is not enough free space in the flashback archive.D.The query is unable to place data blocks in undo tablespace.Answer:A10.You have issued a SHUTDOWN ABORT command to bring down you database instance. Consider the steps that will be performed later when open the database:1.SGA is allocated.2.Control file is read.3.Redo log files are read.4.Instance recovery is started.5.Background processes are started.6.Data files are checked for consistency.7.Server parameter file or the initialization parameter file is read.Which option has the correct order in which these steps occur?A.7,1,5,2,3,6,4B.1,2,3,7,5,6,4C.7,1,4,5,2,3,6D.1,7,5,4,2,3,6Answer:A11.Your database instance is configured with automatic undo management and the UNDO_RETENTION parameter is set to 900 seconds. You executed the following command to enable retention gurantee: SQL> ALTER TABLESPACE undotbs1 RETENTION GUARANTEE; What effect would this command have on database?A.The extents in the undo tablespace retain data until the next full database backup.B.The extents containing committed undo in the undo tablespace are not overwritten for at least 15 minutes.C.The extents containing committed data in the undo tablespace are not overwritten until the instance is shutdown.D.The extents containing committed undo in the undo tablespace are transferred to Flash Recovery Area before being overwritten.Answer:B12.The MGR_ROLE has below System Privileges:System Privilege Admin OptionCREATE ROLE NSELECT ANY TABLE NThe user CSC has beeg granted the CONNECT and RESOURSE roles only. The DBA grant MGR_ROLE to the user CSC by executing the command:SQL> GRANT MGR_ROLE TO CSC WITH ADMIN OPTION; Which statement is true about the user CSC after he is granted this role?A.The user CSC can grant only the MGR_ROLE role to other users, but not the privilegs in it.B.The user CSC can revoke the MGR_ROLE from the users for whom he is the grantor.C.The user CSC can grant the privileges in the MGR_ROLE role to other users, but not with ADMIN OPTION.D.The user CSC can grant the priveleges in the MGR_ROLE role to other users, but cannot revoke privileges from them.Answer:B13.Which statement is true about a whole consistent database backup on a database running in ARCHIVELOG mode?A.The backup will consist of used data blocks only.B.The database must be shutdown to accomplish the backup.C.The backup can be accomplished without shutting down the database.D.The backup will contain all database files that have never been backed up.Answer:B14.Examine the following steps performed on a database instance:1.The DBA grants the CREATE TABLE system privilege to the CSC user with ADMIN OPTION.2.The CSC user creates a table.3.The CSC user grants the CREATE TABLE system privilege to the HR user.4.The HR user creates a table.5.The DBA revokes the CREATE TABLE system privilege from CSC.Which statement is true after step 5 is performed?A.The table created by CSC is not accessible and CSC cannot create new tables.B.The table created by CSC and HR remain, but both cannot create new tables.C.The table created by HR remains and HR still has the CREATE TABLE system privilege.D.The table created by HR remains and HR can grant the CREATE TABLE system privilege to other users. Answer:C15.Which two statements are true regarding listeners?(Choose two)A.Listeners use only the TCP/IP protocol.B.Multiple listener processes can run simultaneously on a host.C.Multiple database instances can be registered with a single listner.D.The listener-related errors can be traced only at the administrative level.E.Only one database instance can be registerd with a single listener at any time.Answer:BC16.You configured the Flash Recovery Area(FRA) for your database. The database instance is running in ARCHIVELOG mode. The default location for the archivelog is the FRA.Which two files are removed automatically if the space is required in the FRA as per the retention policy?(Choose two)A.Flashback log files.B.Backups that have become obsolete.er managed backups of the data file and control file.D.Archive redo log files that have multiple copies in a different archive location and not backup up. Answer:AB17.What two statements are true regarding the recommendations received from the SQL Access Advisor?(Choose two)A.It cannot generate recommendations that support multiple workload queries.B.It can recommend partitioning on tables provided that the workloads have some predicates and joins on the columns of the NUMBER or DATE typle.C.It can recommend partitioning only on tables that have at least 10,000 rows.D.It can recommend only B-tree indexes and not bitmap or function-based indexes.Answer:BC18.Which of the following identifies and creates an index to minimize the DB time for a particular SQL statement?A.The SGA Tuning AdvisorB.The SQL Access AdvisorC.The SQL Tuning AdvisorD.The Memory AdvisorAnswer:B19.In your database, the RESULT_CACHE_MODE parameter has been set to MANUAL in the initialization parameter file. You issued the following command:SQL>SELECT /*+ RESULT_CACHE */ sale_category, sum(sale_amt) FROM sales GROUP BY sale_category; where would the result of this query be stored?A.database buffer cacheB.shared poolC.PGArge poolAnswer:B20.Which of the following segment types can you shrink using Oracle's segment shrinkA.Undo segementsB.Index segmentsC.Temporary segmentsD.Data segmentsAnswer:BD21.Which of the following statements about conventional tablespaces(non-locally managed tablespaces) are true?Each correct answer represents a part of the solution.Choose twoA.Conventional tablespaces use data dictionary tables for storage space management.B.Conventional tablespaces use bitmaps for storage space management.C.In case of conventional tablespaces, Oracle reflects the allocatoin of a new extent by updating the associated segment header and the data dictionary table.D.In case of conventional tablespaces, Oracle reflects the allocatoin of a new extent by updating the associated segment header and the bitmap.Answer:AC22.Which two statements regarding a SQL profile are true?(Choose two)A.It is built by Automatic Tuning Optimizer.B.It cannot be stored persistently in the data dictionary.C.It can by used by the query optimizer automatically.D.It can be created manually by using the CREATE PROFILE command.Answer:AC23.Which two initialization parameters would you set to enable Automatic Shared Memory Management?(Choose two)A.set SHARED_POOL_SIZE to zeroB.set STATISTICS_LEVEL to BASICC.set SGA_TARGET to a non-zero valueD.set DB_CACHE_SIZE to a non-zero valueE.set STATISTICS_LEVEL to TYPICAL or ALLAnswer:CE24.Identify the activities performed as part of the Automatic SQL Tuning process in the maintenance window? (Choose all that apply.)A.Generating the SQL profileB.Testing and accepting the SQL profileC.Generating a list of candidate SQLs for tuningD.Adding tuned SQL plans into the SQL plan baselineF.Generating baselines that include candidate SQL statement for tuningAnswer:ABCE25.Which tasks are run automatically as part of the Automated Maintenance task by default?(Choose all that apply)A.Sement AdvisorB.SQL Access AdvisorC.Optimizer statistics gatheringD.Automatic SQL Tuning AdvisorE.Automatic Database Diagnostics MonitorAnswer:ACD26.You set retain backups that are necessary for a recovery to any time within 31 days, what will happen after 31 days?A.If the backup set are under flashback area, the obsolete backup will be automatically deleted when need space.B.If the backup set are under flashback area, the obsolete backup will need manual delete when need space.C.If the backup set are under none- flashback area, the obsolete backup will be automatically deleted when need space.D.If the backup set are under none flashback area, the obsolete backup will need manual delete when need space.Answer:AD27.Which two statements are true about the UNDO_RETENTION parameter when retention guarantee is enabled?(Choose two)A.Undo tablespace protect long-running querys.B.Undo tablespace protect long-running querys and large transactions.C.Undo tablespace rotect the commited trasactions.D.Undo tablespace protect the uncommited transactions.Answer:AC28.How and when can you access Enterprise Manager Database Control?A.You can access it by command line.B.Only when you can access 1158 port.C.You can access it whether your database is started or not.D.You cannot access it if your service name is not configured.Answer:CFiles, what file do you need to be done before you excute this?A.Load Data only.B.Control File only.C.Load Data and Control File.D.Nothing should be done before that.Answer:A30.You updated your database to 11g Realease 2, and you have some os scripts to run in your database server, which will be called according to some data changes in your database server, which is the best way to enforce this?e pl/sql to call the OS scripts.e sql routine in the database.C.Modify the OS scripts to check data change in the database.D.Install a scheduler agent on the remote host, then run remote external jobs in you 11.2 database. Answer:D31.Which three statements are correct about database templete created by DBCA?(Choose three)A.The templete is stored as XML file.B.The templete is stored as plain file.C.A seed templete contains database structures and data.D.A seed templete can be created by default database templete.E.A seed templete can be created not only by default database templete by also existing database. Answer:ACE32.You want to improve your application performance by using Result Cache, which statements are correct to enforce this?A.Add a RESULT_CACHE hint in your sql statement.B.You must set the RESULT_CACHE_MODE to FORCE.C.set RESULT_CACHE_MAX_SIZE to a non zero valueD.You can use the Result Cache from the second time that the sql excuted.E.You cannot use Result Cache for bind variable statements.Answer:ACD33.The orders table stores all information about orders, manager can query all the order information, but sales can only query their own order information, how can we accomplish this?A.By Audit VaultB.By Database VaultC.By FGAD.By Label SecurityAnswer:D34.What can we do by SQL?A.Control and Access data.B.Set variable and use them to calculate in the session.C.Can control where the data should put in the physical device.D.Can modify the LOB data out of database.Answer:A35.What can we do by SQL*Plus?A.Manage the database.B.Excute OS commands.Answer:AB36.Take a look at the table definition of emp:emp_no char(5),name varchar2(10),salary number(4)We examined the data in it and find that all the data in column emp_no is number type, the longest name is 5 characters, which operations can we do to modify emp table?A.Modify emp_no number type.B.Modify name to varchar2(5).C.Modify salary to number(6,2).Answer:AB37.When the recyclebin parameter is set to on, when you drop a table emp. Which statements are correct about emp?A.The emp table is dropped and the indexes built on it remains but will be set invalid state automatically.B.The indexes built on the table are been dropped accordingly.C.The views built on the table are been dropped accordingly.D.The views are invalid.Answer:BD38.When you flashback a table, which area will be used?A.UndoB.RedoC.Flashback directoryD.None of the aboveAnswer:A39.Your production database is in noarchivelog mode, for some reason if you want to modify it to archivelog mode, which backup should be taken before enforce this?A.A whole database backup.B.A Level 0 database backup.e backup sets to backup the database.e backup image to backup the database.Answer:A40.When you use DBCA to create a new database, what does it mean if you select file system as your data storage?e Automatic Storage Management (ASM) to manage the database file.B.Let OS to manage the database file.e Oracle-Managed Files.e raw device to store the database files.Answer:B41.A performance sensitive DBA are worrying about that the automatic statistics collection will affect some excution plan in his database, which option should he select to enforce this?A.Disable automatic statistics collection.e the 11g new feature to delay to PUBLISH the statistics.e hint to fixup the excution plan.Answer:B42.When you are helping upgrade your production database to 11g Release 2, which features can you use to make sure that there's no performance degression.e Database Replay to capture your production database workload.e SQL Performance Advisor to list the performance degression sql.Answer:AB43.Which two statements are correct about sql tuning?A.SQL Access Advisor can tuning query and DML sql statement.B.SQL Access Advisor can tuning query sql statement only.C.SQL Tuning Advisor can tuning query and DML sql statement.D.SQL Tuning Advisor can tuning query sql statement only.Answer:AD44.What can we do by DBCA?B.Configure a new listener to listen databases.C.Delete a database and it's data file.D.Delete a database that created manually but not by DBCA.Answer:ACD (When DBCA is running,also initiate listener configuration in the end)45.Which statements are correct about creating index?A.You can create multi-indexes on the same column.B.You can create a index that includes multi-columns.C.For those tables with a primary key and unique constraint, an index will implicitly be created. Answer:AB? Maybe:BC46.SCOTT user grant select on EMP table to user CSC, and the CSC user have already been granted insert,delete,update,select privilege by another user JAMES with DBA privilege, now the SCOTT user revoked select privilege from CSC user, can CSC still select the EMP table after this?A.Yes.B.No.Answer:A47.What kind of advice that segment advisor can give you?A.The free space of the tablespace is not enough, segment advisor advise you enlarge the tablespace.B.Analyze the tablespace and reclaim the unused space.Answer:B48.The instance has been started, what's that mean?(Choose two)A.The memory is allocated and background processes are all startedB.You can perform select on the application data.D.You can switch between archivelog mode and noarchivelog mode.Answer:A49.About database tools, which statements are correct?A.You can use SQL*Plus to access and manage your database.B.You can you SQL*Loader to tranfer data from one database to another.C.You can use Data Pump to load plain files into database.Answer:ABA.Function must have a return value.B.Procedure can may or may not return valuesAnswer:AB51.You excute a statement like this:sqlplus HR/HR@orclby what can you connect to the database?A.Server processer processC.ListenerAnswer:C52.When you excute a sql, which process will help you to retrieve the data from storage?er process.B.Server process.Answer:B53.Explore the return value of show parameter target, which statements are correct?SQL> show parameter targetNAME TYPE VALUE------------------------------- ----------- -----------------------------------archive_lag_target integer 0db_flashback_retention_target integer 1440fast_start_io_target integer 0fast_start_mttr_target integer 0memory_max_target big integer 1000Mmemory_target big integer 1000Mparallel_servers_target integer 16pga_aggregate_target big integer 200Msga_target big integer 400MA.The SGA size can ajust size automatically between 0 and 400M.B.The PGA size can ajust automatically between 0 and 200M.C.If there's free space under memory_target, it can be used by sga and pga if there's requirement.D.The SGA size and PGA size can be ajusted coordinately.Answer: CD54.In your maintenance widow, the SQL Tuning Advisor runs automatically in the night, which statement are correct?A.The SQL Profile are automatically created and maintained .Answer: A55.Which statements are correct about tablespace management?A.You can use convert from locally managed temporary tablespaces to permanent tablespaces.B.You can use alter tablespace to convert a dictionary-managed tablespace to a locally managed tablespace.C.You can convert from dictionary-managed tablespace to locally managed tablespace.Answer: C56.Which statesments are correct about Oracle environment variables?A.$ORACLE_SID indicates Oracle Instance name;B.$ORACLE_BASE indicates Oracle Base directory;C.$ORACLE_HOME indicates Oracle Software binary file storage not network service configuration. Answer: ABC57.Which of the following two parameters must you specify to use a flash recovery area for all of your backup?(Choose two answers)A.DB_RECOVERY_FILE_DEST_SIZE;B.DB_RECYCLE_CACHE_SIZE;C.DB_RECOVERY_FILE_DEST;D.DB_RECOVERY_FILE_SIZEAnswer: AC58.After you unregister a database from a recovery catalog, what happens to the backup metadata in the recovery catalog?A. You must migrate the backup metadata from the recovery catalog to the control file before unregistering the database from the recovery catalog;B. The backup metadata is maintained in the control file for a number of days specified by the parameter CONTROL_FILE_RECORD_KEEP_TIME and immediately removed from the recovery catalog.C. The backup metadata is retained in the control file, and the database structure metadata remains in the recovery catalog;D. The backup metadata is maintained in the control file and in the recovery catalog for a number of days specified by the parameter CONTROL_FILE_RECORD_KEEP_TIME.Answer: B59. You are in the middle of a transaction updating a very important table. The machine on which a database was running reboots because of power outage. This caused a database instance failure. Which statement is true in this situation?A. The online redo log files and archived redo log files are required to accomplish the recovery.B. The uncommitted transaction will be committed at the next startup of the database instance.C. The uncommitted transaction is rolled back automatically at the next opening of the database.D. The DBA has to perform the recovery on the database to recover the uncommitted transaction.60. You are managing an Oracle Database 11g database. You want ensure the recovery of the database to the point of failure. Which configuration will you do to accomplish the task?A. Multiplex all database files.B. Configure the Flash Recovery Area.C. Configure the database instance for ARCHIVELOG mode.D. Configure the FAST_START_MTTR_TARGET initialization parameter.Answer: C61. Which three operations require undo data? (Choose three)A. Committing a transaction;B. Flashing back a transaction;C. Recovering a failed transaction;D. Running a read-consistent query;E. Changing a tablespace status from READ_ONLY TO READ WRITE;Answer: BCD62. Which two statements are true regarding the SGA_TARGET initialization parameter? (Choose Two)A. It can be increased up to the value of the SGA_MAX_SIZE parameterB. Increasing the value of the SGA_TARGET parameter distributes the increased memory among all the auto tuned components.C. Reducing the value of the SGA_TARGET parameter de-allocates memory from both auto tuned and manually sized components.D. Increasing the value of SGA_TARGET up to the value of SGA_MAX_SIZE disables the automatic shared memory management feature.Answer: AB63. Which two statements are true regarding listeners? (Choose Two)_A. Listeners use only the TCP/IP protocol.B. Multiple listener processes can run simultaneously on a host.C. Multiple database instances can be registered with single listener.D. The listener-related errors can be traced only at the administrative level.E Only one database instance can be registered with a single listener at any time.Answer: BC64. You configured the Flash Recovery Area(FRA) for your database. The database instance is running in ARCHIVELOG mode. The default location for the archived redo log files is the Flash Recovery Area. Which two files are removed automatically if the space is required in the FRA as per the retention policy? (Choose Two)A. Flashback log files.B. Backups that have become obsoleteC. User managed backups of the data files and control filesD. Archived redo log files that have multiple copies in a different archive location and not backed up.65. Check the part of tnsnames.ora file bellowed:(ADDRESS = (PROTOCOL = TCP)(HOST = dbserver)(PORT = 1521)) (CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = )Which statements are true?A. Hostname is dbserverB. Database instance name is orclC. Domain name is Answer: ABC66. Which three components comprise a relational database model? (Choose three.)A. Data integrity rulesB. Tools to administer the databaseC. A collection of objects or relationsD. A set of operators to manage the tablesAnswer: AC D67. Which two components does the Oracle instance consist of? (Choose two.)A. datafilesB. control fileC. redo log filesD. Oracle serverE. memory areasF. Oracle databaseG. background processesAnswer:E,G68.Which five options correctly map an Oracle command with its category?A. ALTER: data control languageB. GRANT: data control languageC. ROLLBACK: transaction controlD. CREATE: data definition languageE. DROP: data manipulation languageF. SAVEPOINT: data control languageG. INSERT: data manipulation languageH. UPDATE: data manipulation languageI. TRUNCATE: data manipulation languageAnswer: B, C, D, G, HB. SQL*Loader: to load data into database tablesC. Database Configuration Assistant (DBCA): to create new database usersD. Database Upgrade Assistant: to provide a complete solution for the restoration and recovery of the databaseE. Oracle Universal Installer (OUI): to provide a common, user-friendly interface when installing Oracle software on any platformAnswer: A,B,E70.Which three statements are correct regarding the Database Configuration Assistant (DBCA) templates? (Choose three.)A. Templates are XML files.B. Seed templates are stored with the .dbt extension.C. Templates cannot be copied from one machine to another.D. Creation of the database is faster when you use a nonseed template instead of a seed template.E. Templates are stored in the $ORACLE_HOME/assistants/dbca/templates directory on a Linux platform.F. If you use a nonseed template to create the database, then all the datafiles and redo logs are created as per your specification.Answer: A, E, F71.The Oracle Enterprise Manager Database Control on your system uses a port that is not the default port. Which method helps you to identify the port number for your system?A. View the port number in the tnsnames.ora file.B. View the port number in the init.ora initialization parameter file.C. Execute the emctl command to display the port used by Enterprise Manager on your system.D. Execute the emctl status dbconsole command to display the port used by Enterprise Manager on your system.Answer: D72.Which three statements regarding the listener are correct? (Choose three.)A. It resides on the client machine.B. It stores the client configuration files.C. It maps the net service name to connect descriptor.D. Its configuration details are stored in the listener.ora file.E. It can be configured with one or more listening protocol addresses.F. It is a process that runs on the host node where the database server runs.Answer: D, E, F73.Which three statements are correct regarding the Listener Control utility? (Choose three.)A. You can use the Listener Control utility to stop a listener.。
C++课后练习

532类和对象1,面向对象程序设计方法概述2,类和对象定义3,类的成员函数4,对象的成员引用1000. 编一个基于对象的程序,求长方柱的体积Total:654Accepted:238Description长方柱数据成员包括length、width、height,要求用成员函数实现以下功能:1,输入3个长方体的长宽高;2,计算长方柱的体积;3,输出3个长方体的体积。
Input1 2 33 3 310 10 10Output6271000Sample InputCopy sample input to clipboard1 2 33 3 310 10 10Sample Output6271000Problem Source: 编一个基于对象的程序,求长方柱的体积1001. 建立一个学生类及其相应对象Total:562Accepted:203Time Limit: 1sec Memory Limit:256MBDescription学生有属性学号,姓名,性别,三个成员,为私有属性;成员函数setdata负责输入学生的信息。
成员函数display负责显示学生的信息。
Input输入学生学号、姓名、性别Output输出学号、姓名、性别Sample InputCopy sample input to clipboard1000tanmSample Output1000tanmProblem Source: 类和对象548关于对象进一步讨论1,构造函数和析构函数2,对象数组和指针3,共用数据保护4,对象赋值和复制5,静态成员6,友元Running, 2012-03-11 00:00:008423:25:12 LeftPublic Exercise1000. 对象数组Total:547Accepted:163Time Limit: 99999sec Memory Limit:256MBDescription建立一个对象数组,内放五个学生的数据(学号、成绩),用指针指向数组首元素,输出第1,3,5个学生的数据Input输入五个学生资料,如下:1001 981002 761003 651004 901005 77Output输出1,3,5个学生的数据:1001 981003 651005 77Sample InputCopy sample input to clipboard1001 981002 761003 651004 901005 77Sample Output1001 981003 651005 77Problem Source: 关于对象进一步讨论1001. 对象指针做函数参数Total:644Accepted:133Time Limit: 1sec Memory Limit:256MBDescription建立一个对象数组,放五个学生数据(学号、成绩),设立一个函数MAX,用对象指针做函数参数。
课时作业1:5.1.2 数据的数字特征

5.1.2 数据的数字特征1.一组样本数据按从小到大的顺序排列为13,14,19,x,23,27,28,31,其中位数为22,则x 等于( ) A.21 B.22 C.20 D.23答案 A解析 根据题意知,中位数22=x +232,则x =21.2.运动员参加体操比赛,当评委亮分后,其成绩往往是先去掉一个最高分,去掉一个最低分,再计算剩下分数的平均值,这是因为( ) A.减少计算量 B.避免故障 C.剔除异常值 D.活跃赛场气氛 答案 C解析 因为在体操比赛的评分中使用的是平均分.记分过程中采用“去掉一个最高分,去掉一个最低分”的方法,就是为了防止个别裁判的人为因素而给出过高或过低的分数对选手的得分造成较大的影响,可以降低误差,尽量公平. 3.下列关于50%分位数的说法正确的是( ) A.50%分位数不是中位数B.总体数据中的任意一个数小于它的可能性一定是50%C.它是四分位数D.它适用于总体是离散型的数据 答案 C解析 由百分位数的意义可知选项A ,B ,D 错误.4.如图,样本A 和B 分别取自两个不同的总体,它们的样本平均数分别为x A 和x B ,样本标准差分别为s A 和s B ,则( )A.x A >x B ,s A >s BB.x A <x B ,s A >s BC.x A >x B ,s A <s BD.x A <x B ,s A <s B答案 B解析 由题图知,A 组的6个数分别为 2.5,10,5,7.5,2.5,10;B 组的6个数分别为15,10,12.5,10,12.5,10,所以x A =2.5+10+5+7.5+2.5+106=254,x B =15+10+12.5+10+12.5+106=353.显然x A <x B .又由图形可知,B 组数据的分布比A 组的均匀,变化幅度不大,故B 组数据比较稳定,方差较小,从而标准差较小,所以s A >s B .5.若一个样本容量为8的样本的平均数为5,方差为2.现样本中又加入一个新数据5,此时样本容量为9,平均数为x ,方差为s 2,则( ) A.x =5,s 2<2 B.x =5,s 2>2 C.x >5,s 2<2 D.x >5,s 2>2 答案 A解析 ∵18(x 1+x 2+…+x 8)=5,∴19(x 1+x 2+…+x 8+5)=5, ∴x =5.由方差定义及意义可知加入新数据5后,样本数据取值的稳定性比原来强, ∴s 2<2,故选A.6.已知30个数据的60%分位数是8.2,这30个数据从小到大排列后第18个数据是7.8,则第19个数据是________. 答案8.6解析 由30×60%=18,设第19个数据为x ,则7.8+x2=8.2,解得x =8.6,即19个数据是8.6.7.已知一组数据按从小到大的顺序排列,得到-1,0,4,x,7,14,中位数为5,则这组数据的平均数为________,方差为________. 答案 5743解析 ∵-1,0,4,x,7,14的中位数为5, ∴4+x2=5, ∴x =6.∴这组数据的平均数是-1+0+4+6+7+146=5,这组数据的方差是16×(36+25+1+1+4+81)=743.8.甲、乙、丙、丁四人参加奥运会射击项目选拔赛,四人的平均成绩和方差如下表所示:则参加奥运会的最佳人选应为________. 答案 丙解析 因丙的平均数最大,方差最小,故应选丙.9.某学校对男、女学生进行有关“习惯与礼貌”的评分,记录如下: 男:54,70,57,46,90,58,63,46,85,73,55,66,38,44,56,75,35,58,94,58 女:77,55,69,58,76,70,77,89,51,52,63,63,69,83,83,65,100,74 分别求男生、女生得分的四分位数. 解 对男生得分由小到大排序为35,38,44,46,46,54,55,56,57,58,58,58,63,66,70,73,75,85,90,94,共20个数据, 所以20×25%=5,20×50%=10,20×75%=15, 则25%分位数为46+542=50,50%分位数为58+582=58,75%分位数为70+732=71.5.对女生得分由小到大排序为51,52,55,58,63,63,65,69,69,70,74,76,77,77,83,83,89,100,共18个数据. 所以18×25%=4.5,18×50%=9,18×75%=13.5,则25%分位数为63,50%分位数为69+702=69.5,75%分位数为77.10.对自行车运动员甲、乙两人在相同条件下进行了6次测试,测得他们的最大速度(m/s)的数据如下:甲 27 38 30 37 35 31 乙332938342836试判断选谁参加某项重大比赛更合适. 解 他们的平均速度为x 甲=16(27+38+30+37+35+31)=33(m/s),x 乙=16(33+29+38+34+28+36)=33(m/s).他们的平均速度相同,再看方差:s 2甲=16[(-6)2+52+(-3)2+42+22+(-2)2]=473(m 2/s 2), s 2乙=16[(-4)2+52+12+(-5)2+32]=383(m 2/s 2). 则s 2甲>s 2乙, 即s 甲>s 乙,故乙的成绩比甲稳定.所以,选乙参加该项重大比赛更合适.11.10名工人某天生产同一零件,生产的件数分别是15,17,14,10,15,17,17,16,14,12,设其平均数为a ,中位数为b ,众数为c ,则有( ) A.a >b >c B.b >c >a C.c >a >b D.c >b >a答案 D解析 由已知得a =110×(15+17+14+10+15+17+17+16+14+12)=14.7,b =12×(15+15)=15,c =17, ∴c >b >a .故选D.12.高三学生李丽在一年中的五次数学模拟考试中的成绩(单位:分)为:x ,y,105,109,110.已知该同学五次数学成绩数据的平均数为108,方差为35.2,则|x -y |的值为( ) A.15 B.16 C.17 D.18解析 由题意得,x +y +105+109+1105=108,①(x -108)2+(y -108)2+9+1+45=35.2,②由①②解得⎩⎪⎨⎪⎧ x =99,y =117,或⎩⎪⎨⎪⎧x =117,y =99,所以|x -y |=18.故选D.13.数据3.2,3.4,3.8,4.2,4.3,4.5,x,6.6的65%分位数是4.5,则实数x 的取值范围是( ) A.[4.5,+∞) B.[4.5,6.6) C.(4.5,+∞) D.(4.5,6.6]答案 A解析 因为8×65%=5.2,所以这组数据的65%分位数是第6项数据4.5, 则x ≥4.5.14.由正整数组成的一组数据x 1,x 2,x 3,x 4,其平均数和中位数都是2,且标准差等于1,则这组数据为________(从小到大排列). 答案 1,1,3,3解析 不妨设x 1≤x 2≤x 3≤x 4且x 1,x 2,x 3,x 4为正整数, 则由已知条件可得⎩⎨⎧x 1+x 2+x 3+x44=2,x 2+x32=2,即得⎩⎪⎨⎪⎧x 1+x 2+x 3+x 4=8,x 2+x 3=4,又∵x 1,x 2,x 3,x 4为正整数,∴x 1=x 2=x 3=x 4=2或x 1=1,x 2=x 3=2,x 4=3或x 1=x 2=1,x 3=x 4=3, ∵s =14[(x 1-2)2+(x 2-2)2+(x 3-2)2+(x 4-2)2]=1,∴x 1=x 2=1,x 3=x 4=3.由此可得这四个数为1,1,3,3.15.设样本数据x 1,x 2,…,x 10的平均数和方差分别为1和4,若y i =x i +a (a 为非零常数,i =1,2,…,10),则y 1,y 2,…,y 10的平均数和方差分别为( ) A.1+a,4 B.1+a,4+a C.1,4D.1,4+a解析 ∵x 1,x 2,…,x 10的平均数x =1,方差s 21=4, 且y i =x i +a (i =1,2,…,10), ∴y 1,y 2,…,y 10的平均数 y =110·(y 1+y 2+…+y 10)=110·(x 1+x 2+…+x 10+10a )=110·(x 1+x 2+…+x 10)+a =x +a =1+a ,其方差s 22=110·[(y 1-y )2+(y 2-y )2+…+(y 10-y )2]=110[(x 1-1)2+(x 2-1)2+…+(x 10-1)2]=s 21=4.故选A.16.在一次人才招聘会上,某公司的招聘人员告诉你:“我们公司员工的收入水平很高.去年,在50名员工中,最高年收入达到100万元,他们年收入的平均数是3.5万元”,如果你希望获得年收入2.5万元.(1)判断自己能否成为此公司的一名高收入者?(2)如果招聘人员继续告诉你:“员工年收入的变化范围是从0.5万元到100万元”,这个信息能否足以使你作出自己是否受聘的决定?为什么?(3)如果招聘人员继续给你提供了如下的信息:“员工中年收入在中间50%(即去掉最少的25%和最多的25%后所剩下的)的变化范围是从1万元到3万元”,你又该如何使用这条信息来作出自己是否受聘的决定?(4)你能估计出该公司员工年收入的中位数是多少吗?为什么平均数比估计出的中位数高很多?解 (1)不能.因为平均年收入与最高年收入相差太多,说明高收入的员工只占极少数.现在已经知道至少有一名员工的年收入为100万元,由年收入的平均数是3.5万元知,其他员工的年收入总和为75万元,每人平均年收入只有7549≈1.53(万元).如果再有几名年收入较高的员工,那么初进公司的员工的年收入将会更低. (2)不能,要看中位数是多少.(3)能受聘.可以确定有75%的员工年收入在1万元以上,其中25%的员工年收入在3万元以上.(4)年收入的中位数大约是2万元.因为有年收入100万元这个极端值的影响,使得年收入平均数比中位数高许多.。
同步优化设计2021年高中数学第五章计数原理测评含解析北师大版选择性必修第一册.docx

第五章测评(时间:120分钟满分:150分)一、选择题:本题共8小题,每小题5分,共40分.在每小题给出的四个选项中,只有一项是符合题目要求的.1.(2020山西朔州一模)若(2x+√x )n的二项式展开式中二项式系数的和为32,则正整数n的值为()A.7B.6C.5D.4(2x√x )n的二项展开式中二项式系数和为2n,∴2n=32,∴n=5.2.(2020北京朝阳期末)一般地,一个程序模块由许多子模块组成,一个程序模块从开始到结束的路线称为该程序模块的执行路径.如图是一个计算机程序模块,则该程序模块的不同的执行路径的条数是()A.6B.14C.49D.84(2+2+3)×(4+3)=49(种).3.从集合{0,1,2,3,4,5,6}中任取两个互不相等的数a,b,组成复数a+b i,其中虚数有()A.36个B.42个C.30个D.35个,b只能从1,2,3,4,5,6中选一个数字,有6种选法,a从剩余的6个数字中选一个数字,共6种选法,故满足题意的虚数有6×6=36(个).4.(√2x-1x2)3的展开式中的常数项为()A.-6B.-2C.2D.6(√2x -1x 2)3的展开式的通项T k+1=(-1)k ·(√2)3-k C 3k x3-3k ,令3-3k=0,得k=1,故展开式中的常数项为-6. 5.(2020四川绵阳期末)设(1+2x )5=a 0+a 1x+a 2x 2+…+a 5x 5,则a 1+a 3+a 5=( ) A.61 B.121C.122D.224(1+2x )5=a 0+a 1x+…+a 4x 4+a 5x 5,∴令x=1,得(1+2×1)5=a 0+a 1+a 2+a 3+a 4+a 5=243;令x=-1,得[1+2×(-1)]5=a 0-a 1+a 2-a 3+a 4-a 5=-1.∴a 1+a 3+a 5=12×(243+1)=122.6.(2020河北衡水模拟)(x 2+x+1)(x -2x )5的展开式中的常数项为( )A.40B.-80C.120D.140(x -2x )5的展开式的通项为T k+1=C 5k ·(-2)k ·x 5-2k , ∴(x 2+x+1)(x -2x )5的展开式中的常数项为-80.7.(2020山东聊城二模)2020年是脱贫攻坚年,为顺利完成“两不愁,三保障”(“两不愁”即不愁吃、不愁穿,“三保障”即义务教育、基本医疗、住房安全有保障),某市拟派出6人组成三个帮扶队,每队两人,对脱贫任务较重的甲、乙、丙三个县进行帮扶,则不同的派出方法种数为 ( )A.15B.60C.90D.5406个人平均分成3组,有C 62C 42C 22A 33=15种方法,再把这3组分派到甲、乙、丙三个县,有A 33种方法,则有15A 33=90种方法.8.杨辉三角是杨辉的一大重要研究成果,现将杨辉三角中的数换为正整数,形成三角数表,并按如图规律排列(例如9为第4行第3列,12为第5行第4列),则2 019为( )A.第63行第5列B.第63行第3列C.第64行第6列D.第64行第3列, 第n 行有n 个数(n ∈N +),奇数行的数字从左向右递减,偶数行的数字从左向右递增,∴在该图中,前n (n ∈N +)行共有n (n+1)2个数.∵63×642=2 016<2 019,64×652=2 080>2 019,∴在前63行,共有2 016个数,此时2 019位于第64行. ∵偶数行的数字从左向右递增,∴第2 019为第64行第3列.二、选择题:本题共4小题,每小题5分,共20分.在每小题给出的选项中,有多项符合题目要求.全部选对的得5分,有选错的得0分,部分选对的得3分. 9.下列等式正确的是( )A.C n m =C n n -mB.C m m +C m m -1=C m+1mC.C 51+C 52+C 53+C 54+C 55=25D.C n+1m =C n m -1+C n -1m +C n -1m -1:C 50+C 51+C 52+C 53+C 54+C 55=25,故C 不正确,而A,B,D 正确.10.下列关于(a-b )10的说法,正确的是( ) A.展开式中的二项式系数之和是1 024 B.展开式的第6项的二项式系数最大 C.展开式的第5项或第7项的二项式系数最大 D.展开式中第6项的系数最小C 100+C 101+C 102+…+C 1010=210=1 024,故A 正确;二项式系数最大的项为C 105,是展开式的第6项,故B 正确,C 错误;由展开式的通项为T k+1=C 10k a 10-k (-b )k =(-1)k C 10k a 10-k b k 知,第6项的系数为-C 105最小,故D 正确.11.(2020江苏连云港期末)为弘扬我国古代的“六艺文化”,某夏令营主办单位计划利用暑期开设“礼”“乐”“射”“御”“书”“数”六门体验课程,每周一门,连续开设六周,则下列说法正确的是( ) A.某学生从中选3门,共有30种选法B.课程“射”“御”排在不相邻两周,共有240种排法C.课程“礼”“书”“数”排在相邻三周,共有144种排法D.课程“乐”不排在第一周,课程“御”不排在最后一周,共有504种排法,依次分析选项:对于A,某学生从中选3门,6门中选3门共有C 63=20(种),故A 错误;对于B,课程“射”“御”排在不相邻两周,先排好其他的4门课程,有5个空位可选,在其中任选2个,安排“射”“御”,共有A 44A 52=480种排法,故B 错误;对于C,课程“礼”“书”“数”排在相邻三周,由捆绑法分析,将“礼”“书”“数”看成一个整体,与其他3门课程全排列,共有A 33A 44=144种排法,故C 正确;对于D,课程“乐”不排在第一周,课程“御”不排在最后一周,分2种情况讨论,若课程“乐”排在最后一周,有A55种排法,若课程“乐”不排在最后一周,有C41C41A44种排法,则共有A55+C41C41A44=504种排法,故D正确.12.某中学为提升学生劳动意识和社会实践能力,利用周末进社区义务劳动,高三一共6个班,其中只有1班有2个劳动模范,本次义务劳动一共20个名额,劳动模范必须参加并不占名额,每个班都必须有人参加,则下列说法正确的是()A.若1班不再分配名额,则共有C204种分配方法B.若1班有除劳动模范之外学生参加,则共有C195种分配方法C.若每个班至少3人参加,则共有90种分配方法D.若每个班至少3人参加,则共有126种分配方法A,若1班不再分配名额,则20个名额分配到5个班级,每个班级至少1个,根据插空法,有C194种分配方法,故A错误;对于B,若1班有除劳动模范之外学生参加,则20个名额分配到6个班级,每个班极至少1个,根据插空法,有C195种分配方法,故B正确;对于CD,若每个班至少3人参加,相当于16个名额被占用,还有4个名额需要分到6个班级,分5类:①4个名额到一个班,有6种;②一个班3个名额,一个班1个名额,有A62=30(种);③两个班都是2个名额,有C62=15(种);④两个班1个名额,一个班2个名额,有C61C52=60(种);⑤四个班都是1个名额,有C64=15(种),则共有126种,故C错误,D正确.故选BD.三、填空题:本题共4小题,每小题5分,共20分.13.若6C n2=A n3,则正整数n=.=n(n-1)(n-2),求得n=5.6C n2=A n3,则6×n(n-1)2×114.(2020江苏泰州期末)在某市举办的中学生运动会上,将4名同学全部分配到田径、游泳和球类3个不同比赛项目做志愿者,共有种不同分配方法;若每个项目至少需要1名志愿者,则不同的分配方法有种(用数字作答).36:每个学生都可以被分配到运动会的田径、游泳和球类3个不同比赛项目中的一个, 有3种分配方法,则4名同学有3×3×3×3=81种分配方法;对于第二空:分2步进行分析:①先将4名同学分成3组,有C42=6种分组方法,②将分好的三组全排列,安排到3个不同比赛项目,有A33=6种情况,则有6×6=36种不同的分配方法.15.(2020福建三明二模)已知(1+ax)(1+x)5的展开式中x2的系数为20,则a=.已知(1+ax)(1+x)5=(1+ax)(1+C51x+C52x2+C53x3+C54x4+C55x5),展开式中x 2的系数为C 52+a C 51=20,求得a=2.16.元宵节灯展后,如图悬挂有6盏不同的花灯需要取下,每次取1盏,共有 种不同取法.(用数字作答),所以每串灯必须先取下面的灯,即每串两个灯取下的顺序确定,问题转化为求六个元素排列,其中甲在乙前,丙在丁前,戊在己前的排列数,先将六个元素全排列共有A 66种排法,因为甲乙顺序确定,丙丁顺序确定,戊己顺序确定,所以六个元素排列甲在乙前、丙在丁前、戊在己前的排法数为A 66A 22A 22A 22=7202×2×2=90,即取下6盏不同的花灯,每次取1盏,共有90种不同取法.四、解答题:本题共6小题,共70分.解答应写出文字说明、证明过程或演算步骤.17.(10分)某单位职工义务献血,在体检合格的人中,O 型血共有28人,A 型血共有7人,B 型血共有9人,AB 型血共有3人.(1)从中任选1人去献血,有多少种不同的选法?(2)从四种血型的人中各选1人去献血,有多少种不同的选法?O 型血的人中选1人有28种不同的选法,从A 型血的人中选1人有7种不同的选法,从B 型血的人中选1人有9种不同的选法,从AB 型血的人中选1人有3种不同的选法.(1)任选1人去献血,即无论选哪种血型的哪一个人,这件“任选1人去献血”的事件都能完成,所以由分类加法计数原理,共有28+7+9+3=47种不同的选法.(2)要从四种血型的人中各选1人,即要在每种血型的人中依次选出1人后,这件“各选1人去献血”的事件才完成,所以用分步乘法计数原理,共有28×7×9×3=5 292种不同的选法.18.(12分)在杨辉三角形中,每一行除首末两个数之外,其余每个数都等于它肩上的两数之和. (1)试用组合数表示这个一般规律;(2)在数表中试求第n 行(含第n 行)之前所有数之和;(3)试探究在杨辉三角形的某一行能否出现三个连续的数,使它们的比是3∶4∶5,并证明你的结论.C n+1r =C n r +C n r -1.(2)1+2+22+…+2n =2n+1-1.(3)设C n r -1∶C n r ∶C n r+1=3∶4∶5,由C nr -1C nr =34,得r n -r+1=34,即3n-7r+3=0. ①由C nr C n r+1=45,得r+1n -r=45,即4n-9r-5=0.②解①②联立方程组,得n=62,r=27,即C 6226∶C 6227∶C 6228=3∶4∶5.19.(12分)已知(1-2x )n =a 0+a 1x+a 2x 2+…+a n x n (n ∈N +),且a 2=60,求: (1)n 的值; (2)-a 12+a 222−a 323+…+(-1)n a n2n 的值.因为T 3=C n 2(-2x )2=a 2x 2, 所以a 2=C n 2(-2)2=60,化简可得n (n-1)=30,且n ∈N +, 解得n=6.(2)T k+1=C 6k (-2x )k =a k x k , 所以a k =C 6k (-2)k ,所以(-1)k a k2k=C 6k ,-a 12+a 222−a 323+…+(-1)n a n 2n=C 61+C 62+…+C 66=26-1=63.20.(12分)5名男生,2名女生站成一排照相. 求在下列约束条件下,有多少种不同的站法. (1)女生不站在两端; (2)女生相邻; (3)女生不相邻;(4)站成两排,前排3人,后排4人.先考虑两端站的人,再考虑其他位置,满足条件的站法有A 52·A 55=2 400(种).(2)将相邻对象捆绑,当作一个对象,与其他对象一起全排列,可得满足条件的站法有A 66·A 22=1 440(种).(3)分两步:第一步,先排男生,有A 55种站法;第二步,将2名女生插入男生所形成的6个空(包括两端)中,有A 62种站法.由分步乘法计数原理知,满足条件的站法有A 55·A 62=3 600(种).(4)无论分成多少排,实质都是要在7个不同位置上排7个不同对象,因此满足条件的站法共有A 77=5 040(种).21.(12分)用0,1,2,3,4这五个数字组成无重复数字的自然数. (1)在组成的三位数中,求所有偶数的个数;(2)在组成的三位数中,如果十位上的数字比百位上的数字和个位上的数字都小,则称这个数为“凹数”,如301,423等都是“凹数”,试求“凹数”的个数;(3)在组成的五位数中,求恰有一个偶数数字夹在两个奇数数字之间的自然数的个数.将所有的三位偶数分为两类:①若个位数为0,则共有A 42=12个;②若个位数为2或4,则共有2×3×3=18个.所以,共有30个符合题意的三位偶数.(2)将这些“凹数”分为三类:①若十位数字为0,则共有A 42=12个;②若十位数字为1,则共有A 32=6个;③若十位数字为2,则共有A 22=2个.所以,共有20个符合题意的“凹数”.(3)将符合题意的五位数分为三类:①若两个奇数数字在百位和万位,则共有A 22·A 33=12个;②若两个奇数数字在十位和千位,则共有A 22·C 21·A 22=8个;③若两个奇数数字在个位和百位,则共有A 22·C 21·A 22=8个.所以,共有28个符合题意的五位数.22.(12分)已知m ,n 是正整数,f (x )=(1+x )m +(1+x )n 的展开式中x 的系数为7. (1)对于使f (x )的x 2的系数为最小的m ,n ,求出此时x 3的系数; (2)利用上述结果,求f (0.003)的近似值.(精确到0.01)根据题意得C m 1+C n 1=7,即m+n=7,①f (x )中的x 2的系数为C m 2+C n 2=m (m -1)2+n (n -1)2=m 2+n 2-m -n2.将①变形为n=7-m 代入上式,得x 2的系数为m 2-7m+21=(m -72)2+354,故当m=3或m=4时,x 2的系数的最小值为9.当m=3,n=4时,x 3的系数为C 33+C 43=5; 当m=4,n=3时,x 3的系数为C 43+C 33=5.(2)f (0.003)=(1+0.003)4+(1+0.003)3≈C 40+C 41×0.003+C 30+C 31×0.003≈2.02.。
C++习题解答(第5版)-第1章

(C)a+++b
(D)a++++b
7.已知 int i=0, j=1, k=2; 则逻辑表达式 ++i || --j && ++k 的值为( )。
(A)0
(B)1
8.执行下列语句后,x 和 y 的值是(
int x, y;
x = y = 1; ++x || ++y;
(C)2 )。
(D)3
(A)1 和 1
ra=a;
int & rt = q;
//*指针说明符,&引用说明符
rt = 30;
//*间址运算符
//字符串中的*是字符,其他是间址运算符
cout<<"a="<<a<<"\nb="<<b<<"\np="<<p<<"\nq="<<q
<<"\nra="<<ra<<"\nrt="<<rt<<endl;
6. sqrt(pow((x-10),2) + pow((y-20),2))< 35
7. a+b>c && b+c>a && c+a>b
8. (year%4 == 0) && (year%100!=0)||(year%400==0)
【解答】 #include<iostream>
[数字电子技术及应用(第2版)习题答案第1单元习题答案

自我检测题:一、填空题1-1 (1001010)2 =( 112 )8 =( 4A )16 =( 74 )10 1-2 (37.375)10 =( 100101.011 )2 =( 45.3 )8 =( 25.6 )161-3 (CE)16=( 11001110 )2 =( 316 )8 =( 206 )10 =( 001000000110 )8421BCD 1-4在逻辑代数运算的基本公式中,利用分配律可得A (B +C )= AB+AC ,A +BC = (A+B)(A+C) ,利用反演律可得ABC = C B A ++ ,C B A ++ = C B A 。
1-5在数字电路中,半导体三极管多数主要工作在 截止 区和 饱和 区。
1-6 COMS 逻辑门是 单 极型门电路,而TTL 逻辑门是 双 极型门电路。
1-7 COMS 集成逻辑器件在 功耗 、 抗干扰 方面优于TTL 电路,同时还具有结构相对简单,便于大规模集成、制造费用较低等特点。
1-8 CT74 、 CT74H 、 CT74S 、 CT74LS 四个系列的 TTL 集成电路,其中功耗最小的为 CT74LS ;速度最快的为 CT74S ;综合性能指标最好的为 CT74LS 。
二、选择题1-9指出下列各式中哪个是四变量A、B、C、D的最小项( C )。
A 、ABC B 、A+B+C+D C 、ABCD D 、AC 1-10逻辑项D BC A 的逻辑相邻项为( A )。
A 、ABCD —B 、ABCDC 、AB —CD D 、ABC —D1-11当利用三输入的逻辑或门实现两变量的逻辑或关系时,应将或门的第三个引脚( B )。
A 、接高电平B 、接低电平C 、悬空1-12当输入变量A 、B 全为1时,输出为0,则输入与输出的逻辑关系有可能为( A )。
A 、异或 B 、同或 C 、与 D 、或1-13TTL 门电路输入端悬空时应视为( A )电平,若用万用表测量其电压,读数约为( D )。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
一、单项选择题
1. 下列关于牛市价差组合策略收益图的描述不正确的是()。
A. 组合策略收益图中存在两个拐点
B. 组合收益图两个拐点之间的部分的斜率为1
C. 组合收益图两个拐点之间的部分的斜率为0
D. 较低行权价的左侧,组合收益图的斜率为0
您的答案:C
题目分数:10
此题得分:10.0
2. 下列关于买入认购期权的策略收益图,说法错误的是()。
A. 买入认购期权的最大亏损是权利金
B. 在盈亏平衡点的左侧,图形斜率为0
C. 盈亏平衡点=行权价+权利金
D. 在拐点的左侧,图形斜率为0
您的答案:B
题目分数:10
此题得分:10.0
3. 下列关于买入认沽期权的策略收益图,说法不正确的是()。
A. 最大盈利=行权价+权利金
B. 最大亏损为权利金
C. 盈亏平衡点=行权价-权利金
D. 最大盈利=行权价-权利金
您的答案:D
题目分数:10
此题得分:0.0
二、多项选择题
4. 期权组合策略收益图中包含以下()等信息和规律。
A. 组合策略拐点与构成组合策略的期权拐点同步
B. 组合策略拐点与构成组合策略的期权拐点不同步
C. 组合策略斜率等于构成组合策略各部分的斜率之和
D. 组合策略收益等于各部分收益之和
您的答案:A,D,C
题目分数:10
此题得分:10.0
5. 通过学习构建期权组合策略收益图可以()。
A. 加深对期权特性的了解
B. 直观地认识期权策略的意义
C. 判断持有期权策略的盈亏
D. 根据自身需要构建个性化的期权策略
您的答案:C,D,B,A
题目分数:10
此题得分:10.0
6. 在期权策略收益图中,决定图形形态的关键因素是()。
A. 盈亏
B. 斜率
C. 拐点
D. 到期股价
您的答案:C,B
题目分数:10
此题得分:10.0
三、判断题
7. 牛市价差组合策略收益图中存在两个拐点,分别对应较低行权价的认购期权的行权
价和较高行权价的认购期权的行权价。
()
您的答案:正确
题目分数:10
此题得分:10.0
8. 在期权策略收益图中,斜率代表了收益与标的价格的变化关系。
()
您的答案:正确
题目分数:10
此题得分:10.0
9. 买入认购期权的策略收益图中,行权价是期权内在价值的零界点,对应图形的拐点。
()
您的答案:正确
题目分数:10
此题得分:10.0
10. 牛市价差策略是通过买入较低行权价的认购期权和卖出较高行权价的认购期权进
行构建。
()
您的答案:正确
题目分数:10
此题得分:10.0
试卷总得分:90.0。