【单选题】关于JavaScript的说法,下列选项中正确的是( )。
A、JavaScript不是一种编程语言,和HTML相似,是一种标记语言
B、JavaScript是一种脚本语言
C、JavaScript没有变量和常量的定义
D、JavaScript不可以用来嵌入HTML中实现一些特殊效果
答案:B
【单选题】TP客户登录后上传文件使用的连接是(),该连接的默认端口为(50)。
A、20
B、21
C、25
D、80
答案:A
解析:TP客户端不管以什么方式连接FTP服务器,先用本地随机端口与FTP服务器TCP 21号端口建立控制连接。待FTP客户登录后要上传或下载文件时,则需要FTP客户端与服务器建立数据连接。FTP服务若工作在主动模式,则默认开启的数据连接端口是TCP 20。
【单选题】一个C类网络中最多可以使用(36)个可用主机IP地址。
A、256
B、255
C、253
D、254
答案:D
解析:C类地址的主机号只有8位,而且主机号全0和全1的这两个IP地址一般保留不用,因此,C类网络中最多可以使用的IP地址个数为28-2=254个。
【单选题】因特网中的域名系统(Domain Name System)是一个分层的域名树,在根域下面是顶级域。下面的项级域中属于国家顶级域的是()。
A、COM
B、EDU
C、NET
D、UK
答案:D
解析:考的是域名的基本概念。需要掌握几个常用的通用顶级域名和常用的国家和地区顶级域名。
【单选题】Open Shortest Path First (OSP F) was designed as an (请作答此空) gateway protocol, for use in an autonomous system such as a local area network (LAN). It implements Dijkstra"s algorithm, also known as the ( ) path first algorithm. As a link-state routing protocol it was based on the link-state algorithm developed for the ARPANET in 1980 and the IS-IS routing protocol. OSPF was first standardised in 1989 as RFC 1131, which is now known as OSPF version 1.Routing protocols like OSPF calculate the shortest route to a destination through the network based on an algorithm. The first routing protocol that was widely implemented, the ( ), calculated the shortest route based on hops, that is the number of routers that an IP packet had to traverse to reach the destination host. RIP successfully implemented dynamic routing, where routing tables change if the network topology changes. But RIP did not adapt its routing according to changing network conditions, such as data-transfer rate. Demand grew for a dynamic routing protocol that could calculate the fastest route to a destination. ( ) was developed so that the shortest path through a network was calculated based on the cost of the route, taking into account bandwidth, delay and load. Therefore OSPF undertakes route cost calculation on the basis of link-cost parameters, which can be weighted by the administrator. OSPF was quickly adopted because it became known for reliably calculating routes through large and complex local area networks.As a link state routing protocol, OSPF maintains link state ( ), which are really network topology maps, on every router on which it is implemented. The state of a given route in the network is the cost, and OSPF algorithm allows every router to calculate the cost of the routes to any given reachable destination. Unless the administrator has made a configuration, the link cost of a path connected to a router is determined by the bit rate (1 Gbit/s, 10 Gbit/s, etc) of the interface. A router interface with OSPF will then advertise its link cost to neighbouring routers through multicast, known as the hello procedure. All routers with OSPF implementation keep sending hello packets, and thus changes in the cost of their links become known to neighbouring routers. The information about the cost of a link, that is the speed of a point to point connection between two routers, is then cascaded through the network because OSPF routers advertise the information they receive from one neighbouring router to all other neighbouring routers. This process of flooding link state information through the network is known as synchronisation. Based on this information, all routers with OSPF implementation continuously update their link state databases with information about the network topology and adjust their routing tables.OSPF has become a popular dynamic routing protocol. Other commonly used dynamic routing protocols are the RIP and the Border Gateway Protocol (BGP). Today routers support at least one interior gateway protocol to advertise their routing tables within a local area network. Frequently implemented interior gateway protocols besides OSPF are RIP, IS-IS, and the proprietary Interior Gateway Routing Protocol (IGRP) by Cisco.
A、exterior
B、interior
C、border
D、routing
答案:B
【单选题】在Linux命令中,()用来显示和设置网络接口的配置信息。
A、ifconfig
B、ipconfig
C、route
D、nslookup
答案:A
【单选题】寄存器寻址方式中的操作数放在()中
A、高速缓存
B、主存单元
C、通用寄存器
D、程序计数器
答案:C
【单选题】以太网控制策略中有三种监听算法,其中一种是:“一旦介质空闲就发送数据,假如介质忙,继续监听,直到介质空闲后立即发送数据”,这种算法的主要特点是()。
A、介质利用率低,但冲突概率低
B、介质利用率高,但冲突概率也高
C、介质利用率低,且无法避免冲突
D、介质利用率高,可以有效避免冲突
答案:B
【单选题】以下关于CPU的叙述中,正确的是( )。
A、CPU中的运算单元、控制单元和寄存器组通过系统总线连接起来
B、在 CPU 中,获取指令并进行分析是控制单元的任务
C、执行并行计算任务的 CPU 必须是多核的
D、单核 CPU 不支持多任务操作系统而多核CPU支持
答案:B
解析:控制器控制CPU的工作,确保程序的正确执行,并且能够处理异常事件。功能上包括指令控制、时序控制、总线控制和中断控制等。单核 CPU通过分时方式可实现对多任务操作系统的支持。
【单选题】将某高级语言程序翻译为汇编语言形式的目标程序,该过程称为( )。
A、编译
B、解释
C、汇编
D、解析
答案:A
解析:这是编译的基本概念。