#VC03. 趣味编程03选择题

趣味编程03选择题

1.下列( )是非法的标识符。 {{ select(1) }}

  • 3y
  • H_1
  • p7y
  • b5

2.阅读程序写结果。

#include <iostream>
using namespace std;
int main()
{
  int i, j, k;
  i=8;
  j=9;
  k=i*j;
  cout << i;
  cout << j;
  cout << k;
  return 0;
}

输出:__________________

{{ select(2) }}

  • 7289
  • 8972
  • 8729
  • 7298

3、完善程序。 风之巅小学的操场,长120米,宽80米,求操场的周长是多少米?

#include <iostream>
using namespace std;
int main()
{
  int a, b, c;
  a= 120;
  b= 80;
  c=_______________;
  cout << c;
  return 0;
}

{{ select(3) }}

  • a+b
  • (a+b)*2
  • 2a+b
  • a+2b