engineering computer science MCQ #2159

What is the output of `printf('%d', 10 % -3)`?

engineering computer science MCQ #2159

  1. Question 1

    Q1. What is the output of `printf('%d', 10 % -3)`?

    • A) 1
    • B) -1
    • C) 3
    • D) -2

    Answer: 1

    Explanation: Modulus operation: 10 % -3 = 1. 1 is correct because it matches what the question requires. NET computer science MCQs often test this core concept.