Tag: programming languages

Questions Related to programming languages

  1. Not vendor dependent

  2. Completely vendor dependent

  3. Partial vendor dependent

  4. None of these


Correct Option: B
  1. Code compiles

  2. If line 1 is removed the code compiles

  3. If line 3 is removed the code compiles

  4. If line 5 is removed the code compiles

  5. If line 1,3 are removed the code compiles

  6. If line 1,3,5 are removed the code compiles


Correct Option: D,F
  1. pre conditions

  2. post conditions

  3. exceptions

  4. class invariants


Correct Option: A,B,D

The following will result in which of the following, if the prize is currently "10 Euros" print 'You won $prize';

  1. You won $5.00

  2. You won 5 dollars

  3. You won $prize

  4. You won $5


Correct Option: C