如下代码str1='abcd' print(type(str1[0]))的运行结果是()。
A、<class 'char'>
B、<class 'int'>
C、<class 'float'>
D、<class 'str'>
A、<class 'char'>
B、<class 'int'>
C、<class 'float'>
D、<class 'str'>
如果需要定义如下所述的变量,请设置一个数据段DATASEG来完成。
(1)STR1为字符串常量:'My Computer'
(2)NUM1为十进制数字节变量:90
(3)NUM2为十六进制数字节变量:BC
(4)NUM3为二进制数字节变量:00100100
(5)NUM4为ASCII码字符变量:56223
(6)ARRAY1为8个1的字节变量
(7)ARRAY2为6个十进制的字变量:10,11,12,13,14,15
(8)NUM5为4个零的字变量
A.aa数组元素的值分别是”abcd”,”ABCD"
B.aa是指针变量,它指向含有两个数组元素的字符型一维数组
C.aa数组的两个元素分别存放的是含有4个字符的一维字符数组的首地址
D.aa数组的两个元素中各自存放了字符'a','A'的地址
A.aa数组元素的值分别是”abcd”,”ABCD"
B.aa是指针变量,它指向含有两个数组元素的字符型一维数组
C.aa数组的两个元素分别存放的是含有4个字符的一维字符数组的首地址
D.aa数组的两个元素中各自存放了字符'a','A'的地址
下列程序的输出结果为______ Sub Prin() Dim B As String A=1 B=A & Space(4)& A Print A Print Trim(B) End Sub
A.He needs to press F-7 to return to the document before he prints it.
B.He has to print the document to see the page numbers.
C.The printer is not working correctly.
D.The numbers are on the screen but they don't print out.
下面程序段的运行结果是( )。
char a[7]="abcdef",b[4]="ABC";
strcpy(a,b) ;
printf("%c",a[5]);
(A)空格 (B)\0 (C)e (D)f
下面程序的运行结果是 【 】 。 main() { unsigned a=0112,x; x=a>>3; printf("x=%o",x); }
A.He needs to press F-7 to return to the document before be prints it.
B.He has to print the document to see the page numbers.
C.The printer is not working correctly.
D.The numbers are on the screen but they don't print out.
以下程序段的输出结果是()。 int k=5,sum=i0; do{ sum++; k一一; }while(k>0); printf("%d",k);