CMIS 141 7984 Introductory Programming (2158) A non-local boolean variable is declared with the following Java code: boolean myVar; What is the value of myVar? Question 2 (1 point) Select the valid Java comments from the statements below. Question 3 (1 point) What is the filename extension used for all Java compiled files. Question 4 (1 point) Select the correct line of Java code to assign 1000 to an int variable named myValue. Question 5 (1 point) Will the following Java code compile and run without errors? public class QuizItem { public static void main(String[] args) { final int age = 38; age = 39; System.out.println(“Age is ” + age); } } Question 6 (1 point) What is the output from the following Java code? public class Week1Quiz { public static void main (String[] args) { System.out.println (“Welcome”); System.out.println (“to”); System.out.print (“UMUC!”); } } Question 7 (1 point) Given the following sequence of Java code: int var = 4; var++; var = var + 2; var–; var = -var; What is the final value of var? Question 8 (1 point) What character is assigned to the variable myChar in the following line of Java code? char value = ‘u0023’; Question 9 (1 point) The Java Application Programming Interface (API) is: Question 10 (1 point) Given the following sequence of Java code: int var1 = 0b0001; int var2 = 0b1111; int results1 = var1 & var2; int results2 = var1 | var2; int results3 = var1 ^ var2; int printit = results1 + results2 + results3; What are the values for results1, results2, results3 and printit after executing the code? Question 11 (1 point) What are bytecodes? Question 12 (1 point) Select the invalid declaration from the lines of Java code below Question 13 (1 point) If we declared the following variables in Java int age = 27; int cafe = 0xCAFE; int number1 =0b0001; What is the output for the following Java statement? System.out.println(age + cafe + number1); Question 14 (1 point) What is the filename extension used for all Java source files. Question 15 (1 point) What development tool do you use to compile Java code? Question 16 (1 point) What is the output from the following Java code? public class Week1Quiz { public static void main (String[] args) { System.out.print (“Welcome”); System.out.print (“to “); System.out.println (“UMUC”); System.out.print (“!”); } } Question 17 (1 point) What is the output from the following Java code? public class Week1Quiz { public static void main (String[] args) { System.out.print (“Welcome”); System.out.print (“to”); System.out.print (“UMUC”); } } Question 18 (1 point) Select the line of Java code that will correctly declare a float variable named average and assign the variable a value of 3.4. Question 19 (1 point) The following java code was created to print “Hello, World!” public class JavaQuiz { public static void main (String[] args) { System.out.println (“Hello, World!”); } } What is the name of the Java source file? Question 20 (1 point) Which of the following is an invalid Java statement: Question 21 (1 point) What is the output from the following Java code? public class Week1Quiz { public static void main (String[] args) { System.out.print (“Welcome”); System.out.print (“to”); System.out.print (“UMUC”); } } Question 22 (1 point) Select the Java code that will correctly declare a boolean variable named success and assign it a value of false. Question 23 (1 point) Given the following sequence of Java code: int var1 = 4; int var2 = 6; int var3 = 10; int results = (var1 + var2) * var3 /(var1 + var3) – var2%var1; What is the values of results after executing the code? Question 24 (1 point) What must be installed on a computer to be able to run bytecodes? Question 25 (1 point) Which of the following statements is a comment in Java 6 years ago 25.10.2015 20 Report Issue Answer ( 2 ) guaranteedgrades 4.7 ( 120 ) 5.0 ( 2 ) Chat Purchase the answer to view it NOT RATED java_questions.docx 6 years ago plagiarism check Purchase $20 vishalkathuria1991 4.8 ( 8 ) 4.8 ( 8 )…

Looking for solution of this Assignment?

WHY CHOOSE US?

We deliver quality original papers

Our experts write quality original papers using academic databases.We dont use AI in our work. We refund your money if AI is detected  

Free revisions

We offer our clients multiple free revisions just to ensure you get what you want.

Discounted prices

All our prices are discounted which makes it affordable to you. Use code FIRST15 to get your discount

100% originality

We deliver papers that are written from scratch to deliver 100% originality. Our papers are free from plagiarism and NO similarity.We have ZERO TOLERANCE TO USE OF AI

On-time delivery

We will deliver your paper on time even on short notice or  short deadline, overnight essay or even an urgent essay