当前位置:文档之家› R语言第四章第五章课后习题答案

R语言第四章第五章课后习题答案

R语言第四章第五章课后习题答案
R语言第四章第五章课后习题答案

(1)、点估计:

点估计中总体的均值 与 的点估计相等,即:

编写程序如下:

x<-c(0.1,0.2,0.9,0.8,0.7,0.7);x

x1<-mean(x);x1

a<-(2*x1-1)/(1-x1);a

程序运行结果:

> x<-c(0.1,0.2,0.9,0.8,0.7,0.7);

> x1<-mean(x);

> a<-(2*x1-1)/(1-x1);a

[1] 0.3076923

即点估计值1?α

=0.3076923 (2)、极大似然估计:

本题所示密度函数的似然函数为:

11(;)(;)(1)

n n

n i i i i L x f x x αααα====+∏∏ 相应的对数似然函数为:

1ln (;)ln(1)ln n

i i L x n x ααα==++∑

得到对数似然方程:

1

ln (;)ln 01n i i L x n x ααα=?=+=?+∑ 即α的极大似然估计量2?α

为: 21?1ln n

i i n x

α=-=-∑

考虑用R 软件求其数值解:

x<-c(0.1 0.2 0.9 0.8 0.7 0.7)

f<-function(p) 6/(p+1)+sum(log(x))

out<-uniroot(f,c(0,1))

程序运行结果:

$root [1] 0.211182

1210011(1)|22EX x x dx x ααααααα+++=+==++?

EX α11?==2

EX ααα++

[1] -3.844668e-05

$iter

[1] 5

$estim.prec

[1] 6.103516e-05

即极大似然估计值2?α

=0.211182

4.2、

编写程序如下:

x<-c(rep(5,times=365),rep(15,times=245),rep(25,times=150),rep(35,times=100),rep(45,times=70),rep(55,times=45),rep(65,times=25));x

n<-length(x);n

f<-function(a) a-n/sum(x)

out<-uniroot(f,c(0,3));out

程序运行结果:

$root

[1] 0.05

$f.root

[1] 0

$iter

[1] 1

$estim.prec

[1] 2.95

即点估计值为:0.05。

5.1、

根据题意作如下假设:

900910:22510/()

:22510/H u u L H u u L ==?≠=?无差异

(1) 编写程序P_value:

P_value<-function(cdf,x,paramet=numeric(0),side=0){

n<-length(paramet)

P<-switch(n+1,

cdf(x),

cdf(x,paramet),

cdf(x,paramet[1],paramet[2]),

cdf(x,paramet[1],paramet[2],paramet[3])

)

if (side<0) P

else if (side>0) 1-P

if (P<1/2) 2*P

else 2*(1-P)

}

(2) 编写程序mean.test1.R :

mean.test1<-function(x,mu=0,sigma=-1,side=0){

source("C:\\P_value.R")

n<-length(x);xb<-mean(x)

if (sigma>0){

z<-(xb-mu)/(sigma/sqrt(n))

P<-P_value(pnorm,z,side=side)

data.frame(mean=xb,df=n,Z=z,P_value=P)

}

else{

t<-(xb-mu)/(sd(x)/sqrt(n))

P<-P_value(pt,t,paramet=n-1,side=side)

data.frame(mean=xb,df=n-1,T=t,P_value=P)

}

}

(3) 程序:

X<-c(220,188,162,230,145,160,238,188,247,113,

126,245,164,231,256,183,190,158,224,175)

source("C://mean.test1.R")

mean.test1(X,mu=225,side=0)

结果如下:

mean df T P_value

1 192.15 19 -3.47826

2 0.002516436

求得的P 值小于0.05,故拒绝原假设,即油漆工人的血小板计数与正常成年男子有显著性差异。

5.2、

0010:1000:1000H u u h

H u u h ≥=<=

程序:

X<-c(1067,919,1196,785,1126,936,918,1156,920,948)

source("C://mean.test1.R")

mean.test1(X,mu=1000,side=-1)

结果:

mean df T P_value

1 997.1 9 -0.0697132

2 0.4729732

求得的P 值为0.4729732>0.05,即接受原假设,这个星期生产出的灯泡能使用1000h 以上的概率为0.4729732。

语言学课后习题答案

语言学概论作业 Chapter 1 1.How do you interpret the following definition of linguistics: linguistics is the scientific study of language? To understand this definition, we should focus on three words in this sentence: scientific, study and language. First of all, scientific here means a study which is based on the systematic investigation of linguistic data, conducted with reference to some general theory of language structure. The linguist studies it to discover the nature and rules of the underlying language system. Secondly, the word study here refers to investigation or examination. Thirdly, Language here is general term. It refers to any human language, Chinese spoken by the Chinese, English by the English people, German by the Germans, or even Esperanto, an artificial language. Language here also means the dialects or variants of a common language such as Cantonese, a variant of Mandarin.Therefore, this whole sentence can be interpreted that linguistics is a language study through the systematic investigation of linguistic data and some general theory of language structure. 2.What are the major branches of linguistics? What does each of them study? Phonetics:the study of sounds used in linguistic communication.It describes individual speech sounds and indicates their physical or phonetic properties. Phonology:it studies the ways in which these sounds form patterns and systems and how they work to convey meaning in the system of language. Morphology: a field of linguistics focused on the study of the forms and formation of words in a language Syntax:A set of rules that govern how words are combined to form phrases and sentences. Pragmatics: the study of the use of language in a social context. 3.In what basic ways does modern linguistics differ from traditional grammar? ①Linguistics is descriptive while traditional grammar is prescriptive. ②Modern linguistics regards the spoken language as primary, not the written. ③Modern linguistics differs from traditional grammar also in that it does not force languages into a Latin-based framework. 4.Is modern linguistics mainly synchronic or diachronic? Why? In modern linguistics, the linguists seem to give priority to synchronic studies other than diachronic ones. Because it is believed that unless the various states of

汇编语言课后习题答案

2.1已知DS=2000H、BX=0100H、SI=0002H,存储单元[20100H]~[20103H]依次存放12345678H,[21200H]~[21203H]依次存放2A4C B765H,说明下列每条指令执行完后AX寄存器的内容。 (1)mov ax,1200h (2)mov ax,bx (3)mov ax,[1200h] (4)mov ax,[bx] (5)mov ax,[bx+1100h] (6)mov ax,[bx+si] (7)mov ax,[bx][si+1100h] 〔解答〕 (1)AX=1200H (2)AX=0100H (3)AX=4C2AH;偏移地址=bx=0100h (4)AX=3412H;偏移地址=bx=0100h (5)AX=4C2AH;偏移地址=bx+1100h=1200h (6)AX=7856H;偏移地址=bx+si=0100h+0002h=0102h (7)AX=65B7H;偏移地址=bx+si+1100h=0100h+0002h+1100h=1202h 〔习题2.2〕指出下列指令的错误 (1)mov cx,dl (2)mov ip,ax (3)mov es,1234h (4)mov es,ds (5)mov al,300 (6)mov[sp],ax (7)mov ax,bx+di

(8)mov20h,ah 〔解答〕 (1)两操作数类型不匹配 (2)IP指令指针禁止用户访问 (3)立即数不允许传给段寄存器 (4)段寄存器之间不允许传送 (5)两操作数类型不匹配 (6)目的操作数应为[SI] (7)源操作数应为[BX+DI] (8)立即数不能作目的操作数 〔习题2.5〕已知SS=2200H、SP=00B0H,画图说明执行下面指令序列时,堆栈区和SP的内容如何变化?mov ax,8057h push ax mov ax,0f79h push ax pop bx pop[bx] 〔解答〕 mov ax,8057h push ax mov ax,0f79h push ax pop bx;bx=0f79h pop[bx];DS:[0f79h]=8057h

部分语言学课后练习答案

II.Give the description of the following sound segments in English. 1. [?] voiceless dental fricative 2. [?]: voiceless postalveolar fricative 3. [?]: velar nasal 4. [d]: voiced alveolar stop 5. [p]: voiceless bilabial stop 6. [k]: voiceless velar stop 7. [l]: alveolar lateral 8. [i]: high front lax unrounded vowel 9. [u:]: high back tense rounded vowel 10. [?]: low back lax rounded vowel III. Give the IPA symbols for the sounds that correspond to the descriptions below. 1.voiceless labiodental fricative: [f] 2.voiced postalveolar fricative: [?] 3.palatal approximant: [j] 4.voiceless glottal fricative: [h] 5.voiceless alveolar stop: [t] 6.high-mid front unrounded vowel: [i] 7.high central rounded vowel: [] 符号里没找到,就是在语音[U]上划一横 8.low front rounded vowel: [?] 9.low-mid back rounded vowel: [?] 10. high back rounded tense vowel: [u:] V. Discuss the following questions. 4) To what extent is phonology related to phonetics and how do they differ? Phonetics is the branch of linguistics studying the characteristics of speech sounds and provides methods for their description, classification and transcription. Phonology is the study of sound systems that occur in a language and the patterns where they fall in. Minimal pairs, phonemes, allophones, free variation, complementary distribution, etc., are all to be investigated by a phonologist. Both are concerned with the same aspect of language----the speech sounds. But they differ in their approach and focus. Phonetics is of general nature; it is interested in all the speech sounds used in all human languages; it focuses on chaos. Phonology aims to discover how speech sounds in a language form patterns and how these sounds are used to convey meaning in linguistic communication. A phonologist studies what he believes are meaningful sounds related with their semantic features, morphological features, and the way they are conceived and printed in the depth of the mind. Phonological knowledge permits a speaker to produce sounds which form meaningful utterances, to recognize a foreign “accent”, to make up new words, to add the appropriate phonetic segments to form plurals and past tenses, to know what is and what is not a sound in one?s language. It focuses on order.

汇编语言课后习题解答

第1章基础知识 检测点1.1(第9页) (1)1个CPU的寻址能力为8KB,那么它的地址总线的宽度为13位。 (2)1KB的存储器有1024个存储单元,存储单元的编号从0到1023。 (3)1KB的存储器可以存储8192(2^13)个bit,1024个Byte。 (4)1GB是1073741824(2^30)个Byte、1MB是1048576(2^20)个Byte、1KB是1024(2^10)个Byte。 (5)8080、8088、80296、80386的地址总线宽度分别为16根、20根、24根、32根,则它们的寻址能力分别为: 64(KB)、1(MB)、16(MB)、4(GB)。 (6)8080、8088、8086、80286、80386的数据总线宽度分别为8根、8根、16根、16根、32根。则它们一次可以传送的数据为: 1(B)、1(B)、2(B)、2(B)、4(B)。 (7)从内存中读取1024字节的数据,8086至少要读512次,80386至少要读256次。 (8)在存储器中,数据和程序以二进制形式存放。

(1)1KB=1024B,8KB=1024B*8=2^N,N=13。 (2)存储器的容量是以字节为最小单位来计算的,1KB=1024B。 (3)8Bit=1Byte,1024Byte=1KB(1KB=1024B=1024B*8Bit)。 (4)1GB=1073741824B(即2^30)1MB=1048576B(即2^20)1KB=1024B(即2^10)。(5)一个CPU有N根地址线,则可以说这个CPU的地址总线的宽度为N。这样的CPU 最多可以寻找2的N次方个内存单元。(一个内存单元=1Byte)。 (6)8根数据总线一次可以传送8位二进制数据(即一个字节)。 (7)8086的数据总线宽度为16根(即一次传送的数据为2B)1024B/2B=512,同理1024B/4B=256。 (8)在存储器中指令和数据没有任何区别,都是二进制信息。

汇编语言 第二版 王爽 完整答案

第1章基础知识 检测点1.1 (1)1个CPU的寻址能力为8KB,那么它的地址总线的宽度为13。 (2)1KB的存储器有1024个存储单元。存储单元的编号从0到1023。 (3)1KB的存储器可以存储1024*8个bit,1024个Byte。 (4)1GB、1MB、1KB分别是2^30、2^20、2^10 Byte。(n^m的意思是n的m次幂) (5)8080、8088、80286、80386的地址总线宽度分别是16根、20根、24根、32根,则它们的寻址能力分别为:64(KB)、1(MB)、16(MB)、4(GB)。 (6)8080、8088、8086、80286、80386的数据总线宽度分别为8根、8根、16根、16根、32根。则它们一次可以传送的数据为:1(B)、1(B)、2(B)、2(B)、4(B)。 (7)从内存中读取1024字节的数据,8086至少要读512次、80386至少要读256次。 (8)在存储器中,数据和程序以二进制形式存放。 第2章寄存器答案 检测点2.1 (1) 写出每条汇编指令执行后相关寄存器中的值。 mov ax,62627 AX=F4A3H mov ah,31H AX=31A3H mov al,23H AX=3123H add ax,ax AX=6246H mov bx,826CH BX=826CH mov cx,ax CX=6246H mov ax,bx AX=826CH add ax,bx AX=04D8H mov al,bh AX=0482H mov ah,bl AX=6C82H add ah,ah AX=D882H add al,6 AX=D888H add al,al AX=D810H mov ax,cx AX=6246H (2) 只能使用目前学过的汇编指令,最多使用4条指令,编程计算2的4次方。 解: mov ax,2 add ax,ax add ax,ax add ax,ax 检测点2.2 (1) 给定段地址为0001H,仅通过变化偏移地址寻址,CPU的寻址范围为00010H到1000FH。 (2) 有一数据存放在内存 20000H 单元中,先给定段地址为SA,若想用偏移地址寻到此单元。

C语言课后习题答案(最终)

第0章习题 1. 将下列十进制数分别转化为二进制数、八进制数和十六进制数: (1)128 (2)511 (3)1024 (4)65535 (5)1048575 答: (1)10000000、200、80 (2)111111111、777、1FF (3)10000000000、2000、400 (4)1111111111111111、177777、FFFF (5)11111111111111111111、3777777、FFFFF 2. 将下列二进制数转化为十进制数和十六进制数: (1)1100110101B (2)101101.1011B 答: (1)821、335 (2)45.6875、2D.B 3. 写出下列数的原码、反码、补码:15、-20、-27/32 答: (1)00001111、00000000、00001111 (2)10010100、11101011、11101100 (3)1.1101100、1.0010011、1.0010100 4. 16位无符号定点整数的数值表示范围为多少?8位补码的表示范围是多少?16位补码的表示范围是多少? 答: 0~65535、-128~127、-32768~32767 5.1968年Dijkstra提出结构化程序设计的思想的原因是什么?简要回答结构化程序设计的经典定义。 答: 结构化程序设计概念的提出主要是源于程序结构的层次性与模块化使得构造出来的软件具有良好的可理解性和可维护性,随着软件规模的扩大与复杂性的提高,程序的可维护性成为程序设计者们关注的重要问题之一。 如果一个程序的代码块仅仅通过顺序、选择和循环这3种基本控制结构进行连接,并且每个代码块只有一个入口和一个出口,则称这个程序是结构化的。 6.C程序在内存中存储在哪儿?计算机的内存空间是如何分区的?分区存放不同类型的数据的目的是什么? 答:

徐通锵 叶蜚声 《语言学纲要》学习指导书课后习题答案

《语言学概论》学习辅导书参考答案(导言) 一、名词解释(20分,每小题4分) 1.语言学:就是以语言为研究对象的科学,研究语言的本质、语言的结构和发展规律。 2.小学:指我国传统的语文学,包括文字学、音韵学、训诂学三方面的内容。 3.专语语言学:也叫具体语言学、个别语言学,以一种(或几种有联系的)语言为研究对象,研究某一种语言的结构。 4.共时语言学:以同时的、静态分析的方法,研究语言相对静止的状态,描写分析语言在某一个时期、某一个阶段的状况,是从横向的方面研究语言。 5.历时语言学:从历时的、动态的角度研究语言发展的历史,观察一种语言的各个结构要素在不同发展阶段的历史演变,是从纵向的方面研究语言的历史。 二、填空题(20分,每空1分) 1.中国? 印度? 古希腊-罗马具有悠久的历史文化传统,是语言的三大发源地。 2.文字学? 音韵学? 训诂学? 是我国传统的语文学。 3.研究语言的结构,主要是研究语音? 词汇和语义? 语法三个部分。 4.运用语言传递信息的过程,可分为编码? 发送? 传递? 接收解码五个过程 5.专语语言学可以从纵向和横向研究语言,由于研究角度不同,所以又分为历时语言学和共时语言学 6.历史比较语言学的建立,标志着语言学开始走上独立发展的道路。 7.布隆菲尔德的代表着作《语言论》,是美国结构主义语言学的奠基性着作。 8.索绪尔被称为现代语言之父,其代表作有《普通语言学教程》 三、问答题(60分,每小题10分) 1.古代的语言研究和今天的语言研究有哪些不同? ①研究对象不同:古代的语言学主要以书面语为主要研究材料,不重视口头语言的研究,而今天的语言学则十分重视口语研究,如制定语言规范,确立共同语的各方面标准等,都要依据口语的研究成果; ②研究目的不同:古代语言学研究语言,主要是给政治、哲学、宗教、历史、文学方面的经典着作作注解,比如我国古代的语文学主要就是围绕阅读先秦经典着作的需要来研究文言的,而现代语言学的研究目的主要是分析语言的结构,以此探讨语言发展的共同规律。 2.语言交际过程分哪几个阶段?请举例具体说明 可分为编码、发送、传递、接收、解码五个阶段。编码就是发话人利用词语组织语句;发送就是把思维成果变成话语,通过发音器官表达出来;传递就是通过空气振动形成声波,把话语传达给受话人;接收是受话人利用听觉器官感知对方所说的话;解码则经过大脑的思维把声波还原成语言,理解对方话语的含义,从而完成信息传递接收。如果受话人收到语言信息有所反馈,那么上述五个阶段则又重复一遍,只是发话人与受话人调换了。 3.“语言学既是一门古老的科学,又是一门年轻的科学;既与社会科学有密切的联系,有与自然科学有密切的联系。”怎样理解这段话的含义? 语言是伴随着人类一起出现的,是人类社会生活必不可少的,所以人类很早就注意到了语言的重要性,很早就注意研究语言,所以语言学是古老的,但语言学直到18世纪下半叶,产生了历史比较语言学,后来又建立了语言学的各个部门,语言研究才发展成为一门独立的学科,同其它学科相比,语言学的确是十分年轻的。语言是社会现象,与社会的政治、经济、文化、历史等密切相关,而语言的发生又与物理、生理、心理等学科密切相关,而现代社会语言与语言的信息处理(如机器翻译、语码转换等)又涉及到数学、计算机科学,所以语言学既与社会科学有密切的联系,又与自然科学有密切的联系。正因为如此,随着语言学与别的学科的交融,又产生了许多新的语言学分支学科,如社会语言学、心理语言学、统计语言

汇编语言课后习题答案___郑晓薇(整理后的)

习题一 1 无符号数: 11010011=211=D3H,01110111=119=77H, 10000011=131=83H, 00101111=47=2FH, 10101010=170=AAH 带符号数:11010011= -45=D3H,01110111=+119=77H,10000011= -125=83H, 00101111=+47=2FH,10101010= -86=AAH 2 5E8AH,0BE6H,3DEH,4940H 3 00011101+00110101=01010010=5 2H=82 01001001+11101000=00110001=3 1H=49 10111110+01010010=00010000=1 0H=16 10011010+11110001=10001011=8 BH= -117 4 00101001+01010011=01111100+0 0000110=10000010=82H=82 01110011-00100100=01001111-00000110=01001001=49H=49 01100110+00011000=01111110+0 0000110=10000100=84H=84 0000000100110010+01110101=00 00000110100111+00000110 =0000001000000111=0207H=207 5 000020A3H,FF94H,00003456H,007FH,FFFFEC00H 6 无符号数:0~65535,0000H~FFFFH;带符号数:-32768~+32767,8000H~7FFFH 7 (1) 38H等于十进制数56,是十进制数56的补码,数字8的ASCII码,十进制数38的压缩BCD码 (2) FFH等于十进制数-1,是带符号数-1的补码,无符号数为255 (3) 5AH等于十进制数90,是十进制数90的补码,大写字母Z的ASCII码 (4) 0DH等于十进制数13,是十进制数13的补码,回车符的ASCII码 8 (1) 108=01101100B=6CH,补码01101100B,压缩BCD码0000000100001000,ASCII码313038H (2) 46=00101110B=2EH,补码00101110B,压缩BCD码01000110,ASCII码3436H (3) –15=11110001B=F1H,补码11110001B,ASCII码2D3135H (4) 254=0000000011111110B=00FEH,补码0000000011111110B,压缩BCD 码0000001001010100,ASCII码323534H 9 (1) 56+63=01110111B,CF=0,SF=0,ZF=0,OF=0 (2) 83-45=00100110B,CF=0,SF=0,ZF=0,OF=0 (3) -74+29=11010011B,CF=0, SF=1,ZF=0,OF=0 (4) -92-37=01111111B,CF=1, SF=0,ZF=0,OF=1 10 回车、换行、响铃、ESC键、空格键、@、P、p 习题二 9 最少划分为16个逻辑段,最多划分为65536个逻辑段(每段16个字节) 10 CS:IP,DS:BX、SI、DI,ES:BX、SI、DI,SS:SP、BP 11 字节单元保存8位数,字单元保存16位数。根据源操作数的属性确定要访问的是字节单元还是字单元。 12 对于字节单元来说,偶地址和奇地址一样;对于字单元而言,最好用偶地址保存,可减少CPU的访存次数。 13 首单元的物理地址=38AE8H,末单元的物理地址 =38AE8H+7FFFH=40AE7H

《汇编语言与接口技术》答案习题解答(第三章)

解: mov ah,1 ;只允许输入小写字母 int 21h sub al,20h ;转换为大写字母 mov dl,al mov ah,2 int 21h ;显示 解: mov ax, bufX cmp ax, bufY jge done mov ax, bufY done: mov bufZ, ax 解:

.model small .stack .data bufX dw -7 signX db .code .startup cmp bufX,0 ;test bufX,80h jl next ;jnz next mov signX,0 jmp done next: mov signX,-1 done: .exit 0 end 解: mov dl,’2’ mov ax,bufX cmp ax,bufY je next1 dec dl next1: cmp ax,bufZ je next2 dec dl next2: mov ah,2 int 21h

编制程序完成12H、45H、0F3H、6AH、20H、0FEH、90H、0C8H、57H和34H等10个字节数据之和,并将结果存入字节变量SUM中(不考虑溢出和进位)。 ; .model small .stack .data b_data db 12h,45h,0f3h,6ah,20h,0feh,90h,0c8h,57h,34h ;原始数据num equ 10 ;数据个数 sum db ;预留结果单元 .code .startup xor si, si ;位移量清零 xor al, al ;取第一个数 mov cx, num ;累加次数 again: add al, b_data[si] ;累加 inc si ;指向下一个数 loop again ;如未完,继续累加 mov sum, al ;完了,存结果 .exit 0 end 解: lucase proc push bx mov bx,offset string cmp al,0 je case0 cmp al,1

最新c语言课后习题答案汇总

c语言课后习题答案

第二章习题 2.什么叫做结构化算法?为什么要提倡结构化算法? 答:结构化算法是由一些基本结构顺序组成的。在基本结构之间不存在向前或向后的跳转,流程的转移只存在于一个基本的结构范围内。一个非结构化的算法可以用一个等价的结构化算法代替,其功能不变。 跟结构化算法比较起来,非结构化算法有以下缺点: 流程不受限制的随意转来转去,使流程图豪无规律使人在阅读的时候难以理解算法的逻辑.难以阅读,也难以修改,从而使算法的可靠性和可维护性难以保证。 4. 第三章习题 1.#include #include void main() { unsigned int n;

float p,p1,r=0.09; scanf("%u",&n); p=pow(1+r,n); p1=(p-1)*100; printf("%5.2f%%\n",p1); } 运行结果:输入,回车,见结果: 2.#include #include int main() { int bj=1000; float r1,r2,r3,r5,r0,lx1,lx2,lx3,lx4,lx5; r1=0.0414; r2=0.0468; r3=0.0540; r5=0.0585; r0=0.0072; lx1=bj*r5; lx2=bj*(1+r2)*r3; lx3=bj*(1+r3)*r2; lx4=bj*pow(1+r1,5); lx5=bj*r0*5; printf("lx1=%f lx2=%f lx3=%f lx4=%f lx=5%f\n",lx1,lx2,lx3,lx4,lx5); return 0; } 运行结果: 3.#include #include int main() { long d,p; d=300000; p=6000; double m,r=0.01; m=log(p/(p-d*r))/log(1+r); printf("%4.2f",m); return 0;

岑运强《语言学基础理论(修订版)》习题答案

《语言学基础理论(修订版)》部分习题答案 第一章总论. □言语是 ×. 言论与语言×. 音义结合的符号系统 √. 说话和所说的话 □语言是一种 ×. 形式和内容相统一的视觉符号 √. 音义结合的听觉符号系统 ×. 用来交际的触觉符号系统 □抽象思维的一般特性是 ×. 概括性、民族性×. 概念、判断、推理 ×. 固定、再现、改造√. 概括性、社会性 □语言是思维的工具指的是 ×. 一切思维必须由语言完成 √. 主要指抽象思维和直观动作思维、形象思维的高级阶段离不开语言×. 指直观动作思维和表象思维离不开语言 □思维的三种类型是

√. 直观动作思维、表象思维、抽象思维 ×. 概念、判断、推理 ×. 固定、再现、改造 □语言符号的任意性是 ×. 语言符号的创造和使用总是任意的 ×. 我们可以任意理解语言的符号 √. 语言符号音义之间没有本质的联系 □语言符号的线条性 ×. 语言符号的排列没有阶级性,象一根线条排列在一起 ×. 语言符号一个跟一个依次出现,随时间推移不分层次逐渐延伸√. 语言符号在时间的线条上逐个出现,同时不排除层次性 □“他肯定不会来了!”这句话强调了说者的 ×. 说话行为√. 施事行为 ×. 取效行为×. 言语行为 □汉语声调从中古到现代的“平分阴阳,入派三声”的规律是√. 个别语言的发展规律×. 一般语言的发展规律 ×. 汉民族各种方言的发展规律 □一个民族内部共同使用的语言称为

√. 民族共同语×. 民族交际语 ×. 国际交际语 □克里奥尔语是语言的 √. 混合×. 融合 ×. 分化×. 整化 □语言融合的“底层”现象是 ×. 语言装置的最下面一层,即语音部分√. 被融合的语言的某些遗留下来的因素×. 被压迫的阶层 第二章语音 □声调决定于 √. 音高×. 音强 ×. 音长×. 音质 □[p、t?、b、k]在发音方法上的共同特点是×. 清音×. 不送气 √. 塞音×. 擦音 □舌尖后浊擦音是

汇编语言复习题(附答案)

汇编语言复习题 注:蓝色标记的为答案,此答案仅供参考,大家自己做一下或看以一下,认为不对的地方,可以提出来一起讨论一下,另外看一下课后老师布置的相应作业。在此文档最后最后附有课后四、六章的答案,大家抓紧时间复习哦! 一、选择题 1.把要执行的程序与库文件连接起来形成可执行文件的系统程序是( B ) 。 A.汇编程序 B.连接程序 C.机器语言程序 D.源代码程序 2.在8088/8086的寄存器组中,CPU确定下一条指令的物理地址时需要用到的寄存器对是 ( C )。 A..SS和SP B.DS和DI C.CS和IP D.ES和SI 3.为了使主机访问外设方便起见,外设中的每个寄存器给予一个( C )。 A.物理地址 B. 逻辑地址 C. 端口地址 D.段地址 4.MOV AX,3064H,该指令中源操作数采用的寻址方式是( A )。 A.立即 B.直接 C.寄存器相对 D.寄存器间接 5.换码指令的助记符是( C )。 A. XCHG B. LEAS C.XLAT D. MOV 6.如果A≥B(A、B有符号数)发生转移,应选择的条件转移指令是 ( JGE )。 7.下列符号中,可用作标识符的是( C )。 A.MOV B.AX C.MSG1 D.1ABC 8.X DB 10H DUP(1,2)内存变量定义语句拥有了( A )个字节的存储空间。 A.20D B.10D C.20H D.10H 9.当DF=0时,执行串操作指令MOVSB,变址寄存器SI、DI的值将( C )。 A. 不变 B.减1 C.加1 D.无法确定 10.如下指令可将AX寄存器内容改变的是( A )。 A.AND AX , BX B.TEST AX , BX C.CMP AX , BX D.XCHG AX , AX 11.16位CPU支持的I/O地址范围是( D )。 A.0~0FFFFFH B.0~0FFFFH C.0~0FFFH D.0~0FFH

汇编语言程序设计课后习题解答宋人杰2版

第1章汇编语言基础知识 1.简述汇编语言源程序、汇编程序、和目标程序的关系。 答:用汇编语言编写的程序称为汇编源程序;汇编源程序在汇编程序的翻译下转换成计算机语言变成目标程序。 2. 简述汇编语言的优缺点。 答:(1) 汇编语言的优点: ①可有效地访问、控制计算机各种硬件设备,如磁盘、存储器、CPU、I/O端口等。. ②目标代码简短,占用内存少,执行速度快,是高效的程序设计语言。 ③可与高级语言配合使用,应用十分广泛。 (2) 汇编语言的缺点: ①通用性和可移植性较差 ②相对于高级语言来说较繁锁、易出错、不够直观。 3.CPU的寻址能力为8KB,那么它的地址总线的宽度为多少? 答:13 4. 1KB的存储器有多少个存储单元? 答:1024个字节。 5. 指令中的逻辑地址由哪两部分组成? 答:指令中的逻辑地址由段基址和偏移量组成。 6. 以下为用段基址:偏移量形式表示的内存地址,试计算它们的物理地址。 (1) 12F8:0100 (2) 1A2F:0103 (3) 1A3F:0003 (4) 1A3F:A1FF 答: (1) 13080H (2) 1A3F3H (3) 1A3F3H (4) 245EFH 7. 自12FA:0000开始的内存单元中存放以下数据(用十六进制形式表示): 03 06 11 A3 13 01,试分别写出12FA:0002的字节型数据、字型数据及双字型数据 的值。 答:字节型数据:11H 字型数据:0A311H 双字型数据:0113A311H 8. 内存中某单元的物理地址是19318H,段基地址为1916H,则段内偏移地址为 多少?若段内偏移地址为2228H,则段基地址为多少? 答:若段基地址为1916H,则段内偏移地址为01B8H;若段内偏移地址为2228H,则段基地址为170FH 9. 在实模式环境中,一个段最长不能超过多少字节? 答:64KB 10. 实模式可寻址的内存范围是多少? 答:1MB

《C语言程序设计》课后习题答案(第四版)谭浩强

第1章程序设计和C语言1 1.1什么是计算机程序1 1.2什么是计算机语言1 1.3C语言的发展及其特点3 1.4最简单的C语言程序5 1.4.1最简单的C语言程序举例6 1.4.2C语言程序的结构10 1.5运行C程序的步骤与方法12 1.6程序设计的任务14 1-5 #include int main ( ) { printf ("**************************\n\n"); printf(" Very Good!\n\n"); printf ("**************************\n"); return 0; } 1-6#include int main() {int a,b,c,max; printf("please input a,b,c:\n"); scanf("%d,%d,%d",&a,&b,&c); max=a; if (max

2.5结构化程序设计方法34 习题36 第章最简单的C程序设计——顺序程序设计37 3.1顺序程序设计举例37 3.2数据的表现形式及其运算39 3.2.1常量和变量39 3.2.2数据类型42 3.2.3整型数据44 3.2.4字符型数据47 3.2.5浮点型数据49 3.2.6怎样确定常量的类型51 3.2.7运算符和表达式52 3.3C语句57 3.3.1C语句的作用和分类57 3.3.2最基本的语句——赋值语句59 3.4数据的输入输出65 3.4.1输入输出举例65 3.4.2有关数据输入输出的概念67 3.4.3用printf函数输出数据68 3.4.4用scanf函数输入数据75 3.4.5字符数据的输入输出78 习题82 3-1 #include #include int main() {float p,r,n; r=0.1; n=10; p=pow(1+r,n); printf("p=%f\n",p); return 0; } 3-2-1 #include #include int main() {float r5,r3,r2,r1,r0,p,p1,p2,p3,p4,p5; p=1000;

语言学Chapter课后练习答案

Chapter 4 Revision Exercises 1. What is syntax? Syntax is a branch of linguistics that studies how words are combined to form sentences and the rules that govern the formation of sentences. 2. What is phrase structure rule? The grammatical mechanism that regulates the arrangement of elements (i.e. specifiers, heads, and complements) that make up a phrase is called a phrase structure rule. The phrase structural rule for NP, VP, AP, and PP can be written as follows: NP→(Det) N (PP) ... VP→(Qual) V (NP) ... AP→(Deg) A (PP) ... PP→(Deg) P (NP) ... We can formulate a single general phrasal structural rule in which X stands for the head N, V, A or P. The XP rule: XP→(specifier) X (complement) 3. What is category? How to determine a word’s category? Category refers to a group of linguistic items which fulfill the same or similar functions in a particular language such as a sentence, a noun phrase or a verb. To determine a word's category, three criteria are usually employed, namely meaning, inflection and distribution. The most reliable of determining a word’s category is its distribution. 4. What is coordinate structure and what properties does it have? The structure formed by joining two or more elements of the same type with the help of a conjunction is called coordinate structure. It has four important properties: 1)there is no limit on the number of coordinated categories that can appear prior to the conjunction. 2) a category at any level (a head or an entire XP) can be coordinated. 3)coordinated categories must be of the same type. 4)the category type of the coordinate phrase is identical to the category type of the elements being conjoined. 5. What elements does a phrase contain and what role does each element play? A phrase usually contains the following elements: head, specifier and complement. Sometimes it also contains another kind of element termed modifier. The role each element can play:

相关主题
文本预览
相关文档 最新文档