阅读下列程序,说明本程序功能并写出运行结果。 MOV AH,0;累加器高位清零 MOV AL,10;累加器低位赋初值10 SAL AX,1;左移1位,(初值×2) MOV BX,AX;(初值×2)送入BX保存 MOV CL,2;计数器赋值为2 SAL AX,CL;左移2次,(初值×2)×2×2 ADD AX,BX;累加,(初值×2)×2×2+(初值×2)
编译并运行下面的Java程序,将产生什么结果()。https://assets.asklib.com/images/image2/201707111031115131.png
阅读下列程序,说明本程序功能并写出运行结果。 MOV AL,00H;设置计数初值 AGAIN:OUT 80H,AL;输出到端口 CALL DELAY;调用延时子程序 INC AL;计数值递增 JMP AGAIN;返回,再次输出 DELAY:MOV CX,10;设置延时时间常数 DEALY1:LOOP DELAY1;循环,实现延时 RET;延时子程序返回
调试运行下面的程序,记录程序运行结果:#include using namespace std;int main(){ int n=5,m=0,x;x=m>n?m:n;cout<
运行下面的程序段,输出结果是( D )。56b5c175e4b0e85354c093a2.png
阅读下列程序写出程序的运行结果。#includevoidmain(){inti,j,m,n;i=8;j=10;m=++i;n=j++;printf(“%d,%d,%d,%d”,i,j,m,n);}
阅读程序写出结果:#include int fun(double a,double b);void main( ){ cout<
阅读程序写出结果#include int add(int x,int y=8);void main( ){ int a=4;cout<
阅读下列程序,写出运行结果 ________ 。 #include struct ty{ int data;charc;}; fun(struct ty b) { b.data =200; b.c='y'; } int main() { struct ty a={100,'x'}; fun(a); printf(\%d,%c\\n\,a.data,a.c); return 0; }
阅读下面的程序class StringDemo{public static void main(String[] args){String s1 = “a”;String s2 = “b”;show(s1,s2);System.out.println(s1+s2);}public static void show(String s1,String s2){s1 = s1 +”q”;s2 = s2 + s1;}}下列选项中,程序的运行结果是()
读下面的:includevoid main(){static int a[]={1,2,3,4,5};int *p=a;printf();printf();}写出运行的结果、
【其它】程序分析: 阅读下面的程序,分析代码是否能够编译通过,如果能编译通过,请列出运行的结果。否则请说明编译失败的原因。 public class Test { public static void main(String args[]) { int n = 9; while (n > 6) { System.out.println(n); n--; } } }
要求下面的程序运行后,显示如下结果: 2 10 4 6 1 5 2 3 2 4 7 8 5 1 3 2 下列程序执行后的输出结果是________。 include void main(); }
阅读下面的程序,分析代码是否能够编译通过,如果能编译通过,请列出运行的结果并分析出现此结果的原因。否则请说明编译失败的原因。public class Example { public static void changeStr(); }}
[程序阅读题]写出以下程序段的输出结果();
阅读以下程序,写出程序运行后的输出结果是 ______。include<iostream.h>void main(){char a[]={'
请阅读下面的代码intx=1;inty=2;if(x%2==0){y++;}else{y--;}Console.WriteLine("y="+y);}上面一段程序运行结束时,变量y的值为下列哪一项?()
请先阅读下面的代码。intx=1;inty=2;if(x82==0){y++;)else{y--;}System.out.println(y=+y);上面一段程序运行结束时,变量y的值为下列哪一项()
(4-1)请阅读程序,然后写出程序运行结果。publicclassDemo7{publicstaticvoidmain(String[]args){int[]arr=newint[5];intsum=0;Arrays.fill(arr,3);for(intx:arr){sum=sum+x;}System.out.println(sum);}}
【简答题】分析下面的程序,写出程序的运行结果。 include <stdio.h> int main() { char c1='a',c2='b',c3='c',c4='110',c5; c5=c4+1; printf("a%c b%c c%ctabcn",c1,c2,c3); printf("%c %cn",c4,c5); return 0; }
若运行时输入100↙,写出以下程序的运行结果
设窗体上有一个名为List1的列表框,并编写下面的事件过程:程序运行时单击一个列表项,则产生的结果是()
请阅读下面的程序,选择正确的运行结果。()classDemo{undefinedprivatestaticintx;publicstaticvoidmain(String[]args){undefinedSystem.out.println(x++);}}
阅读下面的,写出运行结果。includemain(){char *str="ABCabcd";bubble();printf();}bubble()char *str;int count;{int i,j=count;char tmp;while()for()if(str[i] {tmp=str[i];str[i]=str[i+1];str[i+1]=tmp;}}