net 复习题—all

合集下载

计算机网络英文复习题

计算机网络英文复习题

计算机络英文复习题-CAL-FENGHAL-(YICAI)-Company One 1.英译汉(10分)TCP(Transmission Control Protocol) IP (Internet Protocol)RFC(Requests for comments)SMTP(Simple Mail Transfer Protocol) Congestion-control Flow controlUDP (User Datagram Protocol)川八数据报协议FTP(File Transfer Protocol) 文件传输协议HTTP( Hyper-Text Transfer Protocol) 超文本传输协议TDM 时分复用 FDM频分复用ISP(Internet Service Provider) DSL(Digital Subscriber Line) DNS(Domain Name System) ARQ(Automatic Repeat Request)ICMP(Internet Control MessageProtocol) 网间控制报文协议AS(Autonomous Systems) RIP(Routing Information Protocol)\ OSPF(Open Shortest Path First) BGP (Border Gateway Protocol) 边界网关协议HFC光纤同轴电缆混合网22. CRC(Cyclic Redundancy Check) 循环冗余检验23. CSMA/CD 带冲突检测的载波侦听多路存取24. ARP 地址解析协议 25. RARP 反向地址解析协议 26.DHCP动态主机配置协议循环时间互联网工程任务组 统一资源定位 应用程序编程接口 多用途互联网邮件扩展32. MTU(P328)最大传输单元二、单项选择题(每小题1分,共30分)1. DSL divides the communication link between the home and the ISP into three nonoverlapping frequency bands, a upstream channel is in _A ______ ・A)50 kHz to 1 MHz band B) 1 MHz to 2MHz band C)4 kHz to 50kHz bandD)Oto 4kHz band2. As a data packet moves from the upper to the lower layers, headers are A .A) Added; B) subtracted; C) rearranged; D) modified1. 2. 3. 4. 5. 6.7. 8. 9. 10. 11. 12.13. 14. 15. 16. 17.18.传输控制协议 互联网协议 请求评议简单邮件传输协议 拥塞控制 流控制互联网服务提供商 数字用户线路 域名系统自动重发请求 自制系统路由信息协议 开放最短路径优先27. RTT 28. IETF(P5) 29. URL(P88) 30. API 31. MIME3.What is the main function of the network layer DA) node-to-node delivery; B) process-to-process message deliveryC) synchronization; D) updating and maintenance of routing tables4.Which of the following is the default mask for the address 168.0.46.201A) 255.0.0.0; B) 255.255.0.0; C) 255.255.255.0; D) 255.255.255.2555. A router reads the __ address on a packet to determine the next hop. AA) IP ; B) MAC; C) source; D)ARP6 . Which device can't isolates the departmental collision domains. AA) Hub; B) switch; C) router; D) A and B7.Input port of a router don't pei-fonn ______ D ______ f imctions.A) the physical layer functions B) the data link layer functionsC) lookup and forwarding function D) network management8.HTTP has a mechanism that allows a cache to verify that its objects are up to date・ The mechanism is DA) persistent connections B) cookies C) Web Caching D) conditional GET9. A protocol layer can be implemented in ______ D ______ ・A) software B) hardware C) a combination of the software and hardware D) All of the above10.A protocol has three important factors, they are_A ___________ ・A) syntax, semantics, order B) syntax, semantics, layerC) syntax, semantics, packet D) syntax , layer, packet11.There are two broad classes of packet-switched networks: datagram networks andvirtual-circuit networks. The virtual-circuit networks forward packets in their switches use D .A) MAC addresses B) IP addressesC) e-mail addresses D) virtual-circuit numbers12.TCP service model doesn't provide _______ D _________ service・A) reliable transport service B) flow control serviceC) congestion-control service D) guarantee a minimum transmission rate service ・ually elastic applications don^t include ________ B ________ ・A) Electronic mail B) Internet telephonyC) file transfer D) Web transfer14.A user who uses a user agent on his local PC receives his mail sited in a mailserver by using _B ______ protocol.A)SMTP B) POP3C)SNMP D) FTP15.Considering sliding-window protocol, if the size of the transmitted window is N and the size of the receiving window is l,the protocol isA) stop-and-wait protocol B) Go-Back-N protocolC) selective Repeat protocol D) alternating-bit protocol16.which IP address is effective ______ B ________ ・A) 202,131,45,61 B) 126.0.0.1C) 192.268.0.2 D) 290.25」35」217.if IP address is 202.130.191.33, subnet mask is 255.255.255.0,then subnet prefixis_D _______A) 202.130.0.0 B) 202.0.0.0C) 202.130.191.33 D)202.130.191.018.The command Ping s implemented with _B ___________ messagesA) DNS B) ICMPC) IGMP D) RIP19.Which layer-function is mostly implemented in an adapter _A __________________A) physical layer and link layer B) network layer and transport layerC)physical layer and network layer D) transport layer and application layer20.If a user brings his computer from Chengdu to Peking, and accesses Internet again.Now, _B __________ of his computer needs to be changed・A) MAC address B) IP addressC) e-mail address D) user address1._____________________________________ ・traceroute is implemented with _B_______________________________________________________ messages.A) DNS B) ICMPC) ARP D) RIP2. A router reads the A address on a packet to determine the next hop・A. IP ;B. MAC;C. source;D.ARP3.There are two broad classes of packet-switched networks: datagram networksand virtual-circuit networks. The virtual-circuit networks forward packets in their switchesuse _____________________ D ____ ・A) MAC addresses B) IP addressesC) e-mail addresses D) virtual-circuit numbers4.About subnet, which underlying description isif t right ____________A)device interfaces with same subnet part of IP addressB)can" physically reach each other without intervening a router.C)all of the devices on a given subnet having the same subnet address・D) A portion of an interface's IP addi'ess must be detennined by the subnet to which it is connected・5.if IP address is 102.100.100.32, subnet mask is 255.255.240.0,then subnetprefix is ___ A ____A) 102」00.96.0 B) 102.100.0.0C) 102.100.48.0 D) 102.100.112.06 If a user brings his computer from chengdu to beijing, and accesses Internetagain・ Now, ____ B_ of his computer needs to be changed・A) MAC address B) IP addressC) e-mail address D) user address7.Input port of a router don^ pei'fonii ________ D ____ functions.A) the physical layer functions B) the data link layer functionsC) lookup and forwarding function D) network management8.switching fabric is at the heart of a router, switching can be accomplished in a number of ways,donit include^ D _A)Switching via memory B)Switching via crossbarC)Switching via a bus D) Switching via buffer9.if a host wants to emit a datagram to all hosts on the same subnet, then the datagram'sdestination IP address is __________________ B_A)255.255.255.0 B) 255.255.255.255C)255.255.255.254 D) 127.0.0.1lO.The advantage of Circuit switching does not include ________________ ・A) small transmission delay B)small Processing costC) high link utilization D)no limited to format of message1 ・a n ARP query sent to _A_A) local network B) all over the Internet.2..packet-switching technologies that use virtual circuits include_B___________ :A) X.25, ATM, IP B) X.25, ATM, frame relay.C) IPX, IP, ATM D) IPX, IP, TCP3・ In Internet, _ D _ protocol is used to report error and provide the information for un-normal cases・A) IP B) TCP C)UDP D) ICMP1 ・A is a Circuit-switched network・A. TDMB. Datagram networkC. InternetD. virtualcircuit network2.The store-and-forward delay is __ D_______A. processing delayB. queuing delay C・ propagation delay D.transmission delay3・ Which is not the function of connection-oriented service DA. flow controlB. congestion control C・ error correction D.reliable data transfer4. The IP protocol lies in CA. application layerB. transport layerC. network layerD. link layer5. Which of the following is the PDU for application layer _B ________A. datagram;B. message; C・ frame; D・ segment6.bandwidth is described in _B_A) Bytes per second B) Bits per secondC) megabits per millisecond D) centimeters7. A user who uses a user agent on his local PC receives his mail sited in a mail server by using _A_ protocol.A)SMTP B) POP3C)SNMP D) FTP8・ As a data packet moves from the lower to the upper layers, headers arc B ,A)Addcd; B. subtracted: C. rearranged; D. modified三. 填空题(每空1分,共22分(注意:所有填空题不能写中文,否则中文答 案对的情况下扣0.5分)1 ・ link-layer address is variously called a LAN address, a MAC address, or a physical address,2 In 什le layered architecture of computer networking, n layer is the user of n-1 layer and the service provider of n+1 layer ・ A) n B) n+3 C) n+1 D) n-1MechanismUseChecksum Used to detect bit errors in a transmitted packet. Sequence number Used for sequential numbering of packets of dataflowing from sender to receiver ・ Acknowledgmen t (或 ACK) Used by the receiver to tell the sender that a packet orset of packets has been received correctly ・ Countdown timer Used to timeout/retransmit a packet, possibly because the packet (or its ACK)was lost ・ Window,pipelinl ing The sender may be restricted to sending only packetswith sequence numbers that fall within a given range ・1. please fill in the types of delay in a router.四. 判断题(每小题1分,共10分)1 ・ J The sernces of TCP's reliable data transfer founded on the seivices of the unreliable datatransfer.2. J Any protocol that performs handshaking between the communication entitiesbefore transferring data is a conncction-oricntcd sen-ice ・3. x HOL blocking occur in output ports of router ・4. J Socket is globally unique ・5. J SMTP require multimedia data to be ASCII encoded before transfer.6. xThe transmission delay is a function of the distance between the two routers ・7. xIP address is associated with the host or router. SO one device only have one IPaddress ・8. J In packet-switched nehvorks, a session's messages use the resources on demand, and Internet makes its best effort to deliver packets in a timely manner.② nodelProcessionPropagation©queueingrouterTransmission9.x UDP is a kind of unreliable transmission layer protocol, so there is not any checksum field in UDP datagram header・10.J Forwarding tabic is configured by both Intra and Inter-AS routing algorithmIP is a kind of reliable transmission protocol. F8.Forwarding table is configured by both Intra and Inter-AS routing algorithm・T9.Distance vector routing protocol use Isa to advertise the network which router knows.F10.RIP and OS PF are Intra-AS routing protocols T11 ・ Packet switching is suitable for real-time services, and offers better sharing of bandwidththan circuit switching F五、计算题(28 poin⑸1 ・Consider the following net\vork. With the indicated link costs, use Dijkstnf s shortest-path algorithm to compute the shortest path from X to all network nodes・2 Given: an organization has been assigned the network number 198」.1.0/24 and it needs todefine six subnets・ The largest subnet is required to support 25 hosts. Please:• Defining the subnet mask; (2 分)27bits or 255.255.255.224•Defining each of the subnet numbers; which are starting from 0# (4 分)198.1.1.0/27198.1.1.32/27 198.1.1.64/27 198.1.1.96/27 198.1.1.128/27 198.1.1.160/27 198.1.1.192/27 19& 1.1.224/27•Defining the subnet 2¥s broadcast address.(2 分)198.1 ・ 1.95/27•Defining host addresses scope for subnet 2#. (2 分)198.1 ・ 1.65/27— 198.1.1.94/273.Consider sending a 3,000-byte datagram into a link that has an MTU of1500bytes.Suppose the original datagram is stamped with the identification number 422 ・Assuming a 20-byte IP header^How many fragments are generated What are their characteristics (10 分)。

net题目(web方向)

net题目(web方向)

JS 试题
1.添加、删除、替换、插入某个节点前的方法是什么?在元素内新增子元素的方法是什么?
2.用js描述弹出窗口如何居中在浏览器
.NET试题
1.产生一个int数组,长度为100,并向其中随机插入1-100,并数组下标为偶数时,填入邻近奇数,数组下标为奇数时,填入邻近偶数,并不能重复。

2.有一个数组
int[] nums = new int[9];
用随机数将该数组填充完毕后,数组内9个元素各不相同,请用代码描述,如何获取9个元素中值最小的那个元素和最大的那个元素?
3.a=”asdfdsafdsf”,b=”sadflkweorieuri”,在不使用第三方变量的情况下,将a,b的值互换
4.有如下6个目录,
每个文件夹都有子目录和子文件,
用代码将目录名和文件名分别打印出来。

SQL试题
1.有一张表A,将第三行数据找出来。

注:A表无一字段为自增长,无一字段有连续值。

all,both,either,neither,none复习总结练练习习题.doc

all,both,either,neither,none复习总结练练习习题.doc

1.–Who will send you to the new school, your mom or your dad-____. I’ll go there alone. ( )A. bothB. eitherC. neitherD. none2. –Which do you prefer, coffee or tea-____, thanks. I’d like a glass of water. ( )A. eitherB. neitherC. bothD. none3. Mum ans Dad are ____ movie lovers. They have many hobbies in common. ( )A. bothB. eitherC. neither4. Sam looks like his Dad. They are ____ tall. ( )A. eitherB. anyC. allD. both5. –Would you like to go to the concert with me tonight-I’d love to, but ____ of us couple has tickets. Do you have some ( )A. bothB. allC. neitherD. none6. –Are Jim and Bob playing outside-____. They are doing their homework in the study. ( )A. eitherB. bothC. neitherD. none7. –How many students are there in the classroom-____. They are all in the lab. ( )A. noneB. nobodyC. everyoneD. all8. The two girls are great. ____ of them speak good English. ( )A. bothB. neitherC. allD. none9. To help Tommy learn better, his parents have done ____ they could: cards, tapes, special learning centers, in short, everything they can think of. ( )A. bothB. allC. noneD. neither10.Guiyang is a beautiful and clean city. There are many flowers on ____ sides of the streets. ()A. eitherB. neitherC. both11. –Wow! You’ve got so many skirts.-But ____ of them are in fashion now. ( )A. allB. bothC. neitherD. none12. –Which of the caps will you take-I’lltake ____, one for my father, the other for my brother. ( )A. neitherB. bothC. all13. –What do you think of the four classics(名着 ) of China.-I hear that they are wonderful, but I ’ve read ____ of them. ( )A. allB. bothC. neitherD. none14. –I prefer speaking English to listening in English learning.-Oh, really! I think you should be good at ____ of them. ( )A. bothB. neitherC. someD. all15. –Did you see Peter and Mike-No, I saw ____ of them. ( )A. neitherB. eitherC. bothD. none。

net考试题及答案

net考试题及答案

一、填空。

1.面向对象的语言具有封装性、继承性、多态性。

2.列举中的五个主要对象。

Connection 连接数据库Command 查询命令DataAdapter 数据适配器,填充数据集DataSet 数据集,暂存区,多个table的集合DataReader 从数据库中顺序的一条一条读取数据,只能只读3.类成员可访问的形式分别是?Private :私有成员,在类的内部才可以访问Protected:保护成员,该类内部和继承类中才可以访问Public:公有成员,完全公开,没有访问限制4.Float f = 123.5678. int i = (int)f i的值是多少?1235.委托声明的关键字是?delegate二、选择题。

1.用户类若想支持foreach语句需要实现的接口是?IEnumerable2.用户自定义异常类需要从以下哪个类继承?execption3.在中,对于Command对象的ExecuteNonQuery()方法和ExecuteReader()方法,下面叙述错误的是(C)。

a)insert、update、delete等操作的Sql语句主要用ExecuteNonQuery()方法来执行;b)ExecuteNonQuery()方法返回执行Sql语句所影响的行数。

c)Select操作的Sql语句只能由ExecuteReader()方法来执行;d)ExecuteReader()方法返回一个DataReder对象;4.接口是一种引用类型,在接口中可以声明(A),但不可以声明公有的域或私有的成员变量。

a)方法、属性、索引器和事件;b)方法、属性信息、属性;c)索引器和字段;d)事件和字段;5.下列选项中,(C)是引用类型。

a)enum类型 b)struct类型 c)string类型 d)int类型6.下列关于C#中索引器理解正确的是(A)a)索引器的参数必须是两个或两个以上 b)索引器的参数类型必须是整数型c)索引器没有名字 d)以上皆非7.如果设treeView1=new TreeView(),则treeView1.Nodes.Add(“根节点”)返回的是一个 (A) 类型的值。

整理net面试题 (附答案)

整理net面试题 (附答案)
答:Select ID
FROM table1
Where LastUpdateDate = (Select MAX(LastUpdateDate) FROM table1)
10、根据线程安全的相关知识,分析以下代码,当调用test方法时i>10时是否会引起死锁?并简要说明理由。(10分)
public void test(int i)
2)以上代码所使用的异常处理方法,是否所有在test方法内的异常都可以被捕捉并显示出来?
答:只可以捕捉数据库连接中的异常吧. (finally中,catch中,如果有别的可能引发异常的操作,也应该用try,catch。所以理论上并非所有异常都会被捕捉。)
12、简要谈一下您对微软.NET 构架下remoting和webservice两项技术的理解以及实际中的应用。(10)
Console.WriteLine(o.MethodA());
}
}
请问,o.MethodA调用的是: ( A )
A.BaseClass.MethodAB.Class2.MethodA
C.Class1.MethodAD.都不是
6.请叙述属性与索引器的区别。
属性索引器
通过名称标识。通过签名标识。
通过简单名称或成员访问来访问。通过元素访问来访问。
<allow users=”*”>
</authorization>
D. <authorization>
<allow users=”allwin\tess, allwin\king”>
<allow users=”*”>
</authorization>
E.<authorization>
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

试题第1页(共10页) 试题第2页(共10页) 《.NET编程操作实务》复习题 选择题: 1、在C#中,下列关于程序的各种错误,说法错误的是( D )。 A). 只通过调试无法确保程序运行完全正常 B). 通过异常处理,可以捕获运行错误 C). 逻辑错误编译时不能被发现,但是可以通过调试发现 D). 语法错误容易在运行时发现 2、下列描述错误的是( D )。 A)类不可以多重继承而接口可以; B)抽象类自身可以定义成员而接口不可以; C)抽象类和接口都不能被实例化; D)一个类可以有多个基类和多个基接口; 3、在C#中,下列关于结构函数的特点的说法,正确的是( B )。 A). 一个类中,只能有一个构造函数 B). 构造函数的名称与类名称一样,并且没有返回类型 C). 构造函数在对象销毁时自动执行 D). 所有类都可以拥有构造方法 4、在C#中,常量是在程序中一旦设定就不允许被修改的变量,常量使用( A )关键字声明。 A). const B). enum C). final D). static 5、CLR为.NET提供下方面的功能或者服务,除了( D )。 A). 垃圾回收 B). 代码验证和类型安全 C). 代码访问安全 D). 自动消除程序中的语法错误 6、.NET框架是.NET战略的基础,是一种新的便捷的开发平台,它具有两个主要组件,分别是(A)和框架类库。 A). 公共语言运行时 B). Web服务 C). 命名空间 D). Main()函数 7、在C#程序中,使用序列化是将对象的状态储存到特定存储介质中的过程。序列化必须引入的命名空间是(D)。 A). System B). System.Windows.Forms C) System.Collections.Generic D). System.Runtime.Serialization.Formatters.Binary 8、在C#语言中,面向对象编程的特征是( D )。 A). 封装 B). 继承 C). 多态 D). 以上全是 9、在.NET中,Hashtable类所在的命名空间(C )。 A). System.Threading B). System.IO C). System.Collections D). System 10、在C#中,通过调用Thread 类的Sleep(int x)方法来实现禁止线程运行,其中x代表(B)。 A). 禁止线程运行的微秒数 B). 禁止线程运行的毫秒数 C). 禁止线程运行的秒数 D). 禁止线程的个数 简答题: 1、简述 private、 protected、 public、 internal 修饰符的访问权限。 private : 私有成员, 在类的内部才可以访问。 protected : 保护成员,该类内部和继承类中可以访问。 public : 公共成员,完全公开,没有访问限制。 2

internal: 在同一命名空间内可以访问。 2、请列出C#中几种循环的方法,并指出他们的不同。 while 语句执行一个语句或语句块,直到指定的表达式计算为 false。 与 while 语句不同的是,do-while 循环会在计算条件表达式之前执行一次。 for 循环重复执行一个语句或语句块,直到指定的表达式计算为 false 值。 Foreach 语句用于循环访问集合以获取所需信息。 3、请说明.net中的错误处理机制,并举例。 .net错误处理机制采用try-〉catch-〉finally结构,发生错误时,层层上抛,直到找到匹配的Catch为止。 举例: try { 有可能出现异常的代码 } catch { 捕获发生的异常并进行处理 } finally { 无论是否发生异常,都会被执行的代码 } 4、简述重写与重载的区别。 重载:是指在类存在多个同名函数,而这些函数的参数表不同(或许参数个数不同,或许参数类型不同,或参数顺序不同); 重写:是指子类重新定义父类中方法,为了适应需要。 5、如何理解.net中的垃圾回收机制。 .NET中的垃圾回收机制是引用程序对内存的回收和释放。当每次用new关键字创建一个对象时,运行库都要从托管堆中为其分配内存,因为空间是有限的,最终垃圾回收机制是要回收不用的内存的。已释放内存,重新使用。 6、C#中的接口和抽象类有什么异同。 类是对对象的抽象,把类当作对象而进行抽象这样的类叫做抽象类。而接口只是一个行为的规范或规定。 相同点: (1) 都可以被继承。 (2) 都不能被实例化。 (3) 都可以包含方法声明。 (4) 子类必须重写父类的方法。 区 别: (1) 抽象类是一个不完整的类,需要进一步细化,而接口是一个行为规范。 (2) 接口可以被多重实现,抽象类只能被单一继承。 (3) 好的接口定义应该是具有专一功能性的,而不是多功能的,否则造成接口污染。 综合题: 1、建立一个项目,要求在页面中使用Calendar控件和Label控件,当单击Calendar控件中 3

的某个日期后,Label控件显示相应的日期。 步骤: 页面中插入Calendar控件和Label控件 设置Calendar控件的相关属性,为其添加方法 声明相应的方法,实现对应的效果 关键代码:

2、建立一个项目要求在一个页面里使用HtmlInputRadioButton控件显示两个有互斥特性的单选按钮,然后再在页面里放入一个HtmlButton控件和一个Span控件,当单击HtmlButton控件时Span控件显示选中的是哪个单选按钮。 步骤: 页面中创建HtmlInputRadioButton控件、HtmlButton控件和Span控件 设置控件的相关属性,使两个单选按钮为一组 为HtmlButton按钮添加方法 声明相应的方法,实现对应的效果 关键代码:

onserverclick="btn_click" />

相关文档
最新文档