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

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

?? mockcert05.txt

?? 一道JAVA方面的試題 很不錯(cuò)的 我很喜歡
?? TXT
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
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

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美国产在线观看| 久久五月婷婷丁香社区| 久久亚洲影视婷婷| 91视频.com| 国产精品欧美久久久久无广告| 精品亚洲成a人| 91精品国产综合久久香蕉麻豆| 亚洲卡通动漫在线| 99久久精品99国产精品| 最新国产の精品合集bt伙计| 成人午夜激情视频| 国产精品无人区| 91精品国产91热久久久做人人| 免费成人av在线播放| 91精品国产乱码久久蜜臀| 成人国产电影网| 一二三四社区欧美黄| 欧美日韩中文字幕一区| 亚洲图片一区二区| 欧美美女网站色| 九九视频精品免费| 午夜精品国产更新| 精品国产自在久精品国产| 激情小说欧美图片| 国产精品传媒入口麻豆| 欧美日韩在线三区| 91丨九色丨尤物| 国产成人精品综合在线观看| 亚洲精品自拍动漫在线| 中文字幕在线观看一区| 欧美日韩一区不卡| 色狠狠av一区二区三区| 无码av中文一区二区三区桃花岛| 亚洲欧美视频一区| 欧美一区二区三区系列电影| 欧美日韩黄色一区二区| 国产成人一区二区精品非洲| 久久99精品国产91久久来源| 麻豆高清免费国产一区| 亚洲视频一区二区在线| 亚洲日本韩国一区| 亚洲蜜臀av乱码久久精品| 国产精品热久久久久夜色精品三区 | 美女一区二区三区在线观看| 亚洲国产精品久久人人爱 | 久久国产夜色精品鲁鲁99| 国产欧美综合在线| 一本一本大道香蕉久在线精品| 欧美a级一区二区| 日韩黄色一级片| 一区二区中文视频| 一区二区三区丝袜| 亚洲第一成人在线| 中文字幕一区二区三区在线不卡| 国产精品全国免费观看高清| 国产精品欧美一区二区三区| 亚洲人123区| 亚洲自拍都市欧美小说| 中文字幕精品一区二区精品绿巨人 | 激情av综合网| 成人av综合在线| 日本二三区不卡| 欧美精品国产精品| 337p日本欧洲亚洲大胆色噜噜| 国产女人18毛片水真多成人如厕 | 欧美精品在线观看一区二区| 91精品国产一区二区三区香蕉| 精品99一区二区三区| 日本一区二区三区久久久久久久久不| 中文字幕av一区二区三区免费看| 亚洲欧洲99久久| 天天综合天天综合色| 激情欧美日韩一区二区| 成人国产精品免费观看| 欧美高清精品3d| 久久婷婷成人综合色| 亚洲视频一区二区在线| 麻豆精品一区二区综合av| 国产成人亚洲综合色影视| 在线观看国产一区二区| 国产精品888| 国产综合久久久久影院| 成人高清视频在线观看| 欧美日韩一区三区四区| 国产亚洲制服色| 日本一区二区三区四区在线视频 | 国产欧美一区二区精品婷婷 | 亚洲婷婷综合久久一本伊一区| 日韩国产在线观看一区| 亚洲丝袜自拍清纯另类| 美女视频网站久久| 91麻豆免费在线观看| 精品国产乱码久久久久久夜甘婷婷| 成人欧美一区二区三区视频网页| 日本欧美一区二区| 99久久精品免费观看| 精品国产91乱码一区二区三区| 亚洲欧洲成人自拍| 精品亚洲免费视频| 欧美日韩高清一区二区三区| 国产精品久久久久7777按摩| 精品一区二区免费视频| 欧美亚洲综合在线| 91精品国产综合久久久蜜臀粉嫩| 国产精品美女久久福利网站| 看电视剧不卡顿的网站| 欧美日韩极品在线观看一区| 亚洲欧美日韩中文播放| 国产乱子伦一区二区三区国色天香 | 久久色中文字幕| 亚洲午夜一区二区三区| 99综合影院在线| 欧美在线免费观看视频| 国产精品短视频| 国内不卡的二区三区中文字幕| 欧美日韩国产乱码电影| 一区二区三区国产精华| 不卡av在线网| 国产欧美一区二区精品性色超碰| 韩日av一区二区| 日韩一级片网址| 日本一区二区动态图| 国产自产视频一区二区三区| 一个色妞综合视频在线观看| 国产一区福利在线| 在线亚洲人成电影网站色www| 欧美激情中文不卡| 另类小说综合欧美亚洲| 欧美日韩高清一区二区三区| 一区二区三区日韩| 91在线免费视频观看| 中文在线一区二区| 岛国精品一区二区| 中文成人综合网| 成人深夜在线观看| 亚洲国产精品激情在线观看 | 99视频有精品| 亚洲少妇30p| 91在线视频观看| 亚洲另类春色校园小说| 欧美在线短视频| 午夜免费欧美电影| 这里是久久伊人| 蜜桃传媒麻豆第一区在线观看| 日韩欧美成人午夜| 日韩精品一区二区三区中文不卡| 亚洲成a人v欧美综合天堂| 欧美日韩成人综合在线一区二区 | 成人动漫一区二区| 中文字幕日韩欧美一区二区三区| 成人网在线播放| 亚洲欧美日韩中文播放| 精品视频免费在线| 日本aⅴ免费视频一区二区三区| 欧美一区二区福利在线| 韩国精品一区二区| 国产精品美女www爽爽爽| 一本大道久久a久久综合婷婷| 亚洲一区二区三区三| 欧美一卡在线观看| 国产精品影视在线观看| 亚洲人成7777| 欧美一区二区三区不卡| 国产成人午夜精品5599| 综合色天天鬼久久鬼色| 欧美美女一区二区三区| 国产精品一二三| 一二三区精品视频| 日韩亚洲欧美一区| 成a人片亚洲日本久久| 亚洲午夜精品17c| 精品国产网站在线观看| 99久久精品免费看国产| 免费国产亚洲视频| 国产精品进线69影院| 6080yy午夜一二三区久久| 国产成人综合自拍| 亚洲国产一区二区三区青草影视| 日韩精品一区在线| 99久久国产综合精品色伊| 青青草97国产精品免费观看 | 欧美一三区三区四区免费在线看| 国产一区在线观看视频| 亚洲最大成人综合| 欧美成人艳星乳罩| 久久福利视频一区二区| 国产精品久久久久影视| 日韩亚洲欧美在线| 91欧美激情一区二区三区成人| 日韩av中文在线观看| 综合色天天鬼久久鬼色| 欧美电影免费观看高清完整版在| 99国产精品国产精品久久| 蜜桃av一区二区三区| 亚洲激情在线激情| 久久久久国产精品人| 成人综合日日夜夜| 日韩福利视频网| 亚洲日韩欧美一区二区在线| 2014亚洲片线观看视频免费|