To get output '1' at R, for the given logic gate circuit the input values must be :

From the JEE Main 2019 · 10 Jan · Shift 1 paper. Try it, check your answer, then read the worked solution below.
To get output '1' at R, for the given logic gate circuit the input values must be :

Try it yourself first, then check your working against this.
Worked solution
Gate outputs. , , and .
For R = 1 both P and Q must be 0.
(C)
Concepts used: gate network
Every past question tagged to the same part of the syllabus, with solutions.
Past questions on the same topic (Logic gates), each with a worked solution.
Timed, in the real format, and marked the moment you submit.