1.  >>  高等继续教育 / Java程序设计
 高等继续教育 / Java程序设计
正确率:认证

题型描述: 编程题

读下面程序,给出最后屏幕输出结果。

 

public class BitwiseDemo {

    static final int VISIBLE = 1;                 static final int DRAGGABLE = 2;

    static final int SELECTABLE = 4;          static final int EDITABLE = 8;

    public static void main(String[] args)    {

        int flags = 0;

        flags = flags | VISIBLE;

        flags = flags | DRAGGABLE;

        if ((flags & VISIBLE) == VISIBLE) {

            if ((flags & DRAGGABLE) == DRAGGABLE) {

                 System.out.println("Flags are Visible and Draggable.");

            }

        }

 

flags = flags | EDITABLE;

        if ((flags & EDITABLE) == EDITABLE) {

    System.out.println("Flags are now also Editable.");

        }

    }

}


  积分
 参考答案:
 佳题速递:
  • 将货物将物料以托盘集装箱集装袋为单位进行组合后再进行装卸,叫做(        )。 正确答案是:集装处理物流成本管理
  • (      )是犯罪的本质特征。社会学概论
  • 建筑工程中应用最广的是Q235号钢 建筑材料
  • 胃底腺的主细胞分泌( )。 a. 黏液b. 内因子c. 胃蛋白酶原d. 盐酸e. 胃蛋白酶人体解剖学与组织胚胎学
  • 题干阅读理解:根据文章内容,选择正确答案(每题10分)。 China has the most franchises in the world but the scale of their operations is relatively small. Each system in China has an average of 43 outlets, compared to more than 540 in the United States. Together, there are 2,600 brands in some 200,000 retail markets. KFC was the most significant foreign entry in 1987 and is widespread. Many franchises are in fact joint-ventures, as at their forming the franchise law was not explicit. For example, McDonald's is a joint venture. Pizza Hut, TGIF, Wal-mart, Starbucks followed a little later. But total franchising is only 3% of retail trade, which seeks foreign franchise growth. The year 2005 saw the birth of an updated franchise law, “Measures for the Administration of Commercial Franchise”. Previous legislation (1997) made no specific inclusion of foreign investors. Today the franchise law is much clearer by virtue of the 2007 law, a revision of the 2005 law. The laws are applicable if there are transactions involving a trademark combined with payments with many obligations on the franchisor. The law comprises 42 articles and eight chapters. 1. According to the passage, the passage mainly talks about 回答ABC未回答正确答案是:C获得2.00分中的0.00分. A. the scale of franchising in China B. the franchise law in China C. an outline of franchising in China 2. KFC was the 回答ABC未回答正确答案是:A获得2.00分中的0.00分 foreign franchise to China in 1987 and is widespread. A. most profoundB. firstC. wealthiest 3. Many franchises are in fact joint-ventures, because 回答ABC未回答正确答案是:A获得2.00分中的0.00分. A. at the beginning stage, franchise law was not so clear B. at the beginning stage, many franchises could not find the right partners C. many foreigners were not familiar with Chinese culture 4. Foreign franchise grows in China because of 回答ABC未回答正确答案是:B获得2.00分中的0.00分. A. the open policy B. the small amount of retail trade C. the Chinese culture 5. The writer has the 回答ABC未回答正确答案是:B获得2.00分中的0.00分 attitude to franchising in China A. negativeB. positiveC. neutral反馈1. 答案:C解析:这是一道主旨题。根据文章的结构和内容,文章对中国的特许经营做了简单的介绍,既没有片面地讲规模,也没有单方面讲法律,所以答案是C。2. 答案:A解析:这是一道细节题。此题信息对应文章的第四句,句中原文中提到KFC进入中国市场,用到the most significant foreign entry“具有深远意义外商进入”,profound与significant同义,所以答案是A。3. 答案:A解析:这是一道细节题。此题信息对应文章的第五句,句中提到在外商在特许经营初创的阶段,法律not explicit“不清楚”,本题选项中not clear 与此属于同义词,所以答案是A。4. 答案:B解析:这是一道细节题。此题信息对应文章的第七句,句中提到,国内只有3%的零售业,规模很小,所以答案是B。5. 答案:B解析:这是一道推断题。文中提到,中国有最多的特许经营店,外商特许经营进入,法律不断完善,因此,对中国特许经营的状况应该持积极态度的,所以答案是B。商务英语4
  • 2[单选题] 液体的流量一定时,流道截面积减小,液体的压强将( )。 A. 减小 B. 不变 C. 增加 D. 不能确定化工原理