【单选题】
若已定义x和y为double类型,则表达式x=1,y=x+3/2的值是___
查看试卷,进入试卷练习
微信扫一扫,开始刷题
相关试题
【单选题】
设有 int x=11;则表达式(x++ * 1/3)的值是___
【单选题】
若以下变量均为整型,且num=sum=7;则计算表达式sum=num++,sum++,++num后sum的值为___
【单选题】
C语言中的标识符只能由字母,数字和下划符组成,且第一个字符___
A. 必须为字母
B. 必须为下划线
C. 必须为字母或下划线
D. 可以是字母,数字和下划线中任一字符
【单选题】
假设所有变量均为整型,则表达式(a=2,b=5,b++,a+b)的值是___
【单选题】
若有说明语句;char c=’\72’;则变量c___
A. 包含1个字符
B. 包含2个字符
C. 包含3个字符
D. 说明不合法,c的值不确定
【单选题】
下面不正确的字符串常量是___
A. ‘abc’
B. “12’12”
C. “0”
D. “ ”
【单选题】
若a为int类型,且其值为3,则执行完表达式a+=a-=a*a后,a的值是___
【单选题】
下列选项中,合法的C语言关键词是___
A. VAR
B. cher
C. integer
D. default
【单选题】
以下选项中,与k=n++完全等价的表达式是___
A. k=n,n=n+1
B. n=n+1,k=n
C. k=++n
D. k+=n+1
【单选题】
以下for循环的执行次数是 for(x=0,y=0;(y=123)&&(x<4);x++);___
A. 是无限循环
B. 循环次数不定
C. 4次
D. 3次
【单选题】
语句while(!E);中的表达式!E等价于___
A. E==0
B. E!=1
C. E!=0
D. E==1
【单选题】
下面有关for循环的正确描述是___
A. for循环只能用于循环次数已经确定的情况
B. for循环是先执行循环循环体语句,后判断表达式
C. 在for循环中,不能用break语句跳出循环体
D. for循环的循环语句中,可以包含多条语句,但必须用括号括起来
【单选题】
C语言中while和do-while循环的主要区别是___
A. do-while的循环体至少无条件执行一次
B. while的循环控制条件比do-while的循环控制条件更严格
C. do-while允许从外部转到循环体内
D. do-while的循环体不能是复合语句
【单选题】
以下不是无限循环的语句为___
A. for(y=0,x=1;x>++y;x=i++) i=x
B. for(;;x++=i)
C. while(1){x++;}
D. for(i=10;;i--) sum+=i
【单选题】
C语言用于结构化程序设计的三种基本结构是___
A. 顺序结构、选择结构、循环结构
B. if、switch、break
C. for、while、do-while
D. if、for、continue
【单选题】
对for(表达式1;;表达式3)可理解为___
A. for(表达式1;0;表达式3)
B. for(表达式1;1;表达式3)
C. for(表达式1;表达式1;表达式3)
D. for(表达式1;表达式3;表达式3)
【单选题】
printf函数中用到格式符%5s,其中数字5表示输出的字符串占用5列,如果字符串长度大于5,则输出按方式___
A. 从左起输出该字符串,右补空格
B. 按原字符从左向右全部输出
C. 右对齐输出该字串,左补空
D. 输出错误信息
【单选题】
putchar函数可以向终端输出一个___
A. 整型变量表达式值
B. 实型变量值
C. 字符串
D. 字符或字符型变量值
【单选题】
以下描述中正确的是___
A. 由于do-while循环中循环体语句只能是一条可执行语,所以循环体内不能使用复合句语
B. do-while循环由do开始,用while(表达式)后面不能写分句
C. 在do-while循环体中,一定要有能使while后面表达式的值变为零(“假”)操作
D. do-while循环中,根据情况可以省略while
【单选题】
以下关于运算符优先顺序的描述中正确的是___
A. 关系运算符<算术运算符<赋值运算符<逻辑运算符
B. 逻辑运算符<关系运算符<算术运算符<赋值运算符
C. 赋值运算符<逻辑运算符<关系运算符<算术运算符
D. 算术运算符<关系运算符<赋值运算符<逻辑运算符
【单选题】
已知x=43,ch=’A’,y=0;则表达式(x>=y&&ch<’B’&&!y)的值是___
【单选题】
若希望当A的值为奇数时,表达式的值为“真”,A的值为偶数时,表达式的值为“假”,则以下不能满足要求的表达式是___
A. A%2==1
B. !(A%2==0)
C. !(A%2)
D. A%2
【单选题】
判断char型变量c1是否为小写字母的正确表达式是___
A. ‘a’<=c1<=’z’
B. (c1>=a)&&(c1<=z)
C. (‘a’>=c1)||(’z’<=c1)
D. (c1>=’a’)&&(c1<=’z’)
【单选题】
为了避免在嵌套的条件语句if-else中产生二义性,C语言规定:else子句总是与什么配对___
A. 缩排位置相同的if
B. 其之前最近的if
C. 其之后最近的if
D. 同一行上的if
【单选题】
若有说明:int a[][3]={1,2,3,4,5,6,7};则a数组第一维的大小是___
【单选题】
若二维数组a有m列,则在a[i][j]前的元素个数为___
A. j*m+i
B. i*m+j
C. i*m+j-1
D. i*m+j+1
【单选题】
设有数组定义,char array[ ]=”China”;则数组array所占的___
A. 4个字节
B. 5个字节
C. 6个字节
D. 7个字节
【单选题】
以下能正确定义数组并正确赋初值的语句是___
A. int N=5,b[N][N];
B. int a[1][2]={{1},{3}};
C. int c[2][]={{1,2},{3,4}};
D. int d[3][2]={{1,2},{24}};
【单选题】
若有说明:int a[10];则对a数组元素的正确引用是___
A. a[10]
B. a[3,5]
C. a(5)
D. a[10-10]
【单选题】
以下能对一维数组a进行正确初始化的语句是___
A. int a[10]=(0,0,0,0,0)
B. int a[10]={};
C. int a[]={0};
D. int a[10]={10*1};
【单选题】
若有说明int a[3][4];则对a数组元素的正确引用是___
A. a[2][4]
B. a[1,3]
C. a[1+1][0]
D. a(2)(1)
【单选题】
若有说明int a[3][4];则a数组元素的非法引用是___
A. a[0][2*1]
B. a[1][3]
C. a[4-2][0]
D. a[0][4]
【单选题】
以下能对二维数组a进行正确初始化的语句是___
A. int a[2][]={{1,0,1},{5,2,3}};
B. int a[][3]={{1,2,3},{4,5,6}};
C. int a[2][4]={{1,2,3},{4,5},{6}};
D. int a[][3]={{1,0,1}{},{1,1}};
【单选题】
以下不能对二维数组a进行正确初始化的语句是___
A. int a[2][3]={0};
B. int a[][3]={{1,2},{0}};
C. int a[2][3]={{1,2},{3,4},{5,6}};
D. int a[][3]={1,2,3,4,5,6};
【单选题】
若有说明:int a[3][4]={0};则下面正确的叙述是___
A. 只有元素a[0][0]可得到初值0
B. 此说明语句不正确
C. 数组a中各元素都可得到初值,但其值不一定为0
D. 数组a中每个元素均可得到初值0
【单选题】
若有说明:int a[][4]={0,0};则下面不正确的叙述是___
A. 数组a的每个元素都可以得到0
B. 二维数组a的第一维大小为1
C. 因为二维数组a中第二维大小的值除经初值个数的商为1,故数组a的行数为1
D. 有元素a[0][0]和a[0][1]可得到初值0,其余元素均得不到初值0
【单选题】
在C语言中,引用数组元素时,其数组下标的数据类型允许是___
A. 整型常数
B. 整型表达式
C. 整型常量或整型表达式
D. 任何类型的表达式
【单选题】
以下不能正确定义二维数组的选项是___
A. int a[2][2]={[1},{2}};
B. int a[][2]={1,2,3,4};
C. int a[2][2]={{1},2,3};
D. int a[2][]={{1,2},{3,4}};
【单选题】
假定int类型变量占用两个字节,其有定义:int x[10]={0,2,4};,则数组x在内存中所占字节数是___
推荐试题
【填空题】
39.每年九月的___星期六为“全民国防教育日”。
【填空题】
40.制导技术按照不同控制导引方式可概括为 ___ 、 ___ 、 ___ 、 ___ 和___等五种方式。
【填空题】
41.凭借着___与 ___ 提供的“千里眼”、“顺风耳”,军事指挥员可以迅速、准确、全面地掌握敌方的情况,识别、跟踪和预测敌方未来的行动,从而为克敌制胜创造有利条件。
【填空题】
42.八国联军于___年,发动了侵华战争。
【填空题】
43.1957年10月4日,苏联把世界上第一颗 ___ 送入地球近地轨道.
【填空题】
44.中央军委下属机关有___个部<厅>、___个委员会、___个直属机构。
【填空题】
46.天基武器系统主要指攻击对方航天器用的卫星和卫星平台,包括 ___ 、 ___和___ 等。
【填空题】
47.中国人民解放军海军成立于___年。
【填空题】
48.新概念武器主要有 ___ 、___、 ___ 、 ___ 、___ 等。
【填空题】
49.核武器具有____、冲击波、____ ___、核电磁脉冲和放射性沾染等五种杀伤破坏因素。
【填空题】
50.精确制导技术是指采用高技术直接命中概率超过___以上的武器。
【单选题】
What is an example of social engineering?___
A. gaining access to a computer by observing the user login credentials
B. gaining access to a build through an unguarded entrance
C. gaining access to a server by using a USB stick
D. gaining access to a server room by posing as local IT
【单选题】
Which type of Layer 2 attack enables the attacker to intercept traffic that is intended for one specific recipient?___
A. BPDU attack
B. DHCP starvation I LAB
C. MAC address spoofing
D. CAM table overflow
【单选题】
Which about nested policy maps in a zone-based firewall is true ?___
A. They are limited to two leve ls in a hierarchical policy
B. Parent policies are previously defined policies that are defined by using the service policy command
C. A child policy is a new policy that uses a pre-existing policy.
D. A child policy is a new that uses a pre-existing policy
【单选题】
In which configuration do you configure the ip ospf authentication key 1 command?___
A. routing process
B. interface
C. privileged
D. global
【单选题】
Which statement about command authorization and security contexts is true?___
A. If command authorization is configured, it must be enabled on all contexts.
B. The change to command invokes a new context session with the credentials of the currently
C. AAA settings are applied on a per-context basis
D. The enable. 15 user ang admins with chang to permission ha e dfferent command authorization levels pertontext
【单选题】
Which command do you enter to enable authentication for OSPF on an interface?___
A. router(config-if)#ip ospf message-digest-key 1 md5 CIS COPASS
B. router(config-if)#ip ospf authentication message-digest
C. router(config-if)#ip ospf authentication-key CISCOPASS
D. router(config-if)#area 0 authentication message-digest
【单选题】
What feature defines a campus area network?___
A. It has a single geographic location
B. It lacks external connectivity.
C. It has a limited number of segments.
D. It has limited or restricted Internet access
【单选题】
Which type of attack most commonly involves a direct attack on a network?___
A. :phishing
B. Trojan horse
C. denial of service
D. social engineering
【单选题】
What information does the key length provide in an encryption algorithm?___
A. the cipher block size
B. the hash bloc k size
C. the number of permutations
D. the packet size
【单选题】
How do you verify TaCACS+ connectivity to a device?___
A. You successfully log in to the device by using the local credentials
B. You connect via console port and receive the login prompt.
C. You connect to the device using SSH and receive the login prompt.
D. You successfully log in to the device by using ACS credentials
【单选题】
Which term best describes the concept of preventing the modification of data in transit and in storage?___
A. availability
B. confidentially
C. fidelity
D. integrity
【单选题】
Which loS command is used to define the authentication key for ntp?___
A. switch(config )#ntp authentication-key 1 mds Clcs
B. switch(config )#ntp authenticate
C. switch(config)#ntp trusted-key 1
D. switch(config)#ntp source 192.168.0.1
【单选题】
What is true about the cisco lOS Resilient Configuration feature ?___
A. The feature can be disabled through a remote session
B. There is additional space required to secure the primary cisco lOS image file.
C. The feature automatically detects image or configuration version mismatch.
D. Remote storage is used for securing files
【单选题】
When is the default deny all policy an exception in zone-based firewalls?___
A. when traffic terminates on the router via the self zone
B. when traffic traverses two interfaces in different zones
C. when traffic traverses two interfaces in the same zone
D. when traffic sources from the router via the self zone
【单选题】
.If an access port is assigned as an isolated port in a PVLAN, which network ports can it communicate with?___
A. promiscuous ports in the same PLVAN
B. isolated ports in the same PVLAN
C. all ports in the same PAVLAN at ILAR
D. all ports in the adjacent PVLAN
【单选题】
Which IPSEC mode is used to encypt traffic directly between a client and a server VPN endpoint?___
A. quick mode
B. transport mode
C. aggressive mode
D. tunnel mode
【单选题】
Which command do you enter to verify that a vpn connection is established between two endpoints and that the connection is passing traffic? ___
A. Firewall#sh crypto session
B. Firewall#debug crypto isakmp
C. Firewall#tsh crypto ipsec sa
D. Firewall#sh crypto isakmp sa
【单选题】
which type of Pvlan port allows communication from all port types?___
A. isolated
B. in -line
C. community
D. promiscuous
【单选题】
Which command do you enter to configure your firewall to conceal internal addresses?___
A. no ip directed-broadcast
B. no ip logging facility
C. no proxy-arp
D. no ip inspect audit-trial
E. no ip inspect
F. route
【单选题】
Which feature defines a campus area network? ___
A. It has a limited number of segments.
B. It has limited or restricted Internet access
C. It lacks ex1ternal connectivity.
D. It has a single geographic location
【单选题】
What technology can you use to provide data confidentiality data integrity and data origin authentication on your network?___
A. IPSec
B. Certificate Authority
C. IKE
D. Data
E. ncryption Standards
【单选题】
which standard is a hybrid protocol that uses oakley and skerne ke y exchanges is an ISAKMP framework?___
【单选题】
What is the actual los privilege level of User Exec mode?___
【单选题】
What is the effect of the asa command crypto isakmp nat-traversal?___
A. It opens port 500 only on the out side interface
B. It opens port 500 only on the inside interface
C. It opens port 4500 on all interfaces that are IPSec enabled
D. It opens port 4500 only on the out side interfac
【单选题】
Which Fire POWER preproce ssor engine is used to prevent SYN attacks?___
A. Inline normalization
B. IP Defragmentation
C. Ports can
D. etection
【单选题】
Which NAT type allows objects or groups to reference an IP address ?___
A. identity NAt
B. static NAT
C. dynamic
D. dynamic NAT
【单选题】
Which Auto NAT policies are processed first?___
A. Dynamic NAT with longest prefix
B. Dynamic NAT with shortest prefix
C. static NAT with longest prefix
D. static NAT with shortest prefix
【单选题】
Which feature allows a dynamic Pat pool to se lect the next address in the pat pool instead of the next port of an existing address?___
A. next IP
B. round robin
C. dynamic rotation
D. NAT address rotation