#VC55. 趣味编程55选择题

趣味编程55选择题

1.家用扫地机器人具有自动避障、清扫、自动充电等功能,这主要是用了信息技术中的()。 {{ select(1) }}

  • 人工智能技术
  • 网络技术
  • 多媒体技术
  • 数据管理技术

2.阅读程序写结果。

#include <iostream>
using namespace std;

int main()
{
  int i, j;
  char t = 'A';
  for (i = 1; i <= 3; i++)
  {
    for(j = 1; j <= i; j++)
      cout << t;
    cout <<endl;
    t++;
  }
  return 0;
}

{{ select(2) }}


  • AAA
    AAA
    AAA

  • A
    AA
    AAA

  • AAA
    BBB
    CCC

  • A
    BB
    CCC

3.完善程序。 编程序输出如图所示的图形。

#include <iostream>
#include <iomanip>
using namespace std;

int main()
{
  int i, j, t = 0;
  for(i = 1;_______; i++)
  {
    cout<< stew(40);
    for(j = 1; j <= i; j++)
    {
      cout << t;
      _______;
    }
    _______;
  }
  return 0;
}

{{ select(3) }}

  • i <= 4 t++ cout << endl
  • i <= 4 cout << endl t++
  • i <= 9 t++ cout << endl
  • i <= 9 cout << endl t++