📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    What is a variable?              

    A an unpredictable element in a Java program Correct Answer Incorrect Answer
    B a program that can run fast or slow depending on user input Correct Answer Incorrect Answer
    C a way to hold data temporarily in a program Correct Answer Incorrect Answer
    D All of these Correct Answer Incorrect Answer
    E None of these Correct Answer Incorrect Answer

    Solution

    Variables hold pieces of data temporarily. For example, a program might ask for a user's name when it first executes. The user name is temporarily stored as a variable and the program may refer back to that data until the user ends the program.

    Practice Next
    ask-question

    Not sure which exam is best for you Talk to our expert

    Get My Free Call