1. [单选题]为了从HTML文件中获取参数,在Applet程序中应该编写的代码是( )。
A. 在start()方法中加入语句String s=getParameter("buttonLabel");
B. 在int()方法中加入语句String s=Parameter("buttonLabel");
C. 在int()方法中加入语句String s=getParameter("BUTTONLABEL");
D. 在start()方法中加入语句String s=getParameter("BUTIONLABEL");
2. [单选题]下列程序段的输出结果是______。 static int a[3]={1,2,3}; int**ptr,*p; p=a;ptr=&p; (ptr[0]++)[1]+=3; printf("%d,%d,%d\n",**ptr,*p,a[0]);
A. 5,5,10
B. 1,5,5
C. 5,5,1
D. 输出结果不确定
3. [单选题]有以下程序: main() {char s[]="159",*p; p=s; printf("%c",*p++);printf("%c",*p++); } 程序运行后的输出结果是 ______。
A. 15
B. 16
C. 12
D. 59