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

Quiz

C++ basics: functions, variables and syntax

kamen__14 30 Fragen

Quiz starten

Fragen in diesem Quiz (30)

  1. 11. What is the correct value to return to the operating system upon the successful completion of a program?
    1. AA. -1
    2. BB. 1
    3. CC. 0
    4. DD. Programs do not return a value.
  2. 22. What is the only function all C++ programs must contain?
    1. AA. start()
    2. BB. system()
    3. CC. main()
    4. DD. program()
  3. 33. What punctuation is used to signal the beginning and end of code blocks?
    1. AA. { }
    2. BB. -> and C. BEGIN and END
    3. CD. ( and )
    4. DC. ( )
  4. 44. What punctuation ends most lines of C++ code?
    1. AA. .
    2. BB. ;
    3. CC. :
    4. DD. '
  5. 55. Which of the following is a correct comment?
    1. AA. */ Comments */
    2. BB. ** Comment **
    3. CC. /* Comment */
    4. DD. { Comment }
  6. 66. Which of the following is not a correct variable type?
    1. AA. float
    2. BB. real
    3. CC. int
    4. DD. double
  7. 77. Which of the following is the correct operator to compare two variables?
    1. AA. :=
    2. BB. =
    3. CC. equal
    4. DD. ==
  8. 88 Reference to its own class can be accepted by
    1. A
      A. Simple constructor
    2. BB.Copy constructor
    3. C
      C.Both A and B
    4. D
      D.None of the Above
  9. 99 Which of the following function prototype is perfectly acceptable?
    1. AA. int Function(int Tmp = Show());
    2. BB. float Function(int Tmp = Show(int, float));
    3. CC. Both A and B.
    4. DD. float = Show(int, float) Function(Tmp);
  10. 1010 Which of the following statement is correct?
    1. AA. C++ enables to define functions that take constants as an argument.
    2. BB. We cannot change the argument of the function that that are declared as constant.
    3. CC. Both A and B.
    4. DD. We cannot use the constant while defining the function.

Informationen

Beschreibung
Quiz am Ohne Titel, erstellt von kamen__14 am 29/04/2015.
Sprache
English
Aufrufe
0
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Mehr zu C++ Programming Basics

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck