GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

Intro to Prog. Final

Tommy McDonald 96 Fragen

Quiz starten

Dieses Quiz enthält Fragetypen, die sich im gewohnten Player öffnen.

Fragen in diesem Quiz (96)

  1. 1Which of the following is a valid variable name?
    1. Aspot 1
    2. B100bottles
    3. C_integerval1
    4. Dhello*tommy!
    5. Eteaminfo.name
    6. F!chosen
  2. 2Which way of initializing variables is incorrect?
    1. Aint x;

      x = 10;
    2. Bdouble amt(112.55);
    3. Cchar spot('a');
    4. Dconst int value;

      value = 10;
    5. Echar letter = 'C';
  3. 3What const declaration is meaningful?
    1. Aconst int length;
    2. Bconst double value;
    3. Cconst bool = true;
  4. 4What is a literal?
    1. AA variable
    2. BConstant literal values written through code
    3. COnly an octal or hexadecimal value
    4. DA character or string
  5. 5Which of the following is not an escape sequence?
    1. A\r
    2. B\t
    3. C\n
    4. D\b
  6. 6When is a good time to use an escape sequence?
    1. AIntegers
    2. BC strings
    3. CDoubles
    4. DStructs
  7. 7What is the showpoint flag used for?
    1. ATo display decimals to the 2 place
    2. BSo decimal point will always be shown
    3. CSpecifies fixed point notation
    4. DTo change the bool operator
  8. 8What is the correct notation for adding a variable to another variable and setting it equal to the new value?
    1. Ax =+ y
    2. Bx += y
  9. 9What is pre-incrementing? ex. ++x
    1. ARuns before the rest of code on the line and returns new value to x for the rest of the code to execute
    2. BChanges the value of x by 1 before the code runs for the line
  10. 10What is post-incrementing? ex. x--
    1. AIncrements the x by 1 down after the code runs and returns the value to x
    2. BChanges the value of x by 1 on the next line

Informationen

Beschreibung
Quiz am Intro to Prog. Final, erstellt von Tommy McDonald am 04/12/2015.
Sprache
English
Aufrufe
0
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck