下面程序的输出结果是 ( )public class ex2 public static void main(String []args) for(int cnt=1;cnt<=10;cnt++) if(cnt<=5) continue; System.out.print(cnt+"");
A. 1 2 3 4
B. 6 7 8 9
C. 1 2 3 4 6 7 8 9 10
D. 6 7 8 9 10
查看答案
Believe it or not, optical illusion (错觉) can cut highway crashes. Japan is a case in point. It has reduced automobile crashes on some roads by nearly 75 percent using a simple optical illusion. Bent stripes, called chevrons (人字形), painted on the roads make drivers think that they are driving faster than they really are, and thus drivers slow down. Now the American Automobile Association Foundation for Traffic Safety in Washington D.C. is planning to repeat Japan’’s success. Starting next year, the foundation will paint chevrons and other patterns of stripes on selected roads around the country to test how well the patterns reduce highway crashes. Excessive speed plays a major role in as much as one fifth of all fatal traffic accidents, according to the foundation. To help reduce those accidents, the foundation will conduct its tests in areas where speed-related hazards are the greatest — curves, exit slopes, traffic circles, and bridges. Some studies suggest that straight, horizontal bars painted across roads can initially cut the average speed of drivers in half. However, traffic often returns to full speed within months as drivers become used to seeing the painted bar. Chevrons, scientists say, not only give drivers the impression that they are driving faster than they really are but also make a lane spear to be narrower. The result is a longer lasting reduction in highway speed and the number of traffic accidents. The passage mainly discusses ________.
A. a new way of highway speed control
B. a new pattern for painting highways
C. a new approach to training drivers
D. a new type of optical illusion
阅读以下应用说明、图和C++代码,根据要求回答问题1至问题3。 [说明] 已知以下C++程序运行时的输出结果如下。 1:1 1:1 1:1 [C++程序] 01 #include <iostream> 02 using namespace std; 03 class Stock{ 04 protect: 05 (1) { }; 06 Stock(int n, int pr=1) { 07 shares = n; share_val=pr; 08 }; 09 void ~Stock() { }; 10 public: 11 //成员函数 12 void output() { 13 (2) << shares << ":" << share_val << endl; 14 } 15 private: 16 //成员变量 17 int shares; 18 int share_val; 19 }; 20 21 void main() { 22 Stock a(1); a.output 23 Stock b; b.output 24 Stock c = Stock (); c.output 25 } [问题2] 类Stock的定义中有两处错误,请指出错误所在行号并给出该行修改后的完整结果。
屋面的变形缝处不论采用哪一种防水做法,其泛水高度必须大于15mm。
A. 对
B. 错
《外商投资产业指导目录》和《中西部地区外商投资优势产业目录》是指导审批外商投资项目和外商投资企业适用有关政策的依据。根据实际情况,国务院会修订这两个目录,当前适用目录分别是( )。
A. 《外商投资产业指导目录(2007年修订)》和《中西部地区外商投资优势产业目录(2008年修订)》
B. 《外商投资产业指导目录(2007年修订)》和《中西部地区外商投资优势产业目录(2011年修订)》
C. 《外商投资产业指导目录(2011年修订)》和《中西部地区外商投资优势产业目录(2008年修订)》
D. 《外商投资产业指导目录(2011年修订)》和《中西部地区外商投资优势产业目录(2011年修订)》