Java Fall 21 MidTerm Directions: Please download the questions document. Answer the questions. Convert the document into PDF. Upload the PDF back to the Canvas system. Please double check the file...

there are 5 questions, simple questions, what is the best price you can do to solve these


Java Fall 21 MidTerm Directions: Please download the questions document. Answer the questions. Convert the document into PDF. Upload the PDF back to the Canvas system. Please double check the file before you upload as no email submissions will be accepted for the Mid-Term exam. Date available: 10/19/2021 Deadline: 10/21/2021 Max points possible: 20 Question1: Declare an integer variable named numDogs, initializing the variable to 0 in the declaration. [2 points] Answer: Question2: Which are valid identifiers? Circle your answer. [1 point each] numCars Valid Invalid num_Cars1 Valid Invalid _numCars Valid Invalid ___numCars Valid Invalid 3rdPlace Valid Invalid thirdPlace_ Valid Invalid thirdPlace Valid Invalid Question3: What is the value of x after all following statements execute? [2 points] int x; int y; x = 5 y = 2 x = x * y x = x * y Answer: Question4: Indicate whether the expression evaluates to true or false. Circle your answer. x is 5, y is 7. [1 point each] x == 5 true false x == y true false y != 7 true false y != 99 true false x != y true false Question5: Using logical operators detect if x is either less than -5, or greater than 10 [4 points] Answer:
Oct 21, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here