Csce 240 exam Questions And Answers 2025
Csce 240 exam Questions And Answers 2025 C++ will automatically initialize variables to some default value. (True/False) - ANS-Answer: False, C++ will not initialize variables like Java. C++ assigns the location of variables in memory when the program is compiled. - ANS-Answer: False, C++ assigns the location of variables in memory when the program is executed What is the value of the following boolean statement if x=6? ( True/False) ((x=10 && x!=6) || x==6) - ANS-Answer: True, ((T && F) || T) = (F || T) = T (True/False) Pointers are always call-by-reference when passed to a function. - ANS-Answer: False, unlike primitive arrays, pointers can be passed by value. (True/False) The following is a legitimate way of declaring and initializing a pointer: int *prt; *prt = new int[5]; - ANS-Answer: False, the correct statement would be: How many bytes will be lost after executing the following? int *i, x(10); double *d = new double[5];
Escuela, estudio y materia
- Institución
- Csce 240
- Grado
- Csce 240
Información del documento
- Subido en
- 13 de enero de 2025
- Número de páginas
- 4
- Escrito en
- 2024/2025
- Tipo
- Examen
- Contiene
- Preguntas y respuestas
Temas
-
csce 240
-
csce 240 exam questions and answers 2025
Documento también disponible en un lote