Question: Java Test 1 Name 1) A Java program is best classified as arsge D) pnocesorE) aa 2) 6 bits can be used to represent 3)
Java Test 1 Name 1) A Java program is best classified as arsge D) pnocesorE) aa 2) 6 bits can be used to represent 3) Binary numbers are composed entirely of ? 4) Define the main method for a Java program 5) Give 2 examples of a legal Java identifier? distinct items or values? 6) A unique aspect of Java that allows code compiled on one machine to be executed on a machine of a different hardware platform is Java's A) bytecodes B) syntax C) use of objects D) use of exception handing E) all of the above 7) An error in a program that results in the program 500 ? A)aprogrammer error B) a syntax error C)ann-time emor alogical eror EO a snafu 8 Mistyping "printin" as "printn" will result in a syntax error B) a run-tinme error C) a logical error D) no error at all E) All the above 9) What is the output of the ollowing when the main method is evecuted public class Question-4 public static void main Stringl 1 args System.out.printin"hi there System.out printin System.out.printin"how areu oing today? 10) Write a Java program that will output on two separate lines the Phases "Repent Jesus is coming soon and "It pays to be educated" public static void main( Stringl ] args) 1 1) Name five of the fundamental terms which comprehend obyect-oriented programming. 12) A Java variable is the name of a A) numeric data value stored in memory B) data value stored in memory that can not change during the program's execution C) data value stored in memory that can change its value but cannot change its type during the program's execution D) data value stored in memory that can change both its value and its type during the program's execution E) data value or a class stored in memory that can change both its value and its type during the programs execution
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
