![](https://lstatic.shangxueba.com/jiandati/pc/images/pc_jdt_tittleico.png)
程序的运算继续,但若想输出继电器(Y)全部变为OFF,可使用 ()。
A.M8000
B.M8002
C.M8034
D.M8234
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_q_ckda.png)
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_panel_vip.png)
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_q_wyda.png)
- · 有3位网友选择 B,占比37.5%
- · 有3位网友选择 A,占比37.5%
- · 有1位网友选择 C,占比12.5%
- · 有1位网友选择 D,占比12.5%
A.M8000
B.M8002
C.M8034
D.M8234
A、某一输出量仅在某一步中为ON时,可以将它的线圈与对应步的存储器位的线圈并联
B、都用位存储器替代
C、不用考虑
D、设置为1
SET TALK OFF
STORE 0 TO X,Y
DO WHILE X<20
X=X+Y
Y=Y+2
&& IF Y=4
&& EXIT
&& ENDIF
ENDDO
? X,Y
SET TALK ON
RETURN
X的输出结果为 ______。
A.20
B.21
C.22
D.10
下面程序的功能是比较用户键盘输入的口令userInput与内设的口令password是否相同。若相同,则输出"Correct password! Welcome to the system...",若userInput <password,则输出"invalid password!user input> password"。 按要求在空白处填写适当的表达式或语句,使程序完整并符合题目要求。 #include <stdio.h> #include <string.h> int main() { char password[7] = "secret"; char userInput[81] ; printf("Input Password:"); scanf(_____________); if ( ______________ ) printf("Correct password! Welcome to the system...\n"); else if ( ___________________) printf("Invalid password!user input <password\n"); else printf("invalid password!user input> password\n"); return 0; }
A、第8行: "%s", userInput 第9行: strcmp(userInput, password) == 0 第11行: strcmp(userInput, password) < 0
B、第8行: "%c", userInput 第9行: strcmp(userInput, password) = 0 第11行: strcmp(userInput, password) < 0
C、第8行: "%s", userInput 第9行: userInput==password 第11行: userInput <password>
D、第8行: "%c", userInput 第9行: strcpy(userInput, password) == 0 第11行: strcpy(userInput, password) < 0
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!