Please answer these questions ASAP. I just need the final answers…
Question Answered step-by-step Please answer these questions ASAP. I just need the final answers… Please answer these questions ASAP. I just need the final answers Question 13 pts Fill in the blank to generate a random number between 100 and 200 including 100 and 200. You must enter one number in each box otherwise it will be marked incorrect Random rand = new Random();_____num = rand.nextInt( ) + ; Flag question: Question 2Question 21 pts which one of the following methods can be used to do data validationGroup of answer choicesall of the answers hasNextInt() hasNext() hasNextDouble() Flag question: Question 3Question 31 pts do-while loop is an indefinite loopGroup of answer choicesTrue False Flag question: Question 4Question 41 pts the condition if( !( x > 10 && y < 20) ) is the same as 1. if( x < 10 || y > 20)2. if( x <= 10 || y >= 20)3.if(x <= 10 && y >=20)4. non of the answers Group of answer choices2 1 3 4 Flag question: Question 5Question 51 pts which one of the following loops executes at least onceGroup of answer choicesdo-while while for all of the answers Flag question: Question 6Question 61 pts What would be the range of the number generated by the following code int num = rand.nextInt(50) + 20;Group of answer choices20-69 20-50 0-70 none of the answers Flag question: Question 7Question 71 pts The following code will cause a runtime errorString s = “hello”;if(s.charAt(7) == ‘a’ && s.length() > 7) System.out.println(s.charAt(0));which one of the following will fix the problem 1. change the && to ||2. swap the two conditions so that s.length() > 7 can be checked first3. change the == to !=4. change > to <=Group of answer choices2 1 3 4 Flag question: Question 8Question 81 pts Random class is in the ___________packageGroup of answer choicesutil Scanner Random none of the answers Flag question: Question 9Question 91 pts Which of the answers is the same as the following condition!((2 == 3) && (-1 < 5) && isPrime(n))!(2 != 3) || !(-1 < 5) || isNotPrime(n)!(2 == 3) && !(-1 < 5) && !isPrime(n)(2 == 3) || (-1 < 5) || isPrime(n)(2 != 3) || (-1 >= 5) || !isPrime(n)(2 != 3) && (-1 > 5) && isPrime(n)Group of answer choices4 1 2 3 5 Flag question: Question 10Question 101 pts The condition for the following two while loops is exactly the same boolean b = true; while(b) { //some code } while(b == true) { //some code } Group of answer choicesTrue False Flag question: Question 11Question 111 pts what is the output of the following code int zest = 0; do { for(int i = 1; i < 5; i++) System.out.print("Zest "); }while(zest > 0); Flag question: Question 12Question 123 pts The following code segment is suppose to ask the user to enter an integer value between 5-10. This code must make sure that the user enters an integer type number, once an integer value is entered then it must be checked to see if it is with the range of 5 and 10.Fill in the blank to complete the codedo{ System.out.println(“Enter a number between 5 and 10: “); while( )// making sure the user enters an integer(data type validation { kb.nextLine(); System.out.println(“Enter a number between 5 and 10: “); } input = ; }while(input< input > );Here is a sample outputEnter a number between 5 and 10: wdsdEnter a number between 5 and 10: sdfdsfEnter a number between 5 and 10: 78Enter a number between 5 and 10: 99Enter a number between 5 and 10: 23Enter a number between 5 and 10: 5 Flag question: Question 13Question 133 pts the following code segment is suppose to display 10 9 8 7 6 5 4 3 2 1 0 fill in the blank to get the desired output int count = ; do { System.out.print(count+ ” “); count–; } ( ); Computer Science Engineering & Technology Java Programming Computer Information MISC Share QuestionEmailCopy link Comments (0)


