PRASHNIKAप्रश्निका
Back to the paper

A superhero is allowed access to a secure Avengers facility if he / she meets any of the following…

Computer Science20255 marksLong answer
A superhero is allowed access to a secure Avengers facility if he / she meets any of the following criteria: • The superhero has Avengers’ membership and possesses a high-security clearance badge OR • The superhero does not have Avengers membership but holds a special permit issued by S.H.I.E.L.D. along with a high-security clearance badge OR • The superhero is not a recognised ally but holds a special permit issued by S.H.I.E.L.D. along with a high-security clearance badge The inputs are:
INPUTS
ASuperhero has Avengers membership.
SSuperhero holds a special permit issued by S.H.I.E.L.D.
CSuperhero possesses a high-security clearance badge
LSuperhero is a recognised ally
(In all the above cases, 1 indicates YES and 0 indicates NO) Output: X – Denotes allowed access [1 indicates YES and 0 indicates NO in all cases] Draw the truth table for the inputs and outputs given above. Write the POS expression for X (A, S, C, L).

Answer

Answer

AI
X = A.C + A'.S.C + L'.S.C (access allowed when: has membership AND clearance; OR lacks membership but has a SHIELD permit AND clearance; OR is not a recognised ally but has a SHIELD permit AND clearance) Truth Table:
ASCLX
00000
00010
00100
00110
01000
01010
01101
01111
10000
10010
10101
10111
11000
11010
11101
11111
POS expression (product of maxterms where X=0, in order A,S,C,L): $X(A,S,C,L) = (A+S+C+L)(A+S+C+L')(A+S+C'+L)(A+S+C'+L')(A+S'+C+L)(A+S'+C+L')(A'+S+C+L)(A'+S+C+L')(A'+S'+C+L)(A'+S'+C+L')$
Boolean Algebra

From ISC 2025 Computer Science Paper 1, question 3(i).