Basics Of Java Programming Language Quiz

12 Questions | Attempts: 2882

SettingsSettingsSettings
Basics Of Java Programming Language Quiz - Quiz

Are you a hoard core Java programmer? If so, you must be aware of the basics of the Java programming language. This quiz will tell you if your basics are strong or if you still need more practice. Java is a high-level and object-oriented programming language used to develop mobile, web, and desktop apps. What else do you know about Java? Let's test out how good you score here on this quiz. All the best, coder!


Questions and Answers
  • 1. 
    Before you start: if something is written in quotation marks("quote") then it means Java code What is the name for an application that changes a human-readable programming language into a machine-readable language?
    • A. 

      Compiler

    • B. 

      Converter

    • C. 

      Encoder

    • D. 

      Decoder

  • 2. 
    Which applications can you use to edit Java code?
    • A. 

      Any Text editor

    • B. 

      Software development environments (Eclipse, IDE)

    • C. 

      Graphic Editor (Photoshop)

    • D. 

      Both A and B

  • 3. 
    Does eclipse have another compiler then default Java one?
    • A. 

      Yes

    • B. 

      No

  • 4. 
    What will be output of  x in following code? "class Test{ public static void main(String[] args) { int x = 1; if (x == 1) { x = x + 1} } }"
    • A. 

      0

    • B. 

      1

    • C. 

      2

    • D. 

      3

  • 5. 
    What is the difference between "int" and "INT"?
    • A. 

      "int" and "INT" are both this same

    • B. 

      "int" is not this same as "INT" because of java's case sensivity

    • C. 

      "int" is not this same as "INT" because of java's case sensivity of First letter in every word

    • D. 

      All of the above

  • 6. 
    What's the extension for a compiled Java file?
    • A. 

      .class

    • B. 

      .java

    • C. 

      .xml

    • D. 

      .html

  • 7. 
    What's the common term for an error within a computer program's code that prevents it from functioning properly?
    • A. 

      A glitch

    • B. 

      A hack

    • C. 

      A bug

    • D. 

      All of these

  • 8. 
    What is a variable?
    • A. 

      An unpredictable element in a Java program

    • B. 

      A program that can run fast or slow depending on user input

    • C. 

      A way to hold data temporarily in a program

    • D. 

      An unpredictable program in a Java program

  • 9. 
    What is "String"?
    • A. 

      Type of variable that stores text

    • B. 

      Type of variable that stores text and numbers

    • C. 

      Type of variable that stores numbers

    • D. 

      All of these

  • 10. 
    Why do we have to use "int" and "String"?
    • A. 

      Because on "String" we are not able to do math calculations

    • B. 

      Because "String" is for text and numbers and "int" for numbers

    • C. 

      Because "String" takes more memory(RAM) then "int"

    • D. 

      All of these

  • 11. 
    What does SDK stand for?
    • A. 

      Software Development Kit

    • B. 

      Software Developer Kit

    • C. 

      Software Dynamic Kit

    • D. 

      Science Development Kit

  • 12. 
    Is Java short for "JavaScript"?
    • A. 

      True

    • B. 

      False

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.