网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下面代码的输出结果是() x=13 y=7 print(divmod(x,y))
A.(1,6)
B.(6,1)
C.1,6
D.6,1
参考答案和解析
A
更多 “下面代码的输出结果是() x=13 y=7 print(divmod(x,y))A.(1,6)B.(6,1)C.1,6D.6,1” 相关考题
考题
下面程序的输出结果是()。includemain(){int x=7,y=3;printf("%d",y=x/y);}A.0B.2C.3D.
下面程序的输出结果是( )。 #include<stdio.h> main() {int x=7,y=3; printf("%d",y=x/y); }A.0B.2C.3D.不确定的值
考题
执行下面程序后输出的正确结果是 public class Test{ public static void main(String args[]){ byte x=3,y=4; long r=80L; System.out.print(r/y); System.out.print(","); System.out.print(x/y); } }A.20.0,1B.20.0,1.0C.20,0D.20,1.0
考题
以下程序的输出结果是______。 include define FUDGE(y)2.84+y define PR(a) printf(
以下程序的输出结果是______。 #include<stdio.h> #define FUDGE(y) 2.84+y #define PR(a) printf("%d",(int)(a)) #define PRINT1(a) PR(a);putchar('\n') main() { int x=2; PRINT1(FUDGE(5)*x); }A.11B.12C.13D.15
考题
以下程序的输出结果是______。includedefine FUDGE(y)2.84+ydefine PR(A)printf("%d"
以下程序的输出结果是______。 #include<stdio.h> #define FUDGE(y) 2.84+y #define PR(A) printf("%d",(int)(a) ) #define PRINT1(A) PR(a) ;putchar('\n') main() { int x=2; PRINT1(FUDGE(5)*X); }A.11B.12C.13D.15
考题
下列程序的输出结果是includeclass Myclass{public : Myclass( int i=0,int j=0){x
下列程序的输出结果是 #include<iostream.h> class Myclass{ public : Myclass( int i=0,int j=0) {x=i; y=j; } void show( ){cout<<"x="<<x<<" "<"y="<<y<<endl;} void show( )const{cout<<"x="<A.x=4,y=3;x=7,y=8B.x=3,y=4;x=7,y=8C.x=7,y=8;x=4,y=3D.x=8,y=7;x=7,y=8
考题
以下程序的输出结果是______。 include define FUDGE(y)2.84+y define PR(a)printf("
以下程序的输出结果是______。 #include<stdio.h> #define FUDGE(y) 2.84+y #define PR(a) printf("%d",(int)(a)) #define PRINT() PR(s) ;putchar('\n') main() { intx=2; PRINT1 (FUDGE(5)*x); }A.11B.12C.13D.15
考题
下面程序的输出结果是()。includeint m=13;int fun2(int x,int y){int m=3; return(x*y
下面程序的输出结果是( )。 #include <stdio.h> int m=13; int fun2(int x,int y) { int m=3; return(x*y-m); } main() { int a=7,b=5; printf("%d\n",fun2(a,b)/m); }A.1B.2C.7D.10
考题
以下程序的输出结果是()。includeint m=13;int fun(int x,int y){int m=2;return(x*y-m
以下程序的输出结果是( )。 #include<stdio.h> int m=13; int fun(int x,int y) {int m=2; return(x*y-m); } main() {int a=7,b=6; printf("%d",fun(a,B)/m); }A.1B.3C.7D.10
考题
以下程序运行后的输出结果是______。 Private Sub Form_ Click() y=1 :x=2 Print Iif(x>=y,x,y) End SubA.0B.1C.2D.3
考题
以下程序运行后的输出结果是 ______。 Sub add(x,y) x=x+y Print "x=";x;",y=";y End Sub Private Sub Command1_Click() x=1 y=1 Call add((x),(y)) Print"x="; x;",y=";y End SubA.x=1,y=1 x=2,y=2B.x=2,y=1 x=1,y=1C.x=1,y=1 x=1,y=1D.x=2,y=1 x=2,y=1
考题
下面程序的运行结果是 Private Sub Command1_Click() x=1:y=1 For i=1 To 3 x=x+y:y=y+x Next i:print x,y End SubA.6 6B.5 8C.13 21D.34 35
考题
运行下列程序: x=Input Box("input value Of x”) Select Case x Case IsO y=y+1 Case Is=0 y=x+2 Case Else y=x+3 End Select Print x;y 运行时,从键盘输入-5,输出的结果是( )。A.-7B.-9C.-8D.-10
考题
下面程序的运行结果是( )。 X=-2.3y=125z=Len(StrS(x)+StrS(y))Print Z A.4B.8
下面程序的运行结果是( )。 X=-2.3y=125z=Len(StrS(x)+StrS(y))Print ZA.4B.8C.9D.3
考题
执行下面程序后输出的正确结果是( )。 publicclassTest{ publicstaticvoidmain(Stringargs[]){ bytex=3,y=4; longr=80L; System.out.print(r/y); System.out.print(","); System.out.print(x/y); } }A.20.0,1B.20.0,1.0C.20,0D.20,1.0
考题
执行下面的程序后,输出的结果是 K=1 For j=1 To 4 X=X - 1: y=0 For k=1 To 4 X=X + 1: y=y + 1 Next k Next j Print X;yA.1 4B.13 4C.12 8D.20 6
考题
以下程序段的输出结果是( )。 x=1 y=4 Do Until y4 x= x * y y=y+1 Loop Print XA.1SX
以下程序段的输出结果是( )。 x=1 y=4 Do Until y4 x= x * y y=y+1 Loop Print XA.1B.4C.8D.20
考题
运行下列程序: x=InputBox("input value of x") Select Case X Case Is>0 y=y+1 Case Is=0 y=x+2 Case ELse y=x+3 End Select Print x;y 运行时,从键盘输入-5,输出的结果是( )。A.-7B.-9C.-8D.-10
考题
下面程序输出的结果是( )。 include using namespace std; class A{
下面程序输出的结果是( )。 #include<iostream> using namespace std; class A{ int X; public: A(int x):x(++x){} ~A(){cout<<x;} }; class B:public A{ int y; public: B(int y):A(y),y(y){} ~B(){cout<<y;}; }; void main(){ B b(3); }A.34B.43C.33D.44
考题
有如下程序: x = InputBox("Input value of x") Select Case x Case Is > 0 y=y+1 Case Is = 0 y=x + 2 Case Else y=x + 3 End Select Print x, y运行时,从键盘输入-5,输出的结果是( )。A.-7B.-9C.-8D.-10
考题
以下程序的输出结果是______。includedefine FUDGE(y) 2.84+ydefine PR(a)printf("%d
以下程序的输出结果是______。 #include<stdio.h> #define FUDGE(y) 2.84+y #define PR(a) printf("%d\n",(int)(a)) #define PRINT1(a) PR(a);putchar('\n') main() { int x=2; PRINT1(FUDGE(5)*x); }A.11B.12C.13D.15
考题
下面程序执行的结果是( )。 CLEAR X=5 Y=6 Z=7 IF X>Y IF Z>8 X=X+Y ELSE X=X+Z ENDIF ENDIF ?XA.5B.11C.12D.13
考题
以下程序运行后,单击按钮输出结果是 Private Sub Commandl_Click( ) Dim x As Integer,y As Integer,z As Integer X=4:y=2: Z=3 Call Gopd(x,x,z) Print x;X;Z Call Gopd(x,y,y) Print x;y;y End Sub Private Sub Gopd(x As Integer,y As Integer,z As Integer) X=3 * Z + 1 y=2 * z z=x + y End SubA.6 6 12 7 11 11B.8 5 10 5 11 11C.9 6 12 9 10 15D.8 10 10 5 9 10
考题
下面程序的输出结果是includeclass example{ int a;public: example(int b){a=b++;
下面程序的输出结果是 #include<iostream.h> class example { int a; public: example(int b){a=b++;} void print(){a=a+1; cout<<a<<" ";} void print()const{cout<<a<<" ";} }; void main() { example x(3); const example y(2); x.print(); y.print(); }A.2 2B.4 3C.4 2D.3 2
考题
单击按钮时,以下程序运行后的输出结果是 Private Sub Commandl_Click( ) Dim X As Integer,y As Integer,z As Integer x=1:y=2: Z=3 Call God(x,x,z) Print x;x;z Call God(x,y,y) Print X;y;y End Sub Private Sub God(x As Integer,y As Integer,z As Integer) x=3 * Z + 1 y=2 * Z z=x + y End SubA.6 6 12 7 11 11B.8 5 10 5 11 11C.9 6 12 9 10 15D.8 10 10 5 9 10
考题
若输入60和13,以下程序运行后的输出结果是()。 #include #define SURPLUS(x,y) ((x)%(y)) main( ) { int x,y; scanf(“%d,%d”,x,y); printf(“%d”,SURPLUS(x,y)); }
考题
单选题下面语句的输出结果是()。x=10:y=3Print(x*y)/8A
5B
6C
3D
4
热门标签
最新试卷