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];
Written for
- Institution
- Csce 240
- Course
- Csce 240
Document information
- Uploaded on
- January 13, 2025
- Number of pages
- 4
- Written in
- 2024/2025
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
- csce 240
-
csce 240 exam questions and answers 2025
Also available in package deal