第六章
Math static method random generates a random double value in the range from 0.0 ( )
答案:up to but not including 1.0
Which statement creates a random value from the sequence 2, 5, 8, 11 and 14. Suppose randomNumbers is a SecureRandom object. ( )A set of named constants that start with the value 0 for the first constant and increment by 1 for each subsequent constant can be declared as a(n) ________. ( )Arrays are ________. ( )Types in Java are divided into two categories. The primitive types are boolean, byte, char, short, int, long, float and double. All other types are ________ types. ( )Which of the following statements is false? ( )Which of the following statements about arrays are true?1: An array is a group of variables containing values that all have the same type.2: Elements are located by index.3: The length of an array c is determined by the expression c.length();4: The zeroth element of array c is specified by c[0].( )A programmer must do the following before using an array: ( )Consider the code segment below. Which of the following statements is false? int[] g; g = new int[23]; ( )Which of the following statements about creating arrays and initializing their elements is false? ( )Which of the following initializer lists would correctly set the elements of array n? ( )

温馨提示支付 ¥3.00 元后可查看付费内容,请先翻页预览!
点赞(0) dxwkbang
返回
顶部