#170. [GESP模拟一级] 选择题
[GESP模拟一级] 选择题
题目描述
一. 单选题(每题 分,共 分)
- 2025 年春节有两件轰动全球的事件,⼀个是 DeepSeek 横空出世,另⼀个是贺岁⽚《哪吒2》票房惊⼈,⼊了 全球票房榜。下⾯关于 DeepSeek 与《哪吒2》的描述成⽴的是( )。 {{ select(1) }}
- 《哪吒2》是⼀款新型操作系统
- DeepSeek 是深海钻探软件
- 《哪吒2》可以⽣成新的软件
- DeepSeek可以根据《哪吒2》的场景⽣成剧情脚本
- 在某集成开发环境中编辑⼀个源代码⽂件时不可以执⾏下⾯( )操作。 {{ select(2) }}
- 修改变量定义
- 保存代码修改
- 撤销代码修改
- 插⼊执⾏截图
- 在 C++ 中,下列可以做变量的是( )。 {{ select(3) }}
Var-1$1%%1_Var_1
- 以下哪个是C++语⾔的关键字?( ) {{ select(4) }}
abscindoendl
- 下⾯的框架在 L1 标记的处填写选项中的代码,哪组 不能 通过编译( )。
int main() {
int i = 0;
___________ // L1
break;
return 0;
}
{{ select(5) }}
while (true)for (; i < 10; i++)if (i == 0)switch (i)
- 下⾯
C++语句( )执⾏后的输出是__ 0322$$。
{{ select(6) }}
printf("__ %2d%02d$$", 3, 22)printf("__ %02d%2d$$", 3, 22)printf("__ %02d%02d$$$$", 3, 22)printf("____ %02d%02d$$$$", 3, 22)
- 有关下列
C++代码的说法, 错误的是( )。
printf("我爱写代码!")
{{ select(7) }}
- 配对双引号内的汉字改为英⽂
Hello,C++代码可以正确执行。 - 配对双引号内的汉字改为英⽂
Hello代码!代码可以正确执行。 - 代码中的每个双引号,都可以改为两个单引号
- 代码中的每个双引号,都可以改为三个双引号
- C++ 表达式
16 / 4 % 2的值为( )?
{{ select(8) }}
- 是 C++ 的整数,值为 。则
cout << (N % 3 + N / 5)的输出是?
{{ select(9) }}
- 下面 C++ 代码的输出结果是什么?
int N = 10;
printf("{N}*{N}={%d*%d}", N, N, N * N);
{{ select(10) }}
10*10={10*10}100=10N*N=100{N}*{N}={10*10}
- 下列 C++ 代码,先后分别输入 和 以后,输出是( )?
int first, second;
cout << "请输入第1个正整数:";
cin >> first;
cout << "请输入第2个正整数:";
cin >> second;
cout << (first / second * second);
{{ select(11) }}
- 下⾯ C++ 代码执⾏后,将输出能被 整除且除以 余数为 的数。下列选项不能实现的是( )
for (int i = 0; i < 100; i++)
{
if (_____)
{
cout << i << " ";
}
}
{{ select(12) }}
((i % 2 == 0) && (i % 7 == 2))((!(i % 2)) && (i % 7 == 2))((!(i % 2)) && (!(i % 7)))((i % 2 != 1) && (i % 7 == 2))
- 下⾯ C++ 代码执⾏后输出是( )。
int tnt = 0;
for (int i = -1000; i < 1000; i++)
tnt += i;
cout << tnt << endl;
{{ select(13) }}
- 下⾯ C++ 代码执⾏后输出是( )。
int i;
for (i = 1; i < 100; i += 5)
continue;
cout << i << endl;
{{ select(14) }}
- 下⾯C++代码执⾏后输出的是( )。
int tnt = 0;
for (int i = 5; i < 100; i += 5) {
if (i % 2 == 0)
continue;
tnt += 1;
if (i % 3 == 0 && i % 7 == 0)
break;
}
cout << tnt << endl;
{{ select(15) }}