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

In C Programe. true and false questions and multiple choice questions. thanks Tr

ID: 3735089 • Letter: I

Question

In C Programe. true and false questions and multiple choice questions. thanks

True/False: (2 points each) Fill in A for true and B for false 1. The following variable declaration is correct: int theBoards [5] [5] [5] [10] 2. The following variable declaration is correct: char someBoards [10] [5] [5] [5] 3. The following statement initializes the array, int nums [3] [2] = {{22, 44), {66, 97), {98,99}}; 4. The following code prints out: The arrays are not equal int theArray[41,3,5,6) int secondArray[4] 1,3,5, 6); if (secondArraytheArray) printf ("The arrays are equal"); else printf ("The arrays are not equal") Consider the following code snippet for questions 5-7 int sample [4] [4] 1,2,3,4), 5, 6,7,8), 19,10,11,12),13,14,15,16) ; 5. Valid values of i for the code snippet sample[i] [1-i are 0, 1, 2, 3, or 4 6. sample [1 [1 contains the value 2 7. printf ("%d ", sample [1] ) ; will print one row of4 values from the array Consider the following code snippet for questions 8-11 char name [10]"Sarah"; char secondName [10] int i-0; while (name [i] != "') secondName [i] = name [i++); secondName[iname [i 8. the character stored in name [3 is a 9. strlen (name) returns 5 10, islower (name [2] ) returns 0 11. after the while loop ends, secondName contains sarah

Explanation / Answer

Dear, As per Chegg policy i can only answer first 4 questions only.

1)True.

We can declare int the[5][5][5][10]; its called 4D array.

2)True

3)True

4)True.

Because it compares the address of the first and second array not the data.

5)False

Valid values are 0,1,2,3 not 4.

Array's index starts with "0"

6)False

sample[1][1] contains the value "6"

7)False

It prints garbage value

8)True

Sarah

0---S

1---a

2---r

3---a

4---h

9) True

Sarah length is "5"

10)False

Non-zero number (x > 0)Argument is a lowercase alphabet.

Zero (0)Argument is not a lowercase alphabet.