第一章 单元测试
1、
有定义 int a=9,b=6,c; 执行语句 c=a/b+0.5;后,c 的值为 ( )。
A:1.4
B:2.0
C:1
D:2
答案: 1
2、
C++语言源代码文件扩展名为( )。
A:.obj
B:.exe
C:.cpp
D:.c++
答案: .cpp
3、
以下用户标识符中,合法的是( )。
A:Int
B:%123
C:Ling@li
D:moon
答案: moon
萌面人网站
1、
有定义 int a=9,b=6,c; 执行语句 c=a/b+0.5;后,c 的值为 ( )。
A:1.4
B:2.0
C:1
D:2
答案: 1
2、
C++语言源代码文件扩展名为( )。
A:.obj
B:.exe
C:.cpp
D:.c++
答案: .cpp
3、
以下用户标识符中,合法的是( )。
A:Int
B:%123
C:Ling@li
D:moon
答案: moon
1、
China is located in the east of the Asian Continent, to the north of the Pacific Ocean.
A:错
B:对
答案: 错
2、
China’s land area is 9.6 million km2, ranking 3rd in the world after Russia and Canada.
A:错
B:对
答案: 对
3、
China’s land slopes from west to east and can be divided into three zones.
A:对
B:错
答案: 错
4、.
点我阅读全文
1、
八进制数(6)10比十六进制数(6)16小。
A:错
B:对
答案: 错
2、
异或函数与同或函数在逻辑上互为反函数。
A:对
B:错
答案: 对
3、
若两个函数具有不同的逻辑函数式,则两个逻辑函数必然不相等。
A:对
B:错
答案: 错
4、
与非门可以用作反相器。
A:对
B:错
答案: 对