已知s1="I "am a student.",s2='I \'am a student',则print(s1,s2)的输出结果为( )
A: I 'am a student. I 'am a student
B: I "am a student. I 'am a student
C: I "am a student. I \'am a student
D: 程序报错
A: I 'am a student. I 'am a student
B: I "am a student. I 'am a student
C: I "am a student. I \'am a student
D: 程序报错
举一反三
- 设串S1='I AM',S2=' A STUDENT',则ConcatStr(S1,S2)=( )。 A: 'I AM' B: 'A STUDENT' C: 'I AM A STUDENT' D: 'IAMASTUDENT'
- 下面语句的输出结果( )。<?php$str1="I am student ";$str2="Lily";$str3=str_replace("student",$str2,$str1)echo $str3;?> A: I am student B: I am Lily C: Lily am student D: I am student Lily
- 【单选题】如果输出语句:printf(“I am “student" you is teacher "). 显示内容? A. I am “student" you is teacher B. I am student you is teacher C. I am student you is teacher D. I am “student" you is teacher
- 下列程序的运行结果是()。class student{function _construct(){echo "I am a student .<br>";}function teacher(){echo "I am a teacher";}}$per=new student(); A: I am a studentI am a teacher B: I am a student C: I am a teacher D: 无任何输出
- 以下错误的字符数组的赋值方式是【 】。 A: char string[]="I am a student."; B: char *p="I am a student"; C: char str[20]; str="I am a student."; D: char str[20];strcpy( str,"I am a student.") ;