网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
现有: int x- reader.read( ); 下面哪一项正确?()
- A、阅读器不是FileReader或者BufferedReader类型
- B、阅读器可以是FileReader或者BufferedReader
- C、阅读器可以是FileReader类型,但不能是BufferedReader类型
- D、阅读器可以是BufferedReader类型,但不能是FileReader类型
参考答案
更多 “ 现有: int x- reader.read( ); 下面哪一项正确?()A、阅读器不是FileReader或者BufferedReader类型B、阅读器可以是FileReader或者BufferedReaderC、阅读器可以是FileReader类型,但不能是BufferedReader类型D、阅读器可以是BufferedReader类型,但不能是FileReader类型” 相关考题
考题
若执行下面程序时从键盘上输入5, main(){int x;scanf("%d",if(x++>5)printf("%d\n",x);else printf("%d\n",x-); 则输出是______。A.7B.6C.5D.4
考题
现有:intx=reader.read();下面哪一项正确?()
A.阅读器可以是FileReader或者BufferedReaderB.阅读器不是FileReader或者BufferedReader类型C.阅读器可以是FileReader类型,但不能是BufferedReader类型D.阅读器可以是BufferedReader类型,但不能是FileReader类型
考题
如下的类定义,括号里应填( )。 class Myclass { public: MyClass(int a =0,int b =0) { X=a; Y=b; void Change ( ) const { X- =10; Y+ =10; public: ( )int X,Y;A.staticB.constC.mutableD.可以不添内容
考题
主调函数中的两个变量a和b,要求调用函数交换a、b的值,返回交换结果,则以下正确的函数是______。A.funa(int*x,int*y) {int*p; *p=*x;*x=*y;*y=*p; }B.funb(int x,int y) {int t; t=x;x:y=y=t;}C.func(int*x,int*y) {*x=*y;*y=*x;}D.fund(int *x,int*y) {*x=*x+*y;*y=*x-*y;*x=*x-*y;}
考题
设x和y均为int型变量,则执行下面的循环后,y值为( )。 public class Sun { public static void main(String args[ ]) { int x, y; for (y=1, x=1; y<=50; y++) { if(x>=10) break; if (x%2==1) { x+=5; continue; } x-=3; } System.out.println (y); } }A.2B.4C.6D.8
考题
有如下类的定义。应在空格处填入的语句是 ( )。 class MyClass { ______________ int x, y; public: MyClass(int a=0,int b=0) { x=a; y=b; } static void change{) { x-=10; y-=10; };A.staticB.constC.mutableD.不需要填入内容
考题
有如下类的定义。空格处的语句是class MyClass{ ______ int x, y;public: MyClass(int a=0, int b=0) { x=a; y=b; } static void change() { x-=10; y-=10; }};A.staticB.constC.privateD.不需要填入内容
考题
若有定义语句:“int x=10;”,则表达式x-=x+x的值为( )。 A.-20B.-l0C.0
若有定义语句:“int x=10;”,则表达式x-=x+x的值为( )。A.-20B.-l0C.0D.10
考题
下面的程序输出结果是______。 main() { int x=3; while(!(--x)) printf("%d\n",x-=2); }A.不执行循环体B.1C.0D.是死循环
考题
设x和y均为int型变量,则执行下面的循环后,y值为()。include void main(){int x, y;f
设x和y均为int型变量,则执行下面的循环后,y值为( )。#include <iostream.h>void main(){int x, y;for(y= 1,x= 1 ;y<=50;y++){ if(x>=10) }break;if (x%2==1){ x+=5; continue;} x-=3;} cout<<y;A.2B.4C.6D.8
考题
有如下类的定义。空格处的语句是 class MyClass { ______int x,y; public: MyClass(int a=0,int b=0) { x=a; y=b; } staticvoidchange() { x-=10; y-=10; } };A.staticB.constC.privateD.不需要填入内容
考题
下面程序段的输出结果是 ______。 int X=20, y=20; cout<<x- -<<" , "<< - -y;A.20, 20B.19, 19C.19, 20D.20, 19
考题
有以下程序: main() { int n=0,m=l,x=2; if(!n) x-=l: if(!m) x-=2; if(!x) x-=3; printf (" %d\n",x); } 执行后的输出结果是 ______。A.2B.1C.3D.6
考题
下面的程序 main( ) { int x=3; do{printf("%d\n",x-=2);} while(!(- -x)); }A.输出的是1B.输出的是1和-2C.输出的是3和0D.是死循环
考题
下面哪一个循环会导致死循环()A、for (int k = 0; k 0; k++)B、for (int k = 10; k 0; k--)C、for (int k = 0; k 10; k--)D、for (int k = 0; k 0; k++)
考题
下面哪一个是合法的数组声明和构造语句()A、 int[] ages = [100];B、 int ages = new int[100];C、 int[] ages = new int[100];D、 int() ages = new int(100);
考题
现有: int x = reader.read(); 下面哪一项正确?() A、 阅读器可以是FileReader或者BufferedReaderB、 阅读器不是FileReader或者BufferedReader类型C、 阅读器可以是FileReader类型,但不能是BufferedReader类型D、 阅读器可以是BufferedReader类型,但不能是FileReader类型
考题
单选题现有: int x = reader.read(); 下面哪一项正确?()A
阅读器可以是FileReader或者BufferedReaderB
阅读器不是FileReader或者BufferedReader类型C
阅读器可以是FileReader类型,但不能是BufferedReader类型D
阅读器可以是BufferedReader类型,但不能是FileReader类型
考题
单选题现有: int x- reader.read(); 下面哪一项正确?()A
阅读器不是FileReader或者BufferedReader类型B
阅读器可以是FileReader或者BufferedReaderC
阅读器可以是FileReader类型,但不能是BufferedReader类型D
阅读器可以是BufferedReader类型,但不能是FileReader类型
考题
单选题下面哪一个是合法的数组声明和构造语句()A
int[]ages=[100];B
int ages=new int[100];C
int[]ages=new int[100];D
int()ages=new int(100);
考题
单选题下面哪一个是合法的数组声明和构造语句()A
int[] ages = [100];B
int ages = new int[100];C
int[] ages = new int[100];D
int() ages = new int(100);
热门标签
最新试卷