Control Structures- Quiz 2

10 Questions | Attempts: 56
Share

SettingsSettingsSettings
Control Structures- Quiz 2 - Quiz

.


Questions and Answers
  • 1. 
    Answer the output of the programs.
    • A. 

      ERROR at LINE:3

    • B. 

      IF loop cannot compare ascii value

    • C. 

      Compilation error 

    • D. 

      NO ERROR

  • 2. 
    Answer the output of the programs. 
    • A. 

      NO ERROR

    • B. 

      Error: expected ‘(’ before ‘x’

    • C. 

      ERROR 

    • D. 

      X prints garbage value

  • 3. 
    Answer the output of the programs. 
    • A. 

      MathsInDepth

    • B. 

      NO ERROR

    • C. 

      Lvalue required as left operand of assignment

    • D. 

      CANNOT PERFORM OPERATIONS IN IF LOOP

  • 4. 
    Answer the output of the programs. 
    • A. 

      NO ERROR

    • B. 

      10

    • C. 

      NO OUTPUT

    • D. 

      There is no keyword "then" related to if in C & no variable defined here in program as well.

  • 5. 
    Answer the output of the programs. 
    • A. 

      MID IS BEST

    • B. 

      YOU AND MID BOTH ARE BEST

    • C. 

      ERROR AT LINE:4

    • D. 

      NO OUTPUT

  • 6. 
    Answer the output of the programs. 
    • A. 

      NO OUTPUT

    • B. 

      APJ ABDUL KALAM

    • C. 

      SWAMI VIVEKANAND

    • D. 

      ERROR AT LINE:4

  • 7. 
    Answer the output of the programs. 
    • A. 

      W = 0 x = 0 y = 1 z = 1

    • B. 

      W = 1 x = 1 y = 1 z = 0

    • C. 

      W = 1 x = 0 y = 0 z = 0

    • D. 

      W = 1 x = 0 y = 1 z = 1

  • 8. 
    Answer the output of the programs. 
    • A. 

      Y = 1 z = 1

    • B. 

      Y = 1 z = 0

    • C. 

      Y = 0 z = 1

    • D. 

      Y = 0 z = 0

  • 9. 
    Answer the output of the programs. 
    • A. 

      ARTIFICIAL INTELLIGENCE

    • B. 

      ERROR: AT LINE: 4

    • C. 

      UNIDENTIFIED SYMBOL AT LINE NUMBER 4

    • D. 

      MACHINE LEARNING

  • 10. 
    Answer the output of the programs. 
    • A. 

      A is greater than 40 and less than 45

    • B. 

      40

    • C. 

      ERROR AT LINE:4 

    • D. 

      RUNTIME ERROR

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.