GoConqr has a new look! Let us know what you think.

Quiz

Java Exam

Anthony Wright 19 questions Updated 13 Sep 2022

Take the quiz

This quiz has question types that open in the usual player.

Questions in this quiz (19)

  1. 1What does HTML Stand For?
    1. AHyper Text Markup Language
    2. BHyper Transfer Markup List
    3. CHome Tool Mac List
    4. DHyperlinks and Text Markup Language
  2. 2Choose the appropriate data type for this value 5.5
    1. Aint
    2. Bdouble
    3. Cboolean
    4. DString
  3. 3Choose the appropriate data type for this field: isSwimmer
    1. Adouble
    2. Bboolean
    3. Cstring
    4. Dint
  4. 4How do you print out Hello World? [blank_start]_____[blank_end]
    1. ASystem.out.println("Helloworld");
  5. 5What is garbage collection in the context of java?
    1. AThe operating system periodically deletes all of the java files available on the system.
    2. BWhen all references to an object are gone, then the memory used by the object is automatically reclaimed
    3. CAny java package imported in a program and not being used, is automatically deleted.
    4. DThe java virtual machine (JVM) checks the output of any java program and deleted anything that does not make sense at all.
  6. 6What are loops used for?
    1. ATo run a piece of code only when a certain condition is met
    2. BTo run a piece of code repeatedly forever
    3. CTo run a piece of code repeatedly until a condition is met
    4. DTo run a piece of code if the condition isn't met
  7. 7How do you write a for loop?
    1. Afor (int i = 0; i < 21) {}
    2. Bfor (int i = 0; i < 21; i++) {}
    3. Cfor (int i = 0; i++) {}
    4. Dfor (= 0; i < 21; i++) {}
  8. 8Which is the right way to create an ArrayList of Integers?
    1. AArrayList<Integer> list = new ArrayList<Integer>;
    2. BArrayList Integer = New ArrayList();
    3. CArrayList<Integer> list = new ArrayList<Integer>();
    4. DInteger ArrayList = new Integer ArrayList();
  9. 9How do you add 21 to an ArrayList of Integers?
    1. Alist.add(21);
    2. B21.add(list);
    3. Clist.put(21);
    4. Dlist.add("21");
  10. 10Which is the right way to put 21 at the second position in the ArrayList of Integers?
    (Remember zero-indexing)
    1. Alist.put(2,21);
    2. Blist.add(2,21);
    3. Clist.add(1,21);
    4. Dlist.add(21,1);

Information

Description
Software Developer Java Quiz on Java Exam, created by Anthony Wright on 12/09/2022.
Language
English
Views
0
History
Created on 12 Sep 2022 · updated on 13 Sep 2022
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?