Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please help me with this: True/False C++ 1. Comments in the code are a big part

ID: 3582362 • Letter: P

Question

Please help me with this: True/False C++

1. Comments in the code are a big part of the documentation for the programming step in the SDLC.

2. The number of bytes in an array is: Number of element of an array Multiplied by the datatypes byte size.

3. A common problem for arrays is using index numbers larger then the array size.

4. Element #4 is offset #3

5. This is a valid C++ code:

int ages[5] = {0};
cout << ages[4];

It prints out 0;

6. Index #10 is element # 11

7. N! can be solved by either a 'for' loop or a 'recursive' function call.

8. When you pass an array, you should use pass by reference only

9. Pass by Reference... means that you are assigning the address of one variable or an array to be the same as another...

10. Pass by value means you are copying the value of variable.

11. When you pass an element of an array into a function, you most likely will pass by value...

12. Reference mean the address of last byte of a block of bytes...

13. The integrated circuit has made all modern digital devices possible.

1. Loops are not possible if ........

a. you have contiguous code

b. are sleepy

c. do not know how to copy and paste

d. Non-Contiguous repeating block of code

Explanation / Answer

1. Comments in the code are a big part of the documentation for the programming step in the SDLC - True

2. The number of bytes in an array is: Number of element of an array Multiplied by the datatypes byte size - True

3. A common problem for arrays is using index numbers larger then the array size - True

5. This is a valid C++ code:

int ages[5] = {0};
cout << ages[4];

It prints out 0; - True

Explanation :-

Since the data type int is primitive data type the default values of an array is zero.

7. N! can be solved by either a 'for' loop or a 'recursive' function call - True

Explanation:-

Factorial can be solved by either a 'for' loop or a 'recursive' function call

8. When you pass an array, you should use pass by reference only - True

Explanation :-

In C we can pass an array by using pass by value or pass by reference. But in C++ we can't.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote