Part 1 multiple choices 1 point per question 1 A local varia

Part 1 multiple choices (1 point per question) 1. A local variable declared in a function is not usable outside that function. d. Depending on problems c. System depended b. False a. True 2. Which of the following functions compares two strings? A. compare(); B. stringcompare(); C. cmp(); D. strcmp(); 3. Which of the following adds one string to the end of another? D. stradd(); C. strcat(); A. append(); B. stringadd(); 4. Which of the following correctly declares an array? D. array anarray 10); C. anarray(10); A. int array[10]; B. int anarray; 5. Which of the following is a two-dimensional array? A. array anarray[20][20]; B. int anarrayl20][20); c. int array[20, 201; D. char array 6. What character ends all strings? D. \'In\' C. 10\' B. Part 2 answer questions (2 points per question) 1. Explain the difference between an actual and a formal parameter. 2. Explain the difference between a value and a reference parameter.

Solution

1.A local variable declared in a function is not usable outside that function

a. True

2.Which of the following functions compares two strings?

D.strcmp();

3. Which of the following adds one string to the end of another?

C.strcat();

4. Which of the following declares correctly Array declaration

A. int anarray[10];

5. which of the following declares two dimensional array

B.in anarray[20][20];

6. ends all strings

C.\'\\0\'

 Part 1 multiple choices (1 point per question) 1. A local variable declared in a function is not usable outside that function. d. Depending on problems c. Syst

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site