Tag: programming languages

Questions Related to programming languages

  1. enumeration

  2. iteration

  3. culmination

  4. pass through


Correct Option: B
  1. for

  2. while

  3. do-while

  4. no looping process checks the test condition at the end


Correct Option: C
  1. the next iteration of the loop

  2. the first statement after the loop

  3. the statement following the continue statement

  4. the return 0; statement


Correct Option: A
  1. the outermost loop

  2. the innermost loop

  3. all loops are executed the same number of times

  4. cannot be determined without knowing the size of the loops


Correct Option: B
  1. i = i + i;

  2. i = i - 1;

  3. i = i + 1;

  4. i --;


Correct Option: C
  1. for

  2. while

  3. do-while

  4. all looping processes require that the iterations be known


Correct Option: A
  1. the increment should always be ++k

  2. the variable must always be the letter i when using a for loop

  3. there should be a semicolon at the end of the statement

  4. the commas should be semicolons


Correct Option: D
  1. the logical operator && cannot be used in a test condition

  2. the while loop is an exit-condition loop

  3. the test condition is always false

  4. the test condition is always true


Correct Option: C
  1. the question mark should be an equal sign

  2. the first semicolon should be a colon

  3. there are too many variables in the statement

  4. the conditional operator is only used with apstrings


Correct Option: B