Computers

2nd

grade

Image

Android開發2_基本程式邏輯運算

5
plays

27 questions

Show Answers
See Preview
  • 1. Multiple Choice
    1 minute
    1 pt

    程式語言一般支援算術、關係、邏輯等多種運算子(Operators),而這些運算子會具有優先順序。下列有關於Java或Objective-C運算子的優先順序的排序(由高到低),何者是正確的?

    + == &&

    && == +

    == + &&

    + && ==

  • 2. Multiple Choice
    30 seconds
    1 pt
    Image

    上列Java程式碼的執行結果為何?

    *

    **

    ***

    ****

  • 3. Multiple Choice
    30 seconds
    1 pt

    下列Java程式碼執行後,會顯示為多少?

    int x = 0; int y = 10; while (x < 5) { y--; ++x; } ; System.out.print(x + "," + y);

    5,5

    5,6

    6,6

    6,5

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?