单选题下列程序执行后的输出结果为( )。 CHARACTER*6C C=’1234567890’ CALLSS(C) END SUEROUTINESS(C) CHARACTERC*2 WRITE(*,*)C ENDA123456B12C56D1234567890
单选题
下列程序执行后的输出结果为( )。 CHARACTER*6C C=’1234567890’ CALLSS(C) END SUEROUTINESS(C) CHARACTERC*2 WRITE(*,*)C END
A
123456
B
12
C
56
D
1234567890
参考解析
解析:
输出C字符段长度为2,只能存放’1234567890’中的前两位即:12
相关考题:
执行下列程序后,鼠标单击窗体,输出结果为 。Private Sub Form_Click()Print "Click";End SubPrivate Sub Form_MouseDown(Button As Integer, Shift _As Integer, X As Single, Y As Single)Print "Donw"End SubPrivate Sub Form_MouseUp(Button As Integer, Shift _As Integer, X As Single, Y As Single)Print " Up"End Sub( )。A.DownUpClickB.ClickDownUpC.DownClickUpD.UpDownClick
执行以下程序后的输出结果为 ( )。includeUsing namespace std;void fun(int x, int y 执行以下程序后的输出结果为 ( )。#include<iostream>Using namespace std;void fun(int x, int y, int *cp, int *dp) {*cp=x+ y; 2*dp=x- y;}void maia() {int a, b, c, d; a=30; b=50; fun(a, b, c, d); cout<<c<<','<,d<<end1;}A.50, 30B.30, 50C.80, 20D.80, 20
下列程序的输出结果为includevoid main( ){char * a[ ]={"hello","the","world"};c 下列程序的输出结果为 #include<iostream.h> void main( ) { char * a[ ]={"hello","the","world"}; char * * pa=a; pa++; cout <<*pa<<end1; }A.helloB.theC.worldD.hellotheworld
下列程序的输出结果为includevoid main(){char*a[]={"hello","the","world"};char* 下列程序的输出结果为 #include<iostream.h> void main() { char*a[]={"hello","the","world"}; char**pa=a; pa++; cout<<*pa<<end1; }A.helloB.theC.worldD.hello the world
执行下面这段程序后,单击命令按钮,窗体中输出结果是 ______。 Private Sub Command1_Click() a=1 : b=4 : c = 9 : d = 5 If a < b Then If c<d Then x=True Else If a<c Then x=False Else x=True End If End If End If Print Val(x) End SubA.TrueB.FalseC.0D.1
执行下列程序语句后,输出结果为()。ineludeusing namespace std;int m=5;int main(){i 执行下列程序语句后,输出结果为( )。 #inelude<iostream> using namespace std; int m=5; int main() { int m=3; m++; ::m++; cout<<m<<end1; return 0; }A.3B.4C.5D.6
执行下列程序后,鼠标单击窗体,输出结果为 Private Sub Form_Click() Print"Click": End Sub Private Sub Form_MouseDown(Button As Integer,Shift_As Integer,X As Single,Y As Single) Print"Donw" End Sub Private Sub Form_MouseUp(Button As Integer,Shift_As Integer,X As Single,Y As Single) Print"Up" End SubA.DownUpClickB.CfickDownUpC.DownClickUpD.UpDownClick
以下程序执行后的输出结果是 ( )。include class Basel{public: void fun(){ cout 以下程序执行后的输出结果是 ( )。 #include <iostream.h> class Basel { public: void fun(){ cout<<"Basel"<<end1; } }; class Base2 { public: void fun() { cout<<"Base2"<<end1; } } class Derived : public Basel,public Base2 { }; void main() { Derived Obj; Obj.fun(); }A.BaselB.Base2C.BaselBase2D.程序产生二义性
下列程序执行后,按住键,并在文本框中输入“a”,则在窗体上输出结果为()。Private Sub Text1_K 下列程序执行后,按住<Ctrl>键,并在文本框中输入“a”,则在窗体上输出结果为( )。 Private Sub Text1_KeyDown(KeyCode As Integer,Shift As Integer) Print KeyCode,Shift End SubA.a 2B.65 2C.97 1D.97 2
下列程序执行后,在Ctrl和Alt这两个键都被按下的同时,再在文本框中输入“a”,输出结果为 Prirate Sub Text1_KeyDown(KeyCode As Integer,Shift As Integer) If Shift > 0 And KeyCode >= Asc("A")Then Print KeyCode + Shift End If End SubA.65B.71C.0D.出错
有程序:READ(*,100)A100FORMAT(3x,F6.2)WRITE(*,200)A200FORMAT(1x,F8.2)END当执行此程序时,从键盘输入1234567890↙,则程序的运行结果是:()A、4567.89B、1234.56C、******D、1234.5
有程序:CHARACTER*4A,B*6A=‘ABCD’B=A∥‘EFGH’WRITE(*,*)BEND此程序执行后的输出结果为:()A、ABCDEFGHB、ABCDEFC、ABCDD、EFGH
单选题有程序:CHARACTER*6SS=‘ABCDEF’CALLSS(S)ENDSUBROUTINESS(S1)CHARACTERS1*3WRITE(*,*)S1END此程序执行后的输出结果为:()AABCBBCDCCDEDDEF
单选题下列程序执行后的输出结果为( )。 CHARACTER9*C C=’1234567890’ CALLSS(C) END SUBROUTINESS(X) CHARACTERX*2 WRITE(*,*)X ENDA123456B12C56D567890
单选题有程序:READ(*,100)A100FORMAT(3x,F6.2)WRITE(*,200)A200FORMAT(1x,F8.2)END当执行此程序时,从键盘输入1234567890↙,则程序的运行结果是:()A4567.89B1234.56C******D1234.5
单选题程序 character*(*)name name=’apple’ L=len(name) Do10I=1,L 10name(I:I)=char(Ichar(name(I:I))+I print*,name end 程序运行后输出结果为( )AAPPLEBbrspjCjpsrbDapple