亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? mockcert05.txt

?? 一道JAVA方面的試題 很不錯的 我很喜歡
?? TXT
?? 第 1 頁 / 共 5 頁
字號:
Question 1
===========================================================
Which of the following are valid definitions of an application's main( ) method?

Mutiple: ________________
1) public static void main();
2) public static void main(String args);
3) public static void main(String args[]);
4) public static void main(Graphics g);
5) public static boolean main(String args[]);


Question 2
===========================================================
If MyProg.java were compiled as an application and then run from the command line as: 

              java MyProg I like tests
what would be the value of args[ 1 ] inside the main( ) method?

Mutiple: ________________
1) MyProg
2) "I"
3) "like"
4) 3
5) 4


Question 3
===========================================================
Which of the following are Java keywords?

Mutiple: ________________
1) array
2) boolean
3) Integer
4) protect
5) super


Question 4
===========================================================
After the declaration: 

char[] c = new char[100]; 

what is the value of c[50]?

Only One: _______
1) 50
2) 49
3) '\u0000'
4) '\u0020'
5) always null until a value is assigned


Question 5
===========================================================
If raf is a RandomAccessFile, what is the result of compiling and executing the following code?

raf.seek( raf.length() );:

Only One: _______
1) The code will not compile.
2) An IOException will be thrown.
3) The file pointer will be positioned immediately before the last character of the file.
4) The file pointer will be positioned immediately after the last character of the file.


Question 6
===========================================================
Which identifiers are valid?

Mutiple: ________________
1) _xpoints
2) r2d2
3) bBb$
4) set-flow
5) thisisCrazy


Question 7
===========================================================
A directory can be created using a method from the class(es):

Mutiple: ________________
1) File
2) DataOutput
3) Directory
4) FileDescriptor
5) FileOutputStream


Question 8
===========================================================
Which of the following statements assigns "Hello Java" to the String variable s?

Mutiple: ________________
1) String s = "Hello Java";
2) String s[] = "Hello Java";
3) new String s = "Hello Java";
4) String s = new String("Hello Java");


Question 9
===========================================================
An integer, x has a binary value (using 1 byte) of 10011100. What is the binary value of z after these statements: 

int y = 1 << 7;
int z = x & y;

Only One: _______
1) 1000 0001
2) 1000 0000
3) 0000 0001
4) 1001 1101
5) 1001 1100


Question 10
===========================================================
Which statements are accurate:

Mutiple: ________________
1) >> performs signed shift while >>> performs an unsigned shift.
2) >>> performs a signed shift while >> performs an unsigned shift.
3) << performs a signed shift while <<< performs an insigned shift.
4) <<< performs a signed shift while << performs an unsigned shift.


Question 11
===========================================================
The statement ... 

String s = "Hello" + "Java"; 

yields the same value for s as ... 

String s = "Hello";
String s2= "Java";
s.concat( s2 );

Only One: _______
1) True
2) False


Question 12
===========================================================
If you compile and execute an application with the following code in its main() method:

	String s = new String( "Computer" );
	
	if( s == "Computer" )
		System.out.println( "Equal A" );
	if( s.equals( "Computer" ) )
		System.out.println( "Equal B" );

Only One: _______
1) It will not compile because the String class does not support the = = operator.
2) It will compile and run, but nothing is printed.
3) "Equal A" is the only thing that is printed.
4) "Equal B" is the only thing that is printed.
5) Both "Equal A" and "Equal B" are printed.


Question 13
===========================================================
Consider the two statements:

	1. boolean passingScore = false && grade == 70;
	2. boolean passingScore = false & grade == 70;
The expression 

grade == 70 

is evaluated:

Mutiple: ________________
1) in both 1 and 2
2) in neither 1 nor 2
3) in 1 but not 2
4) in 2 but not 1
5) invalid because false should be FALSE


Question 14
===========================================================
Given the variable declarations below: 

byte myByte;
int myInt;
long myLong;
char myChar;
float myFloat;
double myDouble; 

Which one of the following assignments would need an explicit cast?

Mutiple: ________________
1) myInt = myByte;
2) myInt = myLong;
3) myByte = 3;
4) myInt = myChar;
5) myFloat = myDouble;


Question 15
===========================================================
Consider this class example:

class MyPoint 
{  void myMethod() 
   {  int x, y;
      x = 5; y = 3;
      System.out.print( " ( " + x + ", " + y + " ) " );
      switchCoords( x, y );
      System.out.print( " ( " + x + ", " + y + " ) " );
   }
   void switchCoords( int x, int y ) 
   {  int temp;
      temp = x;
      x = y;
      y = temp;
      System.out.print( " ( " + x + ", " + y + " ) " );
   }
}
What is printed to standard output if myMethod() is executed?

Only One: _______
1) (5, 3) (5, 3) (5, 3)
2) (5, 3) (3, 5) (3, 5)
3) (5, 3) (3, 5) (5, 3)


Question 16
===========================================================
.. To declare an array of 31 floating point numbers representing snowfall for each day of March in Gnome, Alaska, which declarations would be valid?

Mutiple: ________________
1) double snow[] = new double[31];
2) double snow[31] = new array[31];
3) double snow[31] = new array;
4) double[] snow = new double[31];


Question 17
===========================================================
If arr[] contains only positive integer values, what does this function do?

public int guessWhat( int arr[] )
{  int x= 0;
   for( int i = 0; i < arr.length; i++ )
      x = x < arr[i] ? arr[i] : x;
   return x;
}

Mutiple: ________________
1) Returns the index of the highest element in the array
2) Returns true/false if there are any elements that repeat in the array
3) Returns how many even numbers are in the array
4) Returns the highest element in the array
5) Returns the number of question marks in the array


Question 18
===========================================================
Consider the code below: 

arr[0] = new int[4];
arr[1] = new int[3];
arr[2] = new int[2];
arr[3] = new int[1];
for( int n = 0; n < 4; n++ )
System.out.println( /* what goes here? */ ); 

Which statement below, when inserted as the body of the for loop, would print the number of values in each row?

Only One: _______
1) arr[n].length();
2) arr.size;
3) arr.size -1;
4) arr[n][size];
5) arr[n].length;


Question 19
===========================================================
If size = 4, triArray looks like:


int[][] makeArray( int size) 
{  int[][] triArray = new int[size] [];
   int val=1;
   for( int i = 0; i < triArray.length; i++ ) 
   {  triArray[i] = new int[i+1];
	  for( int j=0; j < triArray[i].length; j++ )
      {  triArray[i][j] = val++;
      }
   }
   return triArray;
}

Only One: _______
1) 1 2 3 4
5 6 7
8 9
10
2) 1 4 9 16
3) 1 2 3 4
4) 1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
5) 1
2 3 
4 5 6 
7 8 9 10


Question 20
===========================================================
Which of the following are legal declarations of a two-dimensional array of integers?

Mutiple: ________________
1) int[5][5]a = new int[][];
2) int a = new int[5,5];
3) int[]a[] = new int[5][5];
4) int[][]a = new[5]int[5];


Question 21
===========================================================
Which of the following are correct methods for initializing the array "dayhigh" with 7 values?

Mutiple: ________________
1) int dayhigh = { 24,23,24,25,25,23,21 };
2) int dayhigh[] = { 24,23,24,25,25,23,21 };
3) int[] dayhigh = { 24,23,24,25,25,23,21 };
4) int dayhigh[] = new int[24,23,24,25,25,23, 21];


Question 22
===========================================================
A "mode" argument such as "r" or "rw" is required in the constructor for the class(es):

Mutiple: ________________
1) DataInputStream
2) InputStream
3) RandomAccessFile
4) File
5) None of the above


Question 23
===========================================================
Choose all valid forms of the argument list for the FileOutputStream constructor shown below:

Mutiple: ________________
1) FileOutputStream(FileDescriptor fd)
2) FileOutputStream(String n, boolean a)
3) FileOutputStream(boolean a)
4) FileOutputStream()
5) FileOutputStream(File f)


Question 24
===========================================================
Consider the code below:


public static void main( String args[] )
{  int a = 5;
   System.out.println( cube( a ) );
}
int cube( int theNum )
{
   return theNum * theNum * theNum;
}

What will happen when you attempt to compile and run this code?

Mutiple: ________________
1) It will not compile because cube is already defined in the java.lang.Math class.
2) It will not compile because cube is not static.
3) It will compile, but throw an arithmetic exception.
4) It will run perfectly and print "125" to standard output.


Question 25
===========================================================
Given the variables defined below: 

int one = 1;
int two = 2;
char initial = '2';
boolean flag = true; 

Which of the following are valid?

Mutiple: ________________
1) if( one ){}
2) if( one = two ){}
3) if( one == two ){}
4) if( flag ){}
5) switch( one ){}


Question 26
===========================================================
If val = 1 in the code below:


switch( val ) 
{  case 1: System.out.print( "P" );
   case 2: 
   case 3: System.out.print( "Q" );
      break;
   case 4: System.out.print( "R" );
   default: System.out.print( "S" );
}

Which values would be printed?

Mutiple: ________________
1) P
2) Q
3) R
4) S


Question 27
===========================================================
Assume that val has been defined as an int for the code below:


if( val > 4 ) 
{  System.out.println( "Test A" );
}
else if( val > 9 ) 
{  System.out.println( "Test B" );
}
else System.out.println( "Test C" );

Which values of val will result in "Test C" being printed:

Mutiple: ________________
1) val < 0
2) val between 0 and 4
3) val between 4 and 9
4) val > 9
5) val = 0


Question 28
===========================================================
Which of the following describe the sequence of method calls that result in a component being redrawn?

Mutiple: ________________
1) invoke paint() directly
2) invoke update which calls paint()
3) invoke repaint() which invokes update(), which in turn invokes paint()
4) invoke repaint() which invokes paint directly


Question 29
===========================================================
For the code:


m = 0;
while( m++ < 2 )
   System.out.println( m );

Which of the following are printed to standard output?

Mutiple: ________________
1) 0
2) 1
3) 2
4) 3
5) Nothing and an exception is thrown

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲色图在线播放| 精品视频1区2区3区| 亚洲免费观看视频| 欧美日韩高清一区| 国产经典欧美精品| 一区二区三区资源| 精品电影一区二区三区| 韩日欧美一区二区三区| 国产精品免费网站在线观看| 5月丁香婷婷综合| 狠狠色丁香婷婷综合久久片| 亚洲美女视频在线观看| 日韩一区二区中文字幕| 欧美一区二区三区四区久久| 成人成人成人在线视频| 亚洲一二三四区不卡| 日韩欧美第一区| 色综合中文字幕国产 | zzijzzij亚洲日本少妇熟睡| 亚洲图片一区二区| 国产亚洲人成网站| 欧美日本在线播放| 成人av电影在线| 久国产精品韩国三级视频| 亚洲男女一区二区三区| 欧美xxxx在线观看| 欧美日韩免费高清一区色橹橹| 国产成人精品午夜视频免费| 亚洲超碰97人人做人人爱| 日本一区二区电影| 久久综合精品国产一区二区三区| 91福利视频久久久久| 久久精品久久综合| 午夜免费欧美电影| 亚洲欧美偷拍另类a∨色屁股| 777xxx欧美| 欧美日韩日本视频| 在线这里只有精品| 色综合中文字幕| 99热国产精品| 不卡的av在线播放| 国产一区二区福利视频| 久久国产麻豆精品| 日本不卡在线视频| 午夜精品久久一牛影视| 一区二区久久久久久| 国产精品视频yy9299一区| 久久人人爽爽爽人久久久| 日韩精品一区二区三区老鸭窝 | 久久99精品久久只有精品| 亚洲福中文字幕伊人影院| 亚洲精品福利视频网站| 亚洲国产精品精华液2区45| 26uuu另类欧美亚洲曰本| 欧美一区二区视频在线观看2022| 欧美日韩一区二区三区高清| 日本久久精品电影| 色婷婷综合久色| 日本道精品一区二区三区 | 538在线一区二区精品国产| 欧洲亚洲国产日韩| 欧美调教femdomvk| 欧美特级限制片免费在线观看| 欧美在线制服丝袜| 欧美日韩成人综合天天影院| 欧美日韩精品综合在线| 欧美精品在线视频| 制服.丝袜.亚洲.另类.中文| 欧美日韩精品二区第二页| 91毛片在线观看| av午夜一区麻豆| 91成人国产精品| 欧美日韩黄色一区二区| 日韩一级免费观看| 国产偷国产偷亚洲高清人白洁| 国产精品人成在线观看免费| 国产精品丝袜91| 亚洲欧洲av另类| 亚洲成人福利片| 美腿丝袜一区二区三区| 韩国精品一区二区| 成人黄色电影在线| 欧美在线你懂的| 日韩欧美视频在线| 国产欧美日韩三级| 一区二区国产视频| 日本欧美加勒比视频| 国产精品白丝jk白祙喷水网站| 成人av网址在线| 在线一区二区观看| 欧美不卡在线视频| 亚洲日本一区二区| 免费人成在线不卡| 国产91丝袜在线播放九色| 日本久久电影网| 日韩一级免费观看| 18欧美乱大交hd1984| 丝袜美腿亚洲一区二区图片| 国产精品1024久久| 欧美在线视频日韩| 久久综合狠狠综合久久综合88| 最新中文字幕一区二区三区| 亚洲中国最大av网站| 国产尤物一区二区在线| 色8久久人人97超碰香蕉987| 精品国产精品一区二区夜夜嗨| 亚洲丝袜制服诱惑| 美国三级日本三级久久99| 成人毛片在线观看| 日韩欧美一区二区三区在线| 亚洲婷婷在线视频| 极品尤物av久久免费看| 91在线精品一区二区三区| 欧美天堂一区二区三区| 国产欧美一区二区精品忘忧草| 亚洲成av人片| 91蜜桃婷婷狠狠久久综合9色| 日韩欧美久久一区| 亚洲午夜久久久久久久久电影网| 国产一区二区调教| 在线成人免费观看| 亚洲激情图片一区| 丁香六月久久综合狠狠色| 日韩精品在线一区二区| 亚洲精品少妇30p| 国产精品一区二区x88av| 欧美亚洲国产怡红院影院| 国产精品欧美久久久久无广告| 久久99精品国产91久久来源| 欧美精品电影在线播放| 亚洲另类春色国产| av一区二区三区黑人| 国产亚洲综合色| 精品一区二区三区免费观看| 欧美精品三级在线观看| 亚洲乱码日产精品bd| av中文字幕不卡| 国产精品丝袜久久久久久app| 韩国一区二区在线观看| 日韩欧美电影一二三| 免费的国产精品| 宅男在线国产精品| 三级久久三级久久| 欧美唯美清纯偷拍| 亚洲国产综合在线| 国产在线精品视频| 日韩免费视频一区| 免费在线一区观看| 91精品啪在线观看国产60岁| 亚洲国产成人av网| 欧美日韩亚洲高清一区二区| 亚洲成av人影院| 欧美日韩国产另类一区| 亚洲欧美日韩在线| 一本大道av一区二区在线播放| 国产精品的网站| 91免费在线视频观看| 亚洲精品一二三区| 色综合久久99| 亚洲一级在线观看| 欧美日韩成人综合在线一区二区| 亚洲一区二区三区视频在线| 欧美日韩精品系列| 免费人成在线不卡| 精品国产露脸精彩对白| 国产精品一区二区不卡| 精品国产在天天线2019| 日韩精品国产精品| 日韩欧美视频一区| 国产一区二区三区日韩 | 欧美国产日韩亚洲一区| 91国产精品成人| 久久精品噜噜噜成人88aⅴ| 国产精品久久久久影视| 欧美日韩一卡二卡| 国产a视频精品免费观看| 亚洲成人第一页| 欧美极品少妇xxxxⅹ高跟鞋 | 欧美乱妇20p| 国产成人综合在线播放| 亚洲国产精品一区二区www在线 | 亚洲国产精品视频| 国产午夜精品理论片a级大结局| 欧美亚日韩国产aⅴ精品中极品| 久久精品国产77777蜜臀| 成人免费一区二区三区视频 | 国产成人在线免费观看| 亚洲成人一区二区在线观看| 国产亚洲欧美中文| 欧美电影在线免费观看| 99久久99久久精品免费观看| 奇米精品一区二区三区在线观看一| 国产精品三级视频| 日韩一级片在线播放| 在线观看欧美黄色| 国产成人av一区二区| 美女高潮久久久| 午夜久久久久久久久久一区二区| 亚洲欧洲日韩在线| 久久精品网站免费观看|