Quiz: Java Arrays!

10 Questions | Attempts: 136
Share

SettingsSettingsSettings
Quiz: Java Arrays! - Quiz

Arrays are used in Java to store a different kind of variables, usually multiple in a whole variable. Rather than separating variables and accounting for them individually, Java Arrays would assist in keeping them as a whole. What do you know about Java Arrays? Try our quiz to find out now!


Questions and Answers
  • 1. 

    What shape of brackets is used in defining a variable type?

    • A.

      Square 

    • B.

      Round 

    • C.

      Rectangle

    • D.

      Vertical

    Correct Answer
    A. Square 
  • 2. 

    What is usually done in a declaration of an array?

    • A.

      Definition

    • B.

      Augmenting

    • C.

      Explanation

    • D.

      Separation 

    Correct Answer
    A. Definition
  • 3. 

    What does a variable usually hold? An array of ______

    • A.

      String

    • B.

      Bling

    • C.

      Year

    • D.

      Mils

    Correct Answer
    A. String
  • 4. 

    When inserting values into a variable, what is mainly used? An Array _____

    • A.

      Literal

    • B.

      Separation

    • C.

      Element

    • D.

      Square

    Correct Answer
    A. Literal
  • 5. 

     What separates an array list?

    • A.

      Commas

    • B.

      Full-Stops

    • C.

      Paragraphs

    • D.

      Sounds

    Correct Answer
    A. Commas
  • 6. 

    Which of these does a java array assist in creating?

    • A.

      Strings

    • B.

      Numbers

    • C.

      Characters

    • D.

      Integers

    Correct Answer
    A. Strings
  • 7. 

    How do you access an array element? By referring to the _____ number

    • A.

      Index

    • B.

      Point

    • C.

      First

    • D.

      Last 

    Correct Answer
    A. Index
  • 8. 

    What does an array index start with?

    • A.

      0

    • B.

      1

    • C.

      2

    • D.

      3

    Correct Answer
    A. 0
  • 9. 

    What is the second element in an array?

    • A.

      1

    • B.

      2

    • C.

      3

    • D.

      4

    Correct Answer
    A. 1
  • 10. 

    What number is used in changing the value of a specific element? 

    • A.

      Index

    • B.

      Point

    • C.

      First

    • D.

      Last

    Correct Answer
    A. Index

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Jul 29, 2019
    Quiz Edited by
    ProProfs Editorial Team
  • Jul 08, 2019
    Quiz Created by
    Gregorynaomi
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.