A. What does taxable income refer to?
B. Why do you want to know taxable income?
C. When do you start to learn taxable income?
第1题:
下面哪个语句不能完成1到10的累加功能, total初值为0。
A.for i in range(10,0):total+=i
B.for i in range(1,11):total+=i
C.for i in range(10,0,-1):total+=i
D.for i in (10,9,8,7,6,5,4,3,2,1):total+=i
第2题:
34、若要实现total=1+2+3+4+5求和,以下程序段错误的是()
A.int i=1,total=1; while(i<5) { total+=i; i+=1; }
B.int i=1,total=0; while(i<=5) { total+=i; i+=1; }
C.int i=0,total=0; while(i<5) { i+=1; total+=i; }
D.int i=0,total=0; while(i<=5) { total+=i; i+=1; }
第3题:
【单选题】下面的个人所得税程序中,满足语句覆盖测试用例的输入数据是() if (income < 800) taxRate= 0; else if (income <= 1500) taxRate = 0.05 ; else if (income < 2000) taxRate = 0.08 ; else taxRate= 0.1 ;
A.income = (800, 1500, 2000, 2001)
B.income = (800, 801, 1999, 2000)
C.income = (799, 1499, 2000, 2001)
D.income = (799, 1500, 1999, 2000)
第4题:
若要实现total=1+2+3+4+5求和,以下程序段错误的是()
A.int i=1,total=1; while(i<5) { total+=i; i+=1; }
B.int i=1,total=0; while(i<=5) { total+=i; i+=1; }
C.int i=0,total=0; while(i<5) { i+=1; total+=i; }
D.int i=0,total=0; while(i<=5) { total+=i; i+=1; }
第5题:
对下面的计算个人所得税程序中,满足判定覆盖的测试用例是()。 if (income<800) taxrate=0; else if (income<=1500) taxrate=0.05; else if (income<2000) taxrate=0.08; else taxrate=0.1;
A.income=(799, 1500, 1999, 2000)
B.income=(799, 1501, 2000, 2001)
C.income=(800, 1500, 2000, 2001)
D.income=(800, 1499, 2000, 2001)
第6题:
下列正确的求和语句是()
A.total=1
B.total+1
C.total*1
D.total by 1