提交 a928dbe5 编写于 作者: M Mars Liu

reformat markdown

上级 38047f68
......@@ -2,7 +2,7 @@
输出 "Hello, World!" 字符串,找出正确的选项。
## A
## 答案
```
#include <stdio.h>
......@@ -13,7 +13,10 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
......@@ -24,7 +27,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
......@@ -35,7 +39,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
......
......@@ -2,7 +2,7 @@
使用字符数组在控制台打印C语言的常见特点。请选出正确答案。
## A
## 答案
```
#include <stdio.h>
......@@ -28,7 +28,10 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
......@@ -54,7 +57,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
......@@ -80,7 +84,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
......
......@@ -2,7 +2,7 @@
使用while循环修改变量值,依次打印10以内(包含10)所有正整数的平方。请从以下选项中找出正确答案。
## A
## 答案
```
#include <stdio.h>
......@@ -24,7 +24,10 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
......@@ -46,7 +49,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
......@@ -68,7 +72,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
#include <stdbool.h>
......
......@@ -2,7 +2,7 @@
使用常量表示圆周率$\pi$,并计算半径为2的圆的面积。请从以下选项中找出错误答案。
## A
## 答案
```
#include <stdio.h>
......@@ -19,7 +19,10 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
......@@ -36,7 +39,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
......@@ -52,7 +56,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
......
......@@ -2,7 +2,8 @@
用不同的基本数据类型保存一名学生的各项信息,并打印输出。请选出正确答案。
## A
## 答案
```
#include <stdbool.h>
#include <stdio.h>
......@@ -29,7 +30,10 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdbool.h>
#include <stdio.h>
......@@ -56,7 +60,8 @@ int main()
}
```
## C
### B
```
#include <stdbool.h>
#include <stdio.h>
......@@ -83,7 +88,8 @@ int main()
}
```
## D
### C
```
#include <stdbool.h>
#include <stdio.h>
......
......@@ -2,7 +2,7 @@
实现三个变量的赋值操作,并输出三个变量的值。请选出错误答案。
## A
## 答案
```
#include <stdio.h>
......@@ -18,7 +18,9 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
......@@ -34,7 +36,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
......@@ -53,7 +56,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
......
......@@ -2,7 +2,8 @@
打印100以内(包含100)能被10整除的正整数。请选出正确答案。
## A
## 答案
```
#include <stdio.h>
......@@ -19,7 +20,10 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
......@@ -36,7 +40,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
......@@ -53,7 +58,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
......
......@@ -2,7 +2,7 @@
输入两个闭区间,并判断两个区间是否重叠。请选出错误答案。
## A
## 答案
```
#include <stdio.h>
......@@ -24,7 +24,10 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
......@@ -46,7 +49,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
......@@ -71,7 +75,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
......
......@@ -7,7 +7,8 @@
* 该年份能被4整除同时不能被 100 整除。
## A
## 答案
```
#include <stdio.h>
......
......@@ -6,7 +6,7 @@
请选出正确答案。
## A
## 答案
```
#include <stdio.h>
#define FIRST_COST 6
......@@ -26,7 +26,10 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
#define FIRST_COST 6
......@@ -46,7 +49,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
#define FIRST_COST 6
......@@ -66,7 +70,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
#define FIRST_COST 6
......
......@@ -2,7 +2,8 @@
输入三个整数,求出最大值并输出。请选出错误答案。
## A
## 答案
```
#include <stdio.h>
......@@ -19,7 +20,9 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
......@@ -36,7 +39,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
......@@ -53,7 +57,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
......
......@@ -2,7 +2,8 @@
定义并初始化一个整型数组(未显示指定数组长度),循环输出数组中的每个元素。请选出正确答案。
## A
## 答案
```
#include <stdio.h>
......@@ -19,7 +20,9 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
......@@ -36,7 +39,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
......@@ -53,7 +57,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
......
......@@ -2,7 +2,8 @@
逗号运算符与自增运算符组成的混合表达式,请选出输出结果为 <font color=red>**2,3,1**</font> 的选项。
## A
## 答案
```
#include <stdio.h>
......@@ -15,7 +16,10 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
......@@ -28,7 +32,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
......@@ -41,7 +46,7 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
......
......@@ -2,7 +2,8 @@
使用循环逐个字符打印 **Hello World!** ,请选出错误答案。
## A
## 答案
```
#include <stdio.h>
......@@ -18,7 +19,9 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
......@@ -34,7 +37,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
......@@ -52,7 +56,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
......
......@@ -2,7 +2,8 @@
输入三角形各边的长度,并判断三角形的类型。请选出正确答案。
## A
## 答案
```
#include <stdio.h>
#include <math.h>
......@@ -34,7 +35,10 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
#include <math.h>
......@@ -66,7 +70,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
#include <math.h>
......@@ -98,7 +103,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
#include <math.h>
......
......@@ -2,7 +2,8 @@
任意输入3个整数,对这3个整数由小到大进行升序排序。请从以下选项中找出正确答案。
## A
## 答案
```
#include <stdio.h>
......@@ -34,7 +35,10 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
......@@ -66,7 +70,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
......@@ -98,7 +103,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
......
......@@ -2,7 +2,8 @@
输入两个整数,求两个整数之间的较大值。找出正确的选项。
## A
## 答案
```
#include <stdio.h>
......@@ -28,7 +29,10 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
......@@ -54,7 +58,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
......@@ -80,7 +85,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
......
......@@ -10,7 +10,8 @@
请从以下选项中找出正确答案。
## A
## 答案
```
#include<stdio.h>
......@@ -49,7 +50,10 @@ int main()
}
```
## B
## 选项
### A
```
#include<stdio.h>
......@@ -88,7 +92,8 @@ int main()
}
```
## C
### B
```
#include<stdio.h>
......@@ -127,7 +132,8 @@ int main()
}
```
## D
### C
```
#include<stdio.h>
......
......@@ -2,7 +2,8 @@
使用for循环,打印九九乘法表。找出正确的选项。
## A
## 答案
```
#include <stdio.h>
......@@ -21,7 +22,9 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
......@@ -40,7 +43,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
......@@ -59,7 +63,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
......
......@@ -2,7 +2,7 @@
使用goto语句求10以内的正整数之和。请选出错误答案。
## A
## 答案
```
#include <stdio.h>
......@@ -21,7 +21,9 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
......@@ -40,7 +42,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
......@@ -59,7 +62,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
......
......@@ -4,7 +4,8 @@
1. 利用辗转相除法求出最大公约数。
2. 进而求出最小公倍数。
## A
## 答案
```
#include <stdio.h>
......@@ -35,7 +36,10 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
......@@ -64,7 +68,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
......@@ -95,7 +100,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
......
......@@ -2,7 +2,8 @@
输入两个正整数m和n,求从m加到n的和(m <= n),并输出,请选出正确答案。
## A
## 答案
```
#include <stdio.h>
......@@ -38,7 +39,9 @@ int main() {
}
```
## B
## 选项
### A
```
#include <stdio.h>
......@@ -74,7 +77,8 @@ int main() {
}
```
## C
### B
```
#include <stdio.h>
......@@ -110,7 +114,8 @@ int main() {
}
```
## D
### C
```
#include <stdio.h>
......
......@@ -2,7 +2,7 @@
使用函数递归的方法打印斐波那契数列的前n个数:0 1 1 2 3 5 8 13 21 34 ……, 找出正确的选项。
## A
## 答案
```
#include <stdio.h>
......@@ -30,7 +30,9 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
......@@ -58,7 +60,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
......@@ -86,7 +89,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
......
......@@ -2,7 +2,8 @@
定义一个整型的一维数组,并打印数组中的元素。请选出错误答案。
## A
## 答案
```
#include <stdio.h>
#define LEN 5
......@@ -21,7 +22,9 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
#define LEN 5
......@@ -39,7 +42,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
#define LEN 5
......@@ -57,7 +61,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
#define LEN 5
......
......@@ -2,7 +2,7 @@
用冒泡排序法对任意输入的10个整数按照从小到大的顺序进行排序。请选出正确答案。
## A
## 答案
```
#include <stdio.h>
#include <stdbool.h>
......@@ -44,7 +44,10 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
#include <stdbool.h>
......@@ -86,7 +89,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
#include <stdbool.h>
......@@ -128,7 +132,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
#include <stdbool.h>
......
......@@ -2,7 +2,8 @@
基于二维数组实现线性代数中的矩阵转置。请选出错误答案。
## A
## 答案
```
#include <stdio.h>
#define LEN 101
......@@ -45,7 +46,9 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
#define LEN 101
......@@ -88,7 +91,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
#define LEN 101
......@@ -130,7 +134,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
#define LEN 101
......
......@@ -2,7 +2,8 @@
给定一个整型的二维数组,求二维数组中所有元素的和。请选出正确答案。
## A
## 答案
```
#include <stdio.h>
#define ROWS 3
......@@ -40,7 +41,9 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
#define ROWS 3
......@@ -76,7 +79,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
#define ROWS 3
......@@ -114,7 +118,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
#define ROWS 3
......
......@@ -2,7 +2,7 @@
使用指针交换两个变量的值。请选出正确答案。
## A
## 答案
```
#include <stdio.h>
......@@ -26,7 +26,10 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
......@@ -48,7 +51,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
......@@ -72,7 +76,8 @@ int main()
}
```
## D
### B
```
#include <stdio.h>
......
......@@ -2,7 +2,8 @@
使用指针与函数交换两个变量的值。请选出错误答案。
## A
## 答案
```
#include <stdio.h>
......@@ -26,7 +27,10 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
......@@ -55,7 +59,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
......@@ -79,7 +84,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
......
......@@ -2,7 +2,8 @@
给定一个数组,获取最大值及其下标并输出。请选出错误答案。
## A
## 答案
```
#include <stdio.h>
#define LEN 10
......@@ -26,7 +27,10 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
#define LEN 10
......@@ -51,7 +55,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
#define LEN 10
......@@ -76,7 +81,8 @@ int main()
}
```
## D
### B
```
#include <stdio.h>
#define LEN 10
......
......@@ -2,7 +2,8 @@
使用地址算术运算的方式,输出二维数组中的所有元素。请选出错误答案。
## A
## 答案
```
#include <stdio.h>
#define ROW 3
......@@ -28,7 +29,10 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
#define ROW 3
......@@ -53,7 +57,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
#define ROW 3
......@@ -78,7 +83,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
#define ROW 3
......
......@@ -2,7 +2,8 @@
使用函数指针调用自定义函数。请选出错误答案。
## A
## 答案
```
#include <stdio.h>
......@@ -26,7 +27,10 @@ int main()
}
```
## B
## 选项
### A
```
#include <stdio.h>
......@@ -50,7 +54,8 @@ int main()
}
```
## C
### B
```
#include <stdio.h>
......@@ -74,7 +79,8 @@ int main()
}
```
## D
### C
```
#include <stdio.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册