Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What identifies a class constructor method? it has the word constructor in its title it has the same name as the class and is void

What identifies a class constructor method? it has the word constructor in its title it has the same name as the class and is void it has the same name as the class without any parameters, not even void it must be named using upper case characters only 1 points

QUESTION 3 In order to prevent stale, i.e. out of date results, you should double check your math with a colleague always calculate results from actual stored values only check the precedence (order of operations) of your formulas use a hand-held calculator to check your math 1 points

QUESTION 4 After an object is created, what type of variable must be created to access it? primitive variable complex variable reference variable matching variable 1 points QUESTION 5 What type of classes should not be allowed to be extended? math classes cryptographic classes text manipulation I/O classes 1 points

QUESTION 6 In computing, what does API stand for? Application Programming Interface Arithmetic Precision Intervals Abstract Procedures Interface Algorithmic Programming Interface 1 points

QUESTION 7 What is difference between a static and instance variable static variables belongs to the class while instance variables belongs to the object static variables belongs to the instance while instance variables belongs to the object static variables take up more memory space than instance variables there is no difference between static and instance variables in a running program 1 points

QUESTION 8 In addition to being platform independent, what advantage does Java have over older computer languages like FORTRAN and Pascal? Javas math libraries are more accurate Java can create dynamic (run time) data structures Java is faster than these older languages there is no real differences between and among these languages 1 points

QUESTION 9 A variable marked as private can be access by: only by methods within the class any method within the class and the project only by methods within the project if declared properly, it can be access anywhere at runtime 1 points

QUESTION 10 The reserve work this allows indicates that this is the correct method to call allows the use of the same variable name for parameter and local variables allows for shadowing has no effect of the variables scope 1 points QUESTION 11 In Java, variables are passes as: value reference value and reference depending on variable type it does not matter 1 points

QUESTION 12 Static methods cannot: refer to non-static member of the class are more powerful that non-static methods be used in utility classes be used more than once within a class 1 points

QUESTION 13 What is the difference between an array and an ArrayList ArrayList is an object with organic methods ArrayList is dynamic, i.e. it can expand and contract as needed ArrayList is slower than an array all of the above 1 points

QUESTION 14 In a Binary Search Algorithm the data must be: only in binary form, i.e. 1 and 0 only in String format ordered (sorted) less than 1 million entries 1 points QUESTION 15 Which one of the follow code snippets will compare two Strings? == = := .equals 1 points

QUESTION 16 Garbage collection in Java is: must be done explicitly by the programmer automatic more difficult than other languages remove data structure that are no longer referenced 1 points

QUESTION 17 In the Unified Modeling Language (UML) the - symbol indicates: indicates a variable or method is public indicates a negative value indicates a variable or method is private indicates a variable or method is inactive 1 points

QUESTION 18 In overloading, two or more methods can have the same name as long as: their return values are different their internal logic is different one method is larger than the other(s) their parameter lists are different 1 points

QUESTION 19 In order to work effectively with multi-dimensional arrays, you must use: nested loops external loops nondeterministic structures abstract data structures 1 points QUESTION 20 A class is analogous to a(n) house blueprint construction site architect 1 points

QUESTION 21 The Java key word that causes an object to be created in memory create new construct instantiate 1 points QUESTION 22 What method is automatically called when an instance of a class is created? accessor constructor void static 1 points QUESTION 23 Find the output of the following program: public class TestQuestionEight { public static void main(String[] args) { int[] x = {3, 5, 8}; int[] y = {6, 8, 2}; int answer = 0; for (int Outerindex = 0; Outerindex < x.length; Outerindex++) { answer = answer + x[Outerindex]; for (int InterIndex = 0; InterIndex < x.length; InterIndex++) { answer = answer + y[InterIndex]; } // end for 'InterIndex' loop } // end for 'Outerindex' loop System.out.print(answer); System.out.println(" "); } // method main } // end class TestQuestionEight 64 32 128 96 1 points

QUESTION 24 What is the value of scores [2] [3] in the following array? static int [] [] scores = { {88, 80, 79, 92}, {75, 84, 93, 80}, {98, 95, 92, 94}, {91, 84, 88, 96} }; 94 84 93 95 1 points

QUESTION 25 What type of array structure allows for storage of various data types? interger arrays ArrayList double arrays String arrays

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

How does switched Ethernet differ from traditional Ethernet?

Answered: 1 week ago

Question

3. Is it a topic that your audience will find worthwhile?

Answered: 1 week ago

Question

2. Does the topic meet the criteria specified in the assignment?

Answered: 1 week ago