PROBLEM SET
题库
按难度与知识点筛选,找到适合的练习题。
题目列表
共 67434 题
A52167
下面( )公司制造了全球第一枚CPU。
电子学会-C-L1
容易
--
A52168
阅读程序写结果。#include<iostream>using namespace std;int main() { int x; cin >>x; if(x==10) { x++; } else { x--; } if(x>10) { x++; } else { x--; } if(x<10) { x++; } else { x--; } if(x!=10) { x++; } else { x…
电子学会-C-L1
容易
--
A52169
下列( )是字符型数据。
电子学会-C-L1
容易
--
A52170
阅读程序写结果。#include<iostream>#include<ctime>#include<cstdlib>using namespace std;int main() { int x; srand(time(0)); if(x<10) { x=10; } if(x==10) { x--; } if(x!=10) { x--; } cout <<x; return 0;}输出:______
电子学会-C-L1
容易
--
A52171
一个字节(byte)由( )个二进制组成。
电子学会-C-L1
容易
--
A52172
在计算机工作过程中,若突然停电,( )中的信息不会丢失。
电子学会-C-L1
容易
--
A52173
阅读程序写结果。#include<iostream>using namespace std;int main() { int x,y; y=0; cin >>x; if(x<0) { y=x; } else { y=x*x; y+=(x+1)*(x+1); } cout << y; return 0;}输入: 3输出:_______
电子学会-C-L1
容易
--
A52174
阅读程序写结果。#include<iostream>using namespace std;int main() { int a,b,c,max; cin >>a>>b>>c; max =0; if(a>b) { max=a; } else { max=b; } if(c>max) { max=c; } cout << "max=" << max << endl; return 0;}输入:10…
电子学会-C-L1
容易
--
A52175
下列关于算法的叙述不正确的是( )。
电子学会-C-L1
容易
--
A52176
阅读程序写结果。#include<iostream> using namespace std; int main() { char ch; int sum,n; cin >>ch; sum =0; if(ch >='a'&& ch <='z') { n=ch - 'a'+1; sum+=n; } else { sum =27; } cout << sum; return 0; }输入: b输出:…
电子学会-C-L1
容易
--
A52177
判断a不等于0,且b等于0的正确的逻辑表达式( )。
电子学会-C-L1
容易
--
A52178
阅读程序写结果。#include<iostream>using namespace std;int main() { int x,y; cin >>x>>y; if(x>y&&y!=0) { cout << x/y <<endl; } else if (x!=0) { cout << y/x <<endl; } return 0;}输入:96 10输出:_______
电子学会-C-L1
容易
--
A52179
在C++中,表达式(11>12)&& (12<15)|| (13+2==15)的值( )。
电子学会-C-L1
容易
--
A52180
阅读程序写结果。#include<iostream>using namespace std;int main() { int n; int s=0; cin >>n; if(n%3==0 || n%5==0) { s++; } if (n%3==0 && n%5==0) { s++; } if(!(n%5==0)) { s++; } cout << s; return 0;}输入:15输出:__…
电子学会-C-L1
容易
--
A52181
判断整数n不能被3整除的表达式,下列( )是错误的。
电子学会-C-L1
容易
--
A52182
阅读程序写结果#include<iostream>using namespace std;int main(){ bool flag; int n; cin >>n; if(n%2==0){ flag=true; }else{ flag=false; } if(flag){ cout << "yes"; }else{ cout <<"no"; } return 0;}输入: 12输出:_____…
电子学会-C-L1
容易
--
A52183
阅读程序写结果。#include<iostream>using namespace std;int main() { int x,y=0; cin >>x; if(x<10) { y=1; } else if (x<100) { y=2; } else { y=3; } cout << y; return 0;}输入: 10输出:_______
电子学会-C-L1
容易
--
A52184
表达式(5==6)的值是( )。
电子学会-C-L1
容易
--
A52185
彩票游戏编写一个彩票游戏:随机生成一个不重复的五位数作为彩票号,游戏提示用户输入一个五位整数,然后根据下面的规则判断用户是否能赢得奖金,最后要求输出彩票号和奖金。(1) 若用户输入的数字和彩票的数字完全匹配,包括数字顺序,则奖金是10000元。(2) 不考虑顺序,若用户输入的数字中一个匹配彩票数字的一个数,则奖金是1000元,若是两个数字,则2000元,则以此累加。(3) 若全部不匹配,则奖金是…
电子学会-Python-L1
中等
--
A52186
成绩评价系统
电子学会-Python-L1
中等
--