CBSE Class 11 Computer Science Question 28 of 161

Flow of Control — Question 10

Back to all questions
10
Question

Question 10

Which one of the following if statements will not execute successfully ?

  1. if (1, 2) :
        print('foo')
  2. if (1, 2)
        print('foo') ✓
  3. if (1, 2) :
    print('foo') ✓
  4. if (1) :
        print( 'foo' )
Answer