第6题: [单项选择]选出任何情况下都不引起二义性的宏定义( )。 A. #define POWER(x)x*x B. #define POWER(x)((x)*(x)) C. #define POWER(x)(x*x) D. #define POWER(x)(x)*(x) 参考答案:B 答案解析:[解析] 引起带参数宏的二义性主要有两个方面:一是,参数之间因运算符优先级不确定而带来的二义性。例如本题的选项A),若程序中使用POWER(a+b),会展开为a+b*a+b,这样就会先计算b*a的值,
第14题: [单项选择]Questions 11 to 18 are based on the conversation you have just heard. A. She ordered it through the mail. B. A male student gave it to her as a birthday present. C. It was a present from her parents. D. She got it while visiting her parents. 参考答案:C 答案解析:[听力原文] M:It’s a beautiful watch.The style is so fashionable that I guess it must come from abroad
第24题: [单项选择]警民联防、警民共建精神文明,“110”报警服务监督系统、流动治安派出所等,体现了( )。 A. 警民结合形式多样化 B. 保安科技群众化 C. 治安工作社会化 D. 公安群众工作信息化 参考答案:A 答案解析:[解析] 警民联防、警民共建精神文明、“110”报警服务监督系统、流动治安派出所等,开拓了人民警察与人民群众携手维护社会治安的新渠道,体现了警民结合形式多样化。故本题正确答案为A。