#5815. 【Cpp初级】08-选择结构-if语句和关系运算符

【Cpp初级】08-选择结构-if语句和关系运算符

  1. bool b=true; cout<<b;,会输出(){{ select(1) }}
  • true
  • false
  • 1
  • 0
  1. bool b=3; cout<<b;,会输出(){{ select(2) }}
  • true
  • false
  • 1
  • 3
  1. C++中,判断相等使用符号(){{ select(3) }}
  • =
  • ==
  • <>
  • !=
  1. 标准的缩进要使用(){{ select(4) }}
  • tab键
  • space键
  • enter键
  • shift键
  1. 通常if的条件表达式后要(){{ select(5) }}
  • 不换行,使用花括号,并缩进
  • 不换行,使用括号,并缩进
  • 换行,使用花括号,并缩进
  • 换行,使用括号,并缩进
  1. 关于>,<,>=,<=,==,!=的优先级,下列说法正确的是(){{ select(6) }}
  • 前2种优先级相同,后4种优先级相同,前2种低于后4种
  • 前2种优先级相同,后4种优先级相同,前2种高于后4种
  • 前4种优先级相同,后2种优先级相同,前4种低于后2种
  • 前4种优先级相同,后2种优先级相同,前4种高于后2种