¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

C++ basics: functions, variables and syntax

kamen__14 30 preguntas

Hacer el test

Preguntas del test (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.

Información

Descripción
Test sobre Sin título, creado por kamen__14 el 29/04/2015.
Idioma
English
Visitas
0
Valoración
Aún sin valoraciones
Valora este test
Valora este test

Más sobre C++ Programming Basics

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?