题库首页 › 青少年软件编程(Python) › 题目 2517

调用以下函数时,语句“s=s+i”被执行的次数是?( ) def f(): s=0 i=1 while i<10: if i%3==0 or s%2==1: s=s+i i=i+1 print(s)

A:3
B:4
C:5
D:6

正确答案:C

试卷来源:202103 青少年软件编程等级考试Python四级真题

本卷相关题目

在线做题 同科目题库