Question
Please answer correctly & fast. This is a test grade. Thank you!
Question 60 (1 point) Where n = 7192 , the expression n % 100 would return O2 O 92 o 071 o
Question 57 (1 point) In JavaFX, the window. class allows a picture to be incorporated into your Graphic Color Picture ImageV
Question 56 (1 point) To signal an exception could occur, use the reserved word. throws pitches swings tosses
Question 55 (1 point) What does this statement return? (int) (Math.random() * 6) + 1 true a whole number between 1 and 6 a do
Question 54 (1 point) What does the following loop print? int n = 1; while (n < 10) n = 2 * n; System.out.print(n + ); 0 2
Question 53 (1 point) In the expression number++, the ++ operator is what mode? O revolution orbit addition iteration cycle
Question 52 (1 point) One difference between an ArrayList and an array is You must declare the ArrayList memory to reserve O
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Question 52:-

Explanation:-An array list has some useful methods,where as for arrays they do not have any methods.

Those methods are useful to access and modify the elements. [[eg:get(),add()]]

ANSWER:-An ArrayList has some useful methods

=======================================================================================

Question 53:-

Explanation:-The expression number++ shows the increment of number variable by 1. This is example of post increment or post addition. So, the answer is post addition or "addition".

ANSWER:-Addition

=======================================================================================

Question 54:-

 public class Main {   public static void main(String[] args) {         int n=1; while(n<10) { n=n*2; System.out.print(n+" "); }    } } 

ANSWER:-2 4 8 16

======================================================================================

Question 55:-

Explanation:-Math. random() is used to return a pseudorandom double type number greater than or equal to 0.0 and less than 1.0. The default random number always generated between 0 and 1.

 public class RandomExample1 { public static void main(String[] args) { System.out.println((int)(Math.random()*6)+1); } } 

ANSWER:-a whole number between 1 and 6

======================================================================================

Question 56:-

Explanation:-"throws" is the keyword used in java to signal that exception would occur

ANSWER:-throws

=======================================================================================

Question 57:-

Explanation:-JavaFx uses ImageView class to add image to the window. The image can be loaded using ImageView object.

ANSWER:-ImageView

=======================================================================================

Question 60:-

Explanation:-"%"---->it is the modulus operator it returns remainder of given two numbers.

7192%100=92

ANSWER:-92

Hope this hlps you,if you have any doubts feel free to ask doubts in comment section.

Thanks

Add a comment
Know the answer?
Add Answer to:
Please answer correctly & fast. This is a test grade. Thank you! Question 60 (1 point)...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please answer both questions thank you. Rewrite the following for loop into a while loop: int...

    Please answer both questions thank you. Rewrite the following for loop into a while loop: int s S = 0; for (int i = 1; i <= 10; i++) { S += i; int s = 0; int i = while (i <= 10) S = + i; i++; } int s = 0; int i = 1; while (i <= 10) { s = s + i; i++; } int S = 0; int i = 1; while (i...

  • Please answer both questions thank you. Question 39 (1 point) Translate the following conditions to Java,...

    Please answer both questions thank you. Question 39 (1 point) Translate the following conditions to Java, where x is an integer and s is a string. 1. x >= 6 2. x < 0 s is "Day" 3. S = "Day" x is at least 6 4. X == -7 DODO x is at most 6 5. x = -7 x is - 7 6. s.equals("Day") 7. x <= 6 x is not 27 8. X >O x is positive...

  • Please answer both questions thank you. Question 52 (1 point) What is the output of the...

    Please answer both questions thank you. Question 52 (1 point) What is the output of the code snippet given below? String s = "abcde"; int i = 1; while (i < 5) { System.out.print(s.substring(i, i + 1)); i++; Question 50 (1 point) How many times will the output line be printed in the following code snippet? Please enter your answer as an integer. for (int i = 0; i < 3; i++) { for (int j = 1; j <...

  • I need help making this work correctly. I'm trying to do an array but it is...

    I need help making this work correctly. I'm trying to do an array but it is drawing from a safeInput class that I am supposed to use from a previous lab. The safeInput class is located at the bottom of this question I'm stuck and it is not printing the output correctly. The three parts I think I am having most trouble with are in Bold below. Thanks in advance. Here are the parameters: Create a netbeans project called ArrayStuff...

  • PLEASE ANSWER #5AND #6, THE ANSWER FOR #3 AND #4 ARE ALREADY PROVIDED!!! 3 .Using Java,...

    PLEASE ANSWER #5AND #6, THE ANSWER FOR #3 AND #4 ARE ALREADY PROVIDED!!! 3 .Using Java, Write a computer program that prompts the user for one number, n for the number of items in the array to sort, and create and sort 1000 arrays of this size timing the run to get an average time to sort an array of this size. Then do the following: Initiate a variable running_time to 0 Create a for loop that iterates 1000 times....

  • Question 6 (1 point) Let a be an array, let N be the number of elment...

    Question 6 (1 point) Let a be an array, let N be the number of elment used in the array. For the given set of code below, what does the output represent? int sum = 0; for (int i = 0; i < N;i++) if (a[i] > 0) sum = sum + 1; textBox1.text = " + sum; Execution of code with nothing being printed in textBox1. Execution of code with printing all numbers Execution of code with counting the...

  • This is the question: These are in Java format. Comments are required on these two Classes...

    This is the question: These are in Java format. Comments are required on these two Classes (Student.java and StudentDemo.java) all over the coding: Provide proper comments all over the codings. --------------------------------------------------------------------------------------------------------------- import java.io.*; import java.util.*; class Student {    private String name;    private double gradePointAverage;    public Student(String n , double a){    name = n;    gradePointAverage = a;    }    public String getName(){ return name;    }    public double getGradePointAverage(){ return gradePointAverage;    }   ...

  • Deck of Cards Program I need help printing a flush, which is showing the top 5...

    Deck of Cards Program I need help printing a flush, which is showing the top 5 cards of the same suite. Below is the code I already have that answers other objectives, such as dealing the cards, and finding pairs. Towards the end I have attempted printing a flush, but I cannot figure it out. public class Shuffler {    /**    * The number of consecutive shuffle steps to be performed in each call    * to each sorting...

  • Please answer both questions thank you. Question 49 (1 point) What is wrong with the following...

    Please answer both questions thank you. Question 49 (1 point) What is wrong with the following code snippet? for (int i 1; i <= 5; i++) { int squared = i + i; System.out.println(i + IT "! squared = + squared); } System.out.println("Last square = " + squared); calculation error variable scope error O nothing incorrect use of for loop Question 47 (1 point) What are the values of num1 and num2 and result after the execution of mystery (num1,...

  • please be thorough with explanations. thank you Question 2 Consider the implementation we made in class...

    please be thorough with explanations. thank you Question 2 Consider the implementation we made in class for ArrayList, and its extensions you did in the lab. In this question, we will add two more methods to this class: the insert method and the pop method. For this question, please submit the modified ArrayList class. a) Implement the method insert (self, index, val) that inserts val before index (shifting the elements to make room for val). For example, your implementation should...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT