首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列代码段的执行结果为( )。 public class BitOperator { public static void main(String args[ ]) { int a=-67,b=11
下列代码段的执行结果为( )。 public class BitOperator { public static void main(String args[ ]) { int a=-67,b=11
admin
2012-12-13
34
问题
下列代码段的执行结果为( )。 public class BitOperator { public static void main(String args[ ]) { int a=-67,b=116,c=78,d; d=~c>>2&(a|~B) ; System.out.println ("d="+D) ; } }
选项
A、d=70
B、d=67
C、d=78
D、d=116
答案
1
解析
本题考查位运算符的使用。掌握了位运算符的使用后易得d的值为70。
转载请注明原文地址:https://kaotiyun.com/show/9R2p777K
本试题收录于:
二级Java题库NCRE全国计算机二级分类
0
二级Java
NCRE全国计算机二级
相关试题推荐
以下程序的输出结果是()。foriin"ation":forkinrange(2):ifi==’n’:breakprint(i,end="")
以下属于Python中导入语句的是()。
数据库系统的数据独立性是指()。
下面对软件描述错误的是()。
在Python中,使用for…in…方式形成的循环不能遍历的类型是()。
以下构成Python循环结构的方法中,正确的是()。
数据库(DB)、数据库系统(DBS)和数据库管理系统(DBMS)之间的关系是()。
在考生文件夹下有一个文件PY202.py,在省略号处填写一行或多行代码,完成如下功能。在已定义好的字典pdict里有一些人名及其电话号码。请用户输入一个人的姓名,在字典中查找该用户的信息,如果找到,生成一个4位数字的验证码,并将名字、电话号码和验证码显示在
下列程序采用BorderLayout布局管理,选择正确的语句填入横线处,实现在North区域显示一个名字为“北方”的Button构件。importjava.awt.*;publicclassex48{
下列______容器的默认布局管理器是BorderLayout。
随机试题
李煜《浪淘沙.帘外雨潺潺》:流水落花春去也,_______。
Everymorning,kidsfromalocalhighschoolareworkinghard.Theyaremakingandsellingspecialcoffeeatacoffeecafe.They
A.拒食致饿死B.食欲大增致肥胖C.出现假怒现象D.变得温顺驯服
下列哪种类型药物易从乳汁中分泌
1998年2月1日,甲与乙订立一份借款合同,约定甲借给乙5万元,乙于2000年4月至6月间还款付息。丙与甲订立一份保证合同,约定丙对乙履行债务承担保证责任。如果约定丙承担一般保证责任,保证期间为1998年2月15日至2000年6月30日。则依法律规定,
《刑法》第二百六十九条对转化型抢劫作出了规定,下列哪些选项不能适用该规定?()
在订立合同时显失公平的合同属于可变更、可撤销的合同,则其在法律上的特点有()。
Whenstudentsareaskedtofindoutthechangesoftheirhometownandmakeaplanforanexhibition,whichtypeofthefollowing
汽车安全气囊内所装的化学物质,能在碰撞互殴10毫秒内生产一种空气中含量最多的气体,该气体是氮气。()
在双向循环链表中,在P指针所指向的结点前插入一个指针q所指向的新结点,其修改指针的操作是(55)。
最新回复
(
0
)